/* ============================
   Donation Form Plugin Styles
   ============================ */

.dfp-wrapper {
    max-width: 480px;
    width: 100%;
    font-family: inherit;
    color: #1a1a1a;
    box-sizing: border-box;
}

.dfp-wrapper *, .dfp-wrapper *::before, .dfp-wrapper *::after {
    box-sizing: border-box;
}

/* Tabs */
.dfp-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.dfp-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 4px solid #d1d5db;
    color: #6b7280;
    transition: border-color 0.2s, color 0.2s;
}

.dfp-tab.active {
    border-color: #dc2626;
    color: #dc2626;
}

/* Amount buttons */
.dfp-amounts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.dfp-amount-btn {
    padding: 14px 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    background: #e5e7eb;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border: 2px solid transparent;
}

.dfp-amount-btn.active,
.dfp-amount-btn:hover {
    background: #dc2626;
    color: #fff;
}

/* Labels */
.dfp-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 14px 0 6px;
    color: #1a1a1a;
}

/* Inputs */
.dfp-input {
    width: 100%;
    padding: 9px 18px;
    border: 1.5px solid #1a1a1a;
    border-radius: 999px;
    font-size: 15px;
    outline: none;
    background: #fff;
    transition: border-color 0.15s;
    display: block;
}

.dfp-input:focus {
    border-color: #dc2626;
}

.dfp-input.dfp-disabled {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

select.dfp-input {
    appearance: auto;
    cursor: pointer;
}

/* Error messages */
.dfp-error {
    font-size: 13px;
    color: #dc2626;
    margin-top: 4px;
    margin-left: 8px;
}

/* Radio */
.dfp-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 18px;
    cursor: pointer;
}

.dfp-gateway-select {
    margin: 20px 0 14px;
}

/* Buttons */
.dfp-btn-primary {
    display: block;
    width: auto;
    min-width: 180px;
    padding: 14px 36px;
    background: #dc2626;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.15s;
    box-shadow: 0 2px 6px rgba(220,38,38,0.25);
}

.dfp-btn-primary:hover {
    background: #b91c1c;
}

.dfp-btn-secondary {
    display: block;
    width: auto;
    min-width: 120px;
    padding: 14px 28px;
    background: #fff;
    color: #dc2626;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #dc2626;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.15s, color 0.15s;
}

.dfp-btn-secondary:hover {
    background: #dc2626;
    color: #fff;
}

.dfp-btn-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* Footnote */
.dfp-footnote {
    font-size: 12px;
    color: #6b7280;
    margin-top: 16px;
    line-height: 1.5;
}

.dfp-footnote.small {
    font-size: 11px;
}

/* Step title */
.dfp-step-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1a1a1a;
}

/* Processing */
.dfp-processing-msg {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    padding: 40px 0;
    text-align: center;
}

/* Payment type box */
#dfp-payment-type-box {
    margin-top: 14px;
    padding: 14px 18px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Tab content */
.dfp-tab-content {
    animation: dfp-fade 0.2s ease;
}

@keyframes dfp-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
    .dfp-amounts {
        grid-template-columns: 1fr 1fr;
    }
    .dfp-amount-btn {
        font-size: 15px;
        padding: 12px 6px;
    }
    .dfp-btn-row {
        flex-direction: column;
        align-items: stretch;
    }
    .dfp-btn-primary, .dfp-btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* ============================
   Thank You Page Styles
   ============================ */

.dfp-thankyou-wrap {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    font-family: inherit;
}

.dfp-ty-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.2;
}

.dfp-ty-title.dfp-ty-fail {
    color: #dc2626;
}

.dfp-ty-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 28px;
}

.dfp-ty-note {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 24px;
}

.dfp-ty-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.dfp-ty-row {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 16px;
}

.dfp-ty-label {
    font-weight: 700;
    min-width: 160px;
    color: #374151;
}

.dfp-ty-value {
    color: #1a1a1a;
    word-break: break-all;
}

.dfp-status-active {
    color: #16a34a;
    font-weight: 700;
}

.dfp-ty-btn {
    display: inline-block;
    padding: 14px 36px;
    background: #dc2626;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    margin-top: 8px;
    transition: background 0.15s;
}

.dfp-ty-btn:hover {
    background: #b91c1c;
    color: #fff !important;
}

@media (max-width: 480px) {
    .dfp-ty-title { font-size: 28px; }
    .dfp-ty-row { flex-direction: column; gap: 4px; }
    .dfp-ty-label { min-width: unset; }
}
