/* Styles spécifiques pour la page de paiement du Québec */

/* Container principal */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Sections principales */
.blue-section {
    background-color: #003DA5;
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.blue-section h1 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.blue-section h1 span {
    color: #fff;
}

.blue-section p {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.9;
}

.white-section {
    background-color: white;
    border: 1px solid #003DA5;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 61, 165, 0.1);
}

.white-section h2 {
    color: #003DA5;
    font-size: 1.8em;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 1em;
}

/* Formulaire de paiement */
.payment-form {
    margin-top: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px !important;
    min-height: 44px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    -webkit-border-radius: 4px;
}

.form-group input:focus {
    outline: none;
    border-color: #003DA5;
    box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.1);
    font-size: 16px !important;
    transform: scale(1);
    -webkit-transform: scale(1);
}

.form-group input::placeholder {
    color: #999;
}

/* Résumé du paiement */
.payment-summary {
    background-color: #f8f9fa;
    border: 1px solid #003DA5;
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
}

.payment-summary h3 {
    margin: 0 0 20px 0;
    color: #003DA5;
    font-size: 18px;
    font-weight: bold;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    border-top: 2px solid #003DA5;
    border-bottom: none;
    padding-top: 16px;
    margin-top: 16px;
    font-weight: bold;
    font-size: 18px;
    color: #003DA5;
}

.amount {
    font-weight: bold;
    color: #333;
}

.summary-item.total .amount {
    color: #003DA5;
    font-size: 20px;
}

/* Section de carte de crédit */
.section-title {
    margin: 40px 0 20px 0;
    color: #003DA5;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid #003DA5;
    padding-bottom: 8px;
}

/* Styles spécifiques pour les champs de carte */
#cardNumber {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

#expiryDate, #cvv {
    font-family: 'Courier New', monospace;
    text-align: center;
}

/* Formatage automatique pour le numéro de carte */
#cardNumber:focus {
    background-color: #f8f9fa;
}

/* Style pour les champs de sécurité */
#cvv {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23ccc" stroke-width="2"><path d="M12 2L3 7v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V7l-9-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Animation pour le bouton */
.pay-btn {
    transition: all 0.3s ease;
    margin-top: 20px;
    background-color: #003DA5;
    color: white;
    padding: 15px 30px;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    width: 100%;
    min-height: 50px;
}

.pay-btn:hover {
    background-color: #002D7A;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 61, 165, 0.3);
}

.pay-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Style pour les champs requis */
.form-group label::after {
    content: "";
    color: #dc3545;
}

/* Amélioration de l'accessibilité */
.form-group input:focus + label {
    color: #003DA5;
}

/* Style pour les messages d'erreur */
.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-group input:invalid + .error-message {
    display: block;
}

/* Section d'information */
.card.info {
    background-color: #f8f9fa;
    border: 1px solid #003DA5;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.card.info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .blue-section {
        padding: 20px;
    }
    
    .blue-section h1 {
        font-size: 2em;
    }
    
    .white-section {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .payment-summary {
        padding: 16px;
    }
    
    .summary-item {
        font-size: 14px;
    }
    
    .summary-item.total {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .blue-section h1 {
        font-size: 1.8em;
    }
    
    .white-section h2 {
        font-size: 1.5em;
    }
    
    .form-group input {
        font-size: 14px;
        padding: 10px;
    }
}

/* Empêcher le zoom sur iPhone */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    font-size: 16px !important;
    transform: scale(1);
    -webkit-transform: scale(1);
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

/* Assurer que les inputs ont une taille minimale */
.form-group input {
    min-height: 44px;
    min-width: 44px;
}

/* Désactiver le zoom sur focus */
input:focus {
    font-size: 16px !important;
    transform: scale(1) !important;
    -webkit-transform: scale(1) !important;
} 