.mos-relief-donation-form {
    max-width: 650px;
    margin: 20px auto;
    padding: 24px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    font-family: inherit;
}


.mos-relief-donation-form h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.mos-relief-donation-form h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.mos-relief-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.mos-relief-row .field {
    flex: 1 1 48%;
    min-width: 140px;
}

.mos-relief-donation-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 14px;
}

/* text inputs / selects full width */
.mos-relief-donation-form input[type="text"],
.mos-relief-donation-form input[type="email"],
.mos-relief-donation-form input[type="tel"],
.mos-relief-donation-form input[type="date"],
.mos-relief-donation-form input[type="number"],
.mos-relief-donation-form input[type="password"],
.mos-relief-donation-form input[type="search"],
.mos-relief-donation-form select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

/* radios should NOT be full width */
.mos-relief-donation-form input[type="radio"],
.mos-relief-donation-form input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
    border: none;
}

/* ========== AMOUNT OPTIONS ========== */

.mos-relief-amount-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

/* each option is a full-width card */
.mos-relief-amount-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    font-weight: 500;
}

/* radio on left */
.mos-relief-amount-options label input[type="radio"] {
    flex: 0 0 auto;
}

/* text / content automatically uses remaining space */
.mos-relief-amount-options label span {
    flex: 1 1 auto;
}

/* CUSTOM OPTION: amount + frequency on one line (desktop) */
.mos-relief-amount-custom {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

/* keep these compact so they fit nicely */
.mos-relief-amount-custom input[type="number"] {
    width: 120px;
    max-width: 140px;
}

.mos-relief-amount-custom select {
    width: 150px;
    max-width: 170px;
}

/* ========== OTHER FORM ELEMENTS ========== */

.mos-relief-disclaimer {
    font-size: 12px;
    margin-top: 10px;
    color: #666;
    line-height: 1.4;
}

.mos-relief-submit {
    text-align: center;
    margin-top: 20px;
}

.mos-relief-submit button {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    background: #0073aa;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
}

.mos-relief-submit button:hover {
    background: #005f8d;
}

.mos-relief-errors {
    color: #d63638;
    margin-top: 10px;
    font-size: 13px;
}

/* ========== MOBILE STYLES ========== */

@media (max-width: 600px) {

    .mos-relief-row .field {
        flex: 1 1 100%;
    }

    .mos-relief-donation-form {
        padding: 16px;
    }

    .mos-relief-amount-options label {
        align-items: flex-start;
    }

    .mos-relief-amount-custom {
        flex-wrap: wrap !important;
        align-items: flex-start;
    }

    .mos-relief-amount-custom input[type="number"],
    .mos-relief-amount-custom select {
        width: 100%;
        max-width: 100%;
    }
}
/* === Guaranteed Toggle (Theme-Proof) === */

.mos-toggle {
    margin-bottom: 20px;
}

.mos-toggle input {
    display: none; /* hide real checkbox */
}

.mos-toggle label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
}

/* Toggle track */
.mos-toggle-switch {
    width: 44px;
    height: 24px;
    background-color: #d1d5db;
    border-radius: 999px;
    position: relative;
    transition: background-color 0.25s ease;
}

/* Toggle knob */
.mos-toggle-switch::after {
    content: "";
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Checked state */
.mos-toggle input:checked + label .mos-toggle-switch {
    background-color: #0d6efd;
}

.mos-toggle input:checked + label .mos-toggle-switch::after {
    transform: translateX(20px);
}