/* ══════════════════════════════════════════════════════════════
   PAGE DE DON - DESIGN MODERNE ET ÉPURÉ
   ══════════════════════════════════════════════════════════════ */

/* ══════ WRAPPER & HEADER ══════ */
.don-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.don-header {
    text-align: center;
    margin-bottom: 48px;
}

.don-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.don-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.don-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ══════ FORMULAIRE ══════ */
.don-form {
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.form-step {
    margin-bottom: 0;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.step-divider {
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

/* ══════ TYPE DE DON ══════ */
.don-type-grid {
    display: grid;
    gap: 12px;
}

.don-type-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.don-type-card:hover {
    border-color: var(--primary);
    background: var(--bg-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.don-type-card:has(input:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, #e8f5e9 0%, #f0f9f4 100%);
    box-shadow: 0 4px 16px rgba(27, 67, 50, 0.15);
}

.don-type-card input[type="radio"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.don-type-content {
    flex: 1;
}

.don-type-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.don-type-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ══════ SÉLECTION ASSOCIATION ══════ */
.auto-selection-wrapper {
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(27, 67, 50, 0.2);
}

.btn-selection-auto {
    width: 100%;
    padding: 16px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-selection-auto:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-selection-auto .emoji {
    font-size: 20px;
}

.btn-selection-auto .text {
    font-size: 14px;
}

.or-divider {
    text-align: center;
    margin: 16px 0;
    color: var(--text-secondary);
    font-weight: 600;
}

.association-search-wrapper {
    position: relative;
}

.association-search-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s;
}

.association-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

.association-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.no-association-message {
    display: none;
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.association-option {
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.association-option:hover {
    background: var(--bg-main);
}

.assoc-name {
    font-weight: 600;
    color: var(--primary);
}

.assoc-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.assoc-badge {
    font-size: 12px;
    color: var(--secondary);
    margin-top: 4px;
}

.assoc-badge.mosque {
    color: #8B5CF6;
    font-weight: 600;
}

/* ══════ CHOIX MOSQUÉE ══════ */
.mosque-choice-section {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f0f7f4;
    border: 2px solid var(--primary);
    border-radius: 12px;
}

.mosque-choice-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.mosque-choice-grid {
    display: grid;
    gap: 12px;
}

.mosque-choice-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.mosque-choice-card:hover {
    border-color: var(--primary);
    background: var(--bg-main);
}

.mosque-choice-card:has(input:checked) {
    border-color: var(--primary);
    background: #e8f5e9;
}

.mosque-choice-card input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.mosque-choice-content {
    flex: 1;
}

.mosque-choice-name {
    font-weight: 600;
    color: var(--primary);
}

.mosque-choice-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ══════ INFO CERFA ══════ */
.cerfa-info {
    margin-top: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 8px;
    display: flex;
    align-items: start;
    gap: 12px;
}

.cerfa-icon {
    font-size: 24px;
}

.cerfa-content {
    flex: 1;
}

.cerfa-title {
    font-weight: 700;
    color: #92400e;
    margin-bottom: 4px;
}

.cerfa-text {
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
}

/* ══════ MONTANTS ══════ */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.amount-btn {
    padding: 16px 24px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.amount-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.amount-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(27, 67, 50, 0.2);
}

.custom-amount-wrapper {
    margin-bottom: 16px;
}

.custom-amount-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.custom-amount-input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.2s;
}

.custom-amount-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

/* ══════ DON RÉCURRENT ══════ */
.recurrent-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0284c7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.recurrent-checkbox:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
}

.recurrent-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.recurrent-content {
    flex: 1;
}

.recurrent-title {
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 4px;
}

.recurrent-desc {
    font-size: 14px;
    color: #075985;
}

/* ══════ INFORMATIONS PERSONNELLES ══════ */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

.form-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.anonyme-checkbox {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-top: 20px;
}

.anonyme-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

.anonyme-checkbox span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ══════ SECTION POURBOIRE ══════ */
.tip-intro {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.tip-wrapper {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0284c7;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.tip-choice-section {
    margin-bottom: 20px;
}

.tip-choice-title {
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 16px;
}

.tip-choice-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 12px;
    background: white;
    border: 2px solid var(--border);
    transition: all 0.2s;
}

.tip-choice-option:hover {
    border-color: var(--primary);
    background: var(--bg-main);
}

.tip-choice-option:has(input:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
}

.tip-choice-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.tip-choice-content {
    flex: 1;
}

.tip-choice-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.tip-choice-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.tip-section {
    display: none;
}

.tip-amount-group {
    margin-bottom: 20px;
}

.tip-amount-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.tip-amount-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s;
}

.tip-amount-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

.tip-amount-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.tip-frequency-wrapper {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--border);
}

.tip-frequency-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.tip-frequency-option {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background 0.2s;
}

.tip-frequency-option:hover {
    background: var(--bg-main);
}

.tip-frequency-option.monthly {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

.tip-frequency-option.monthly:hover {
    background: #fde68a;
}

.tip-frequency-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.tip-frequency-content {
    flex: 1;
}

.tip-frequency-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.tip-frequency-option.monthly .tip-frequency-name {
    font-weight: 700;
    color: #92400e;
}

.tip-frequency-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tip-frequency-option.monthly .tip-frequency-desc {
    color: #78350f;
}

.quarterly-tip-info {
    display: none;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border: 2px solid #0284c7;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.quarterly-tip-title {
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 8px;
    font-size: 15px;
}

.quarterly-tip-text {
    font-size: 13px;
    color: #075985;
    line-height: 1.6;
}

.existing-tip-warning {
    display: none;
    background: #fef2f2;
    border: 2px solid #ef4444;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.existing-tip-title {
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 8px;
}

.existing-tip-message {
    font-size: 14px;
    color: #7f1d1d;
    line-height: 1.5;
}

/* ══════ MÉTHODES DE PAIEMENT ══════ */
.payment-method {
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: white;
}

.payment-method:hover {
    border-color: var(--primary);
    background: var(--bg-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.payment-method.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #e8f5e9 0%, #f0f9f4 100%);
    box-shadow: 0 4px 16px rgba(27, 67, 50, 0.15);
}

.payment-method input[type="radio"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.payment-method > div {
    flex: 1;
    text-align: left;
}

.payment-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-icon {
    font-size: 28px;
}

.payment-content {
    flex: 1;
}

.payment-name {
    font-weight: 600;
}

.payment-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.trust-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    background: var(--bg-main);
    border-radius: 8px;
}

.trust-badge {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 12px;
    background: white;
    border-radius: 6px;
    font-weight: 500;
}

/* ══════ RÉSUMÉ ET SOUMISSION ══════ */
.summary-section {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    color: white;
}

.summary-content {
    text-align: center;
    margin-bottom: 24px;
}

.amount-breakdown {
    display: none;
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.9;
}

.total-label {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.total-amount {
    font-size: 56px;
    font-weight: 800;
}

.btn-submit {
    width: 100%;
    font-size: 20px;
    padding: 18px;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.hadith-quote {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN - MOBILE FIRST
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .don-wrapper {
        padding: 0 16px;
    }
    
    .don-header {
        margin-bottom: 32px;
    }
    
    .don-icon {
        font-size: 48px;
    }
    
    .don-title {
        font-size: 28px;
    }
    
    .don-subtitle {
        font-size: 16px;
    }
    
    .don-form {
        padding: 24px;
    }
    
    .step-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .step-divider {
        margin: 32px 0;
    }
    
    /* Type de don */
    .don-type-card {
        padding: 14px;
    }
    
    .don-type-name {
        font-size: 15px;
    }
    
    .don-type-desc {
        font-size: 13px;
    }
    
    /* Association */
    .btn-selection-auto {
        padding: 14px;
        font-size: 15px;
    }
    
    .btn-selection-auto .text {
        font-size: 13px;
    }
    
    /* Montants */
    .amount-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .amount-btn {
        padding: 14px 12px;
        font-size: 16px;
    }
    
    .custom-amount-input {
        padding: 14px 16px;
        font-size: 18px;
    }
    
    /* Informations */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    /* Paiement */
    .payment-method {
        padding: 14px;
    }
    
    .payment-icon {
        font-size: 24px;
    }
    
    /* Pourboire */
    .tip-wrapper {
        padding: 20px;
    }
    
    .tip-choice-option {
        padding: 14px;
    }
    
    .tip-frequency-wrapper {
        padding: 16px;
    }
    
    /* Résumé */
    .summary-section {
        padding: 24px;
    }
    
    .total-amount {
        font-size: 42px;
    }
    
    .btn-submit {
        font-size: 18px;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .don-wrapper {
        padding: 0 12px;
    }
    
    .don-icon {
        font-size: 42px;
    }
    
    .don-title {
        font-size: 24px;
    }
    
    .don-form {
        padding: 20px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .amount-btn {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .btn-selection-auto .emoji {
        font-size: 18px;
    }
    
    .btn-selection-auto .text {
        font-size: 12px;
    }
    
    .payment-icon {
        font-size: 20px;
    }
    
    .total-amount {
        font-size: 36px;
    }
    
    .btn-submit {
        font-size: 16px;
        padding: 14px;
    }
}
