/**
 * RGF Donate Page Styles
 * 
 * Styling for the multi-currency donation form.
 * Uses RoundGlass Foundation brand colors.
 * Designed to work within any WordPress theme.
 */

/* ── Variables ── */
:root {
    --rgf-green: #2E7D32;
    --rgf-green-dark: #1B5E20;
    --rgf-green-light: #E8F5E9;
    --rgf-teal: #00796B;
    --rgf-orange: #E65100;
    --rgf-blue: #1565C0;
    --rgf-text: #333333;
    --rgf-text-light: #666666;
    --rgf-border: #E0E0E0;
    --rgf-bg: #FAFAFA;
    --rgf-white: #FFFFFF;
    --rgf-error: #D32F2F;
    --rgf-success: #2E7D32;
    --rgf-radius: 8px;
    --rgf-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ── Wrapper ── */
.rgf-donate-wrapper {
    max-width: 560px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--rgf-text);
}

.rgf-section {
    margin-bottom: 28px;
}

.rgf-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--rgf-text);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Currency Toggle ── */
.rgf-currency-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--rgf-bg);
    border: 2px solid var(--rgf-border);
    border-radius: 50px;
    padding: 4px;
    width: fit-content;
    margin: 0 auto 8px;
}

.rgf-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: var(--rgf-text-light);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.rgf-toggle-btn:hover {
    color: var(--rgf-text);
}

.rgf-toggle-btn.active {
    background: var(--rgf-green);
    color: var(--rgf-white);
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.3);
}

.rgf-toggle-symbol {
    font-size: 18px;
    font-weight: 700;
}

.rgf-detecting {
    display: inline-block;
    margin-left: 12px;
    font-size: 13px;
    color: var(--rgf-text-light);
    font-style: italic;
}

.rgf-geo-note {
    text-align: center;
    font-size: 13px;
    color: var(--rgf-text-light);
    margin: 4px 0 0;
}

/* ── Amount Grid ── */
.rgf-amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.rgf-amount-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 14px 8px;
    border: 2px solid var(--rgf-border);
    border-radius: var(--rgf-radius);
    background: var(--rgf-white);
    color: var(--rgf-text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.rgf-amount-btn:hover {
    border-color: var(--rgf-green);
    background: var(--rgf-green-light);
}

.rgf-amount-btn.selected {
    border-color: var(--rgf-green);
    background: var(--rgf-green);
    color: var(--rgf-white);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.25);
}

.rgf-amount-symbol {
    font-size: 14px;
    opacity: 0.8;
}

.rgf-amount-value {
    font-size: 17px;
}

/* ── Custom Amount Input ── */
.rgf-input-group {
    display: flex;
    align-items: center;
    border: 2px solid var(--rgf-border);
    border-radius: var(--rgf-radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.rgf-input-group:focus-within {
    border-color: var(--rgf-green);
}

.rgf-currency-prefix {
    padding: 12px 14px;
    background: var(--rgf-bg);
    color: var(--rgf-text-light);
    font-size: 16px;
    font-weight: 600;
    border-right: 1px solid var(--rgf-border);
}

.rgf-input-group input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    outline: none;
    font-size: 16px;
    background: var(--rgf-white);
    color: var(--rgf-text);
}

.rgf-input-group input::placeholder {
    color: #BDBDBD;
}

/* ── Form Fields ── */
.rgf-form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rgf-form-fields input {
    padding: 12px 14px;
    border: 2px solid var(--rgf-border);
    border-radius: var(--rgf-radius);
    font-size: 15px;
    color: var(--rgf-text);
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.rgf-form-fields input:focus {
    border-color: var(--rgf-green);
}

.rgf-form-fields input::placeholder {
    color: #BDBDBD;
}

.rgf-help-text {
    font-size: 12px;
    color: var(--rgf-text-light);
    margin: 4px 0 0;
}

/* ── Donate Button ── */
.rgf-donate-btn {
    display: block;
    width: 100%;
    padding: 16px 32px;
    border: none;
    border-radius: var(--rgf-radius);
    background: var(--rgf-green);
    color: var(--rgf-white);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rgf-donate-btn:hover:not(:disabled) {
    background: var(--rgf-green-dark);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
    transform: translateY(-1px);
}

.rgf-donate-btn:active:not(:disabled) {
    transform: translateY(0);
}

.rgf-donate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rgf-secure-note {
    text-align: center;
    font-size: 12px;
    color: var(--rgf-text-light);
    margin-top: 10px;
}

/* ── Messages ── */
.rgf-message {
    padding: 14px 18px;
    border-radius: var(--rgf-radius);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 16px;
}

.rgf-message-error {
    background: #FFEBEE;
    color: var(--rgf-error);
    border: 1px solid #FFCDD2;
}

.rgf-message-success {
    background: var(--rgf-green-light);
    color: var(--rgf-green-dark);
    border: 1px solid #A5D6A7;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .rgf-amount-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .rgf-toggle-btn {
        padding: 8px 18px;
        font-size: 14px;
    }

    .rgf-donate-btn {
        font-size: 16px;
        padding: 14px 24px;
    }
}
