/**
 * Payment Pages Styles
 * 
 * Styles for payment success, failure, and cancel pages
 */

/* Success Page Styles */
.formpays-pro-success-page {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.success-container {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.success-icon {
    margin-bottom: 20px;
}

.success-icon svg {
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-container h1 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 2em;
}

.success-details {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: left;
}

.success-details p {
    margin: 10px 0;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.success-details p:last-child {
    border-bottom: none;
}

.success-actions {
    margin-top: 30px;
}

/* Failure Page Styles */
.formpays-pro-failure-page {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.failure-container {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.failure-icon {
    margin-bottom: 20px;
}

.failure-icon svg {
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.failure-container h1 {
    color: #f44336;
    margin-bottom: 15px;
    font-size: 2em;
}

.failure-details {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: left;
}

.failure-details p {
    margin: 10px 0;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.failure-details p:last-child {
    border-bottom: none;
}

.failure-actions {
    margin-top: 30px;
}

/* Cancel Page Styles */
.formpays-pro-cancel-page {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.cancel-container {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cancel-icon {
    margin-bottom: 20px;
}

.cancel-icon svg {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cancel-container h1 {
    color: #FF9800;
    margin-bottom: 15px;
    font-size: 2em;
}

.cancel-details {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: left;
}

.cancel-details p {
    margin: 10px 0;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.cancel-details p:last-child {
    border-bottom: none;
}

.cancel-actions {
    margin-top: 30px;
}

/* Common Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
}

.btn-secondary {
    background: #f44336;
    color: white;
}

.btn-secondary:hover {
    background: #da190b;
}

.btn-tertiary {
    background: #f44336;
    color: white;
}

.btn-tertiary:hover {
    background: #da190b;
}

/* Failure page specific button styles */
.failure-actions .btn-primary {
    background: #2196F3;
    color: white;
}

.failure-actions .btn-primary:hover {
    background: #1976D2;
}

.failure-actions .btn-secondary {
    background: #4CAF50;
    color: white;
}

.failure-actions .btn-secondary:hover {
    background: #45a049;
}

/* Cancel page specific button styles */
.cancel-actions .btn-primary {
    background: #2196F3;
    color: white;
}

.cancel-actions .btn-primary:hover {
    background: #1976D2;
}

.cancel-actions .btn-secondary {
    background: #4CAF50;
    color: white;
}

.cancel-actions .btn-secondary:hover {
    background: #45a049;
}

/* Responsive Design */
@media (max-width: 768px) {
    .formpays-pro-success-page,
    .formpays-pro-failure-page,
    .formpays-pro-cancel-page {
        margin: 20px auto;
        padding: 10px;
    }
    
    .success-container,
    .failure-container,
    .cancel-container {
        padding: 20px;
    }
    
    .success-container h1,
    .failure-container h1,
    .cancel-container h1 {
        font-size: 1.5em;
    }
    
    .btn {
        display: block;
        margin: 10px 0;
        width: 100%;
        box-sizing: border-box;
    }
}
