/* FOF Donation Page - Frontend Styles */

.fof-donation-wrap {
    max-width: 960px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.5;
}

/* ─── Tabs ─────────────────────────────────────────────── */

.fof-tabs {
    display: flex;
    margin-bottom: 0;
}

.fof-tab {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    background: #e8dcc8;
    color: #6b5d4d;
    border-radius: 0;
    outline: none;
}

.fof-tab:first-child {
    border-radius: 6px 0 0 0;
}

.fof-tab:last-child {
    border-radius: 0 6px 0 0;
}

.fof-tab-active,
.fof-tab:hover {
    background: #c25a2e;
    color: #fff;
}

/* ─── Tab Panels ───────────────────────────────────────── */

.fof-tab-panel {
    display: none;
    background: #f5efe6;
    border-radius: 0 0 6px 6px;
    padding: 30px;
}

.fof-tab-panel-active {
    display: block;
}

.fof-panel-inner {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.fof-panel-left {
    flex: 1;
    min-width: 0;
}

.fof-panel-right {
    flex: 0 0 320px;
    min-width: 280px;
}

/* ─── Amount Heading ───────────────────────────────────── */

.fof-choose-heading {
    font-size: 22px;
    font-weight: 700;
    color: #2d5a3d;
    margin: 0 0 20px 0;
    padding: 0;
    text-align: center;
    font-style: italic;
    font-family: Georgia, "Times New Roman", Times, serif;
}

/* ─── Amount Grid ──────────────────────────────────────── */

.fof-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.fof-amount-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border: 2px solid #d4c5a9;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    min-height: 70px;
    position: relative;
    outline: none;
    font-family: inherit;
}

.fof-amount-card:hover {
    border-color: #c25a2e;
    background: #fef8f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fof-amount-card.fof-selected {
    border-color: #c25a2e;
    background: #c25a2e;
    color: #fff;
    box-shadow: 0 2px 10px rgba(194,90,46,0.3);
}

.fof-amount-card.fof-selected .fof-amount-value,
.fof-amount-card.fof-selected .fof-amount-label,
.fof-amount-card.fof-selected .fof-amount-freq {
    color: #fff;
}

.fof-amount-value {
    font-size: 18px;
    font-weight: 700;
    color: #2d5a3d;
    line-height: 1.2;
}

.fof-amount-label {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    line-height: 1.2;
}

.fof-amount-freq {
    font-size: 10px;
    color: #888;
    margin-top: 1px;
}

/* ─── Other Amount ─────────────────────────────────────── */

.fof-other-amount {
    background: #ece4d4;
    border-radius: 4px;
    padding: 14px;
}

.fof-other-amount label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.fof-custom-amount-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.fof-custom-amount-input:focus {
    border-color: #c25a2e;
    box-shadow: 0 0 0 2px rgba(194,90,46,0.15);
}

.fof-custom-amount-input.fof-input-active {
    border-color: #c25a2e;
    background: #fef8f0;
}

.fof-min-note {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    font-style: italic;
}

/* ─── Right Panel Fields ──────────────────────────────── */

.fof-field-group {
    border: none;
    padding: 0;
    margin: 0 0 18px 0;
}

.fof-field-group legend {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    padding: 0;
}

.fof-required {
    color: #c25a2e;
}

.fof-field-group label {
    display: block;
    font-size: 13px;
    color: #444;
    margin-bottom: 5px;
    cursor: pointer;
    padding-left: 0;
}

.fof-field-group label input[type="radio"] {
    margin-right: 6px;
    vertical-align: middle;
    accent-color: #c25a2e;
}

/* ─── Conditional Fields ──────────────────────────────── */

.fof-conditional-fields {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
    border: 1px solid #ddd;
}

.fof-field {
    margin-bottom: 10px;
}

.fof-field:last-child {
    margin-bottom: 0;
}

.fof-field input[type="text"],
.fof-field input[type="email"],
.fof-field textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.fof-field input:focus,
.fof-field textarea:focus {
    border-color: #c25a2e;
    box-shadow: 0 0 0 2px rgba(194,90,46,0.1);
}

.fof-field textarea {
    resize: vertical;
}

/* ─── Foreign Source Checkbox ─────────────────────────── */

.fof-foreign-source {
    margin: 18px 0;
    padding: 14px;
    background: rgba(255,255,255,0.6);
    border-radius: 4px;
    border: 1px solid #ddd;
}

.fof-checkbox-label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.4;
    color: #444;
    cursor: pointer;
}

.fof-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #c25a2e;
}

.fof-foreign-note {
    font-size: 11px;
    color: #777;
    margin: 8px 0 0 0;
    font-style: italic;
    line-height: 1.4;
}

/* ─── Donate Button ───────────────────────────────────── */

.fof-donate-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: #c25a2e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
    font-family: inherit;
}

.fof-donate-btn:hover {
    background: #a84d27;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(194,90,46,0.3);
}

.fof-donate-btn:active {
    transform: translateY(0);
}

.fof-donate-btn:disabled {
    background: #bbb;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fof-donate-btn.fof-loading {
    position: relative;
    color: transparent;
}

.fof-donate-btn.fof-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fof-spin 0.6s linear infinite;
}

@keyframes fof-spin {
    to { transform: rotate(360deg); }
}

/* ─── Form Messages ───────────────────────────────────── */

.fof-form-message {
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 4px;
    line-height: 1.4;
}

.fof-form-message.fof-error {
    background: #fde8e8;
    color: #c33;
    border: 1px solid #f5c6c6;
}

.fof-form-message.fof-success {
    background: #e8f5e8;
    color: #2d7a2d;
    border: 1px solid #c6e8c6;
}

/* ─── Info Columns ─────────────────────────────────────── */

.fof-info-columns {
    display: flex;
    gap: 30px;
    padding: 24px 0;
    margin-top: 10px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.fof-info-left,
.fof-info-right {
    flex: 1;
}

.fof-info-columns a {
    color: #c25a2e;
    text-decoration: underline;
}

/* ─── Disclaimer ───────────────────────────────────────── */

.fof-disclaimer {
    font-size: 11px;
    color: #888;
    line-height: 1.5;
    padding: 16px 0;
    border-top: 1px solid #ddd;
}

/* ─── Responsive ───────────────────────────────────────── */

@media (max-width: 768px) {
    .fof-panel-inner {
        flex-direction: column;
    }

    .fof-panel-right {
        flex: none;
        width: 100%;
        min-width: 0;
    }

    .fof-amount-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .fof-amount-card {
        min-height: 60px;
        padding: 10px 6px;
    }

    .fof-amount-value {
        font-size: 15px;
    }

    .fof-info-columns {
        flex-direction: column;
        gap: 16px;
    }

    .fof-tab {
        font-size: 13px;
        padding: 12px 10px;
    }

    .fof-tab-panel {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .fof-amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
