/* ============================================================
   Donation Form Styles — Matched to Client Reference Design
   ============================================================ */

/* Base wrapper */
.df-wrapper {
    max-width: 520px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 24px 32px;
    box-shadow: 0 2px 24px rgba(0,0,0,.10);
    color: #1a2535;
}

/* ── Progress Bar (thin line style, 3 segments) ── */
.df-progress {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
}
.df-progress-step {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: #d1d5db;
    transition: background .3s;
}
.df-progress-step.active {
    background: #f59e0b;
}
.df-progress-step.done {
    background: #f59e0b;
}
/* Hide old circle number + label inside progress — keep step badge below */
.df-step-number,
.df-step-label,
.df-progress-divider {
    display: none;
}

/* ── Section Title ── */
.df-section-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a2535;
}
.df-step-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Frequency Toggle ── */
.df-frequency-toggle {
    display: flex;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
}
.df-freq-btn {
    flex: 1;
    padding: 13px 16px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #1a2535;
    transition: all .2s;
    text-align: center;
    position: relative;
}
.df-freq-btn.active {
    background: #f59e0b;
    color: #fff;
}
/* Dropdown arrow on "Donate Monthly" */
.df-freq-btn[data-freq="monthly"]::after {
    content: " ▾";
    font-size: 12px;
}

/* ── Amount Grid ── */
.df-amount-grid,
.df-monthly-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.df-amount-btn {
    padding: 16px 8px;
    background: #e8edf5;
    border: 1.5px solid #dce3ee;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1a2535;
    transition: all .2s;
    text-align: center;
}
.df-amount-btn:hover {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #92400e;
}
.df-amount-btn.selected {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

/* ── Other Amount ── */
.df-other-amount-wrap {
    margin-bottom: 20px;
}
.df-other-toggle {
    width: 100%;
    padding: 15px;
    background: #e8edf5;
    border: 1.5px solid #dce3ee;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1a2535;
    transition: all .2s;
    text-align: center;
}
.df-other-toggle:hover {
    border-color: #f59e0b;
    color: #f59e0b;
}
.df-other-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #f59e0b;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
    background: #fff;
}
.df-currency-symbol {
    padding: 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    line-height: 48px;
}
.df-other-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 14px;
    font-size: 16px;
    font-weight: 600;
    color: #1a2535;
}

/* ── Purpose Field ── */
.df-field {
    margin-bottom: 18px;
}
.df-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 7px;
}
.df-required {
    color: #ef4444;
}
.df-field input,
.df-field select,
.df-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1a2535;
    background: #fff;
    transition: border-color .2s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}
.df-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.df-field input:focus,
.df-field select:focus,
.df-field textarea:focus {
    border-color: #f59e0b;
    outline: none;
}

/* ── Dedication Checkbox ── */
.df-dedication-wrap {
    margin-bottom: 22px;
}
.df-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    line-height: 1.55;
}
.df-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 1px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    accent-color: #f59e0b;
    cursor: pointer;
}
#df-dedication-fields {
    margin-top: 10px;
}
#df-dedication-text {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

/* ── Steps ── */
.df-step { display: none; }
.df-step.active { display: block; }

/* ── Selected amount display ── */
.df-selected-amount-display {
    background: #fef3c7;
    border: 1.5px solid #fcd34d;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
}

/* ── Buttons ── */
.df-btn-next,
.df-btn-donate {
    width: 100%;
    padding: 16px;
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    letter-spacing: 0.02em;
}
.df-btn-next:hover,
.df-btn-donate:hover { background: #d97706; }
.df-btn-next:active,
.df-btn-donate:active { transform: scale(.98); }

.df-step-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.df-btn-back {
    flex: 0 0 80px;
    padding: 14px;
    background: #f3f4f6;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.df-btn-back:hover { background: #e5e7eb; }
.df-step-buttons .df-btn-next,
.df-step-buttons .df-btn-donate {
    flex: 1;
    margin-top: 0;
}

/* ── Payment ── */
.df-payment-summary {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #374151;
    line-height: 1.8;
}
.df-payment-summary strong { color: #1a2535; }

.df-gateway-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.df-gateway-icon {
    flex: 1;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    transition: all .2s;
    color: #6b7280;
}
.df-gateway-icon:hover { border-color: #f59e0b; color: #92400e; }
.df-gateway-icon.active {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #92400e;
}
.df-gateway-icon svg { width: 70px; height: 26px; }

.df-stripe-card-input {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.df-secure-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 16px;
}

/* ── Spinner ── */
.df-spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: df-spin .7s linear infinite;
}
@keyframes df-spin { to { transform: rotate(360deg); } }

/* ── Messages ── */
.df-message {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}
.df-message.success { background: #d1fae5; color: #065f46; border: 1.5px solid #34d399; }
.df-message.error   { background: #fee2e2; color: #991b1b; border: 1.5px solid #fca5a5; }
.df-error { color: #ef4444; font-size: 13px; margin-top: 6px; }
