/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #fff;
}

.logo h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Payment Card */
.payment-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.card-header {
    text-align: center;
    margin-bottom: 40px;
}

.card-header h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.card-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.section-header i {
    color: #667eea;
    font-size: 1.5rem;
}

.section-header h3 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Amount Section - MODIFIÉ */
.amount-section {
    text-align: center;
}

.amount-section label {
    display: block;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
}

.amount-input {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.amount-field {
    font-size: 3.5rem; /* Taille augmentée */
    font-weight: 700;
    color: #333;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px 30px; /* Padding augmenté */
    width: 300px; /* Largeur augmentée */
    text-align: center;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.amount-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: white;
}

.currency-symbol {
    font-size: 3rem; /* Taille augmentée */
    font-weight: 700;
    color: #333;
    line-height: 1;
    min-width: 60px;
    text-align: center;
}

.amount-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.hint-text {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hint-text.success {
    color: #4CAF50;
}

.hint-text.error {
    color: #f44336;
}

.preview {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

/* Phone Input */
.phone-input {
    display: flex;
    gap: 10px;
}

.country-code {
    width: 180px; /* Largeur augmentée pour le texte complet */
    font-weight: 600;
}

.phone-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

/* Payment Method Single */
.payment-method-single {
    display: flex;
    align-items: center;
    padding: 25px;
    background: #f8f9ff;
    border-radius: 15px;
    border: 2px solid #667eea;
    margin-bottom: 25px;
}

.method-icon-large {
    font-size: 2.5rem;
    color: #667eea;
    margin-right: 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.method-info-large {
    flex: 1;
}

.method-info-large h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.method-info-large h4 i {
    color: #4CAF50;
}

.method-info-large p {
    color: #666;
    margin-bottom: 15px;
}

.card-icons {
    display: flex;
    gap: 15px;
    font-size: 2rem;
    color: #555;
}

.card-icons i.fa-cc-visa {
    color: #1a1f71;
}

.card-icons i.fa-cc-mastercard {
    color: #eb001b;
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f0f8f0;
    border-radius: 50px;
    color: #2e7d32;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #4CAF50;
}

.badge i {
    font-size: 1.2rem;
}

.cinetpay-logo {
    height: 20px;
    width: auto;
}

/* Pay Button */
.pay-button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: 10px;
}

.pay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.pay-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.button-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
}

.button-text {
    text-align: left;
}

.pay-text {
    font-size: 1.4rem;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.amount-text {
    font-size: 1.8rem;
    font-weight: 700;
}

.button-icon {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
}

/* Terms */
.terms {
    margin: 25px 0;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox input {
    margin-top: 5px;
}

.checkbox label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.checkbox a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.checkbox a:hover {
    text-decoration: underline;
}

/* Security Note */
.security-note {
    text-align: center;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 10px;
    margin-top: 20px;
}

.security-note p {
    margin-bottom: 10px;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
}

/* Footer simplifié */
.simple-footer {
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-section {
    margin-bottom: 25px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-section p {
    margin-bottom: 8px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.certifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cinetpay-logo-footer {
    height: 40px;
    width: auto;
    opacity: 0.9;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ============================================
   STYLES POUR LES PAGES D'ERREUR
   ============================================ */

.error-icon {
    font-size: 4rem;
    color: #f44336;
    margin-bottom: 20px;
    text-align: center;
}

.error-content {
    text-align: center;
    padding: 20px;
}

.error-message {
    background: #ffebee;
    border: 2px solid #f44336;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    color: #c62828;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.error-message i {
    font-size: 1.5rem;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8f9ff;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.error-info {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.error-info p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #555;
}

.error-details {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

.detail-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #667eea;
    min-width: 150px;
}

.detail-value {
    color: #333;
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .payment-card {
        padding: 25px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .amount-field {
        font-size: 2.8rem;
        width: 250px;
        padding: 20px 25px;
    }
    
    .currency-symbol {
        font-size: 2.5rem;
    }
    
    .button-content {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .country-code {
        width: 150px;
    }
    
    .payment-method-single {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .method-icon-large {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .security-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .amount-field {
        font-size: 2.2rem;
        width: 200px;
        padding: 15px 20px;
    }
    
    .currency-symbol {
        font-size: 2rem;
    }
    
    .card-header h2 {
        font-size: 1.6rem;
    }
    
    .section-header h3 {
        font-size: 1.2rem;
    }
    
    .pay-text {
        font-size: 1.2rem;
    }
    
    .amount-text {
        font-size: 1.5rem;
    }
    
    .logo h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}