﻿/* ==========================================================================
   THEME: Standard
   Load order:  AFTER webforms.core.css, BEFORE page.css
   Purpose:     The look of the FORM: font, form layout, section titles,
                footer buttons, radio-button groups. The page around the form
                (header, footer, containers) belongs in the page template.
   Depends on:  webforms.core.css, which already provides the base
                .ce-formRows / .ce-formFieldContainers / .ce-formFieldWrappers
                flex layout, so only differences are set here.

   CONTENTS
     1. Base
     2. Form layout
     3. Section titles
     4. Footer buttons
     5. Radio-button groups (amount, payment type, tribute)
   ========================================================================== */


/* ==========================================================================
   1. BASE
   ========================================================================== */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

input[type="button"],
button {
    padding: 10px;
}


/* ==========================================================================
   2. FORM LAYOUT
   ========================================================================== */

.ce-forms {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ce-formSections,
#formLoginModal .ce-formLoginContainer {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 10px;
    border: 0;
}

/* Rows wrap when fields don't fit (display and gaps come from core) */
.ce-formRows {
    flex-wrap: wrap;
}


/* ==========================================================================
   3. SECTION TITLES
   ========================================================================== */

.ce-formSections legend {
    margin-bottom: 8px;
    padding: 0;
    color: #2c1d22;
    font-size: 28px;
    text-transform: uppercase;
}


/* ==========================================================================
   4. FOOTER BUTTONS (Next / Back / Give, login modal buttons)
   ========================================================================== */

.ceFormFooterButtonContainers,
.ce-formLoginFooter {
    display: flex;
    align-self: center;
    gap: 10px;
}


/* ==========================================================================
   5. RADIO-BUTTON GROUPS
   Applies to: preset amounts, payment type, tribute announcement toggle.
   The native radio input is hidden; the label is the visible button.
   ========================================================================== */

/* 5.1 Group layout */
#tributeRecipientToggleRow .ce-radioButtonLists,
#amountAskStringsContainer .ce-radioButtonLists,
.ce-radioButtonLists.isPaymentType_id {
    display: flex;
    flex-wrap: wrap;
    row-gap: 12px;
}

    /* 5.2 Button look */
    #tributeRecipientToggleRow .ce-radioButtonLists label,
    #amountAskStringsContainer .ce-radioButtonLists label,
    .ce-radioButtonLists.isPaymentType_id label {
        display: block;
        padding: 10px;
        border: 1px solid black;
        cursor: pointer;
    }

    #tributeRecipientToggleRow .ce-radioButtonLists input[type="radio"] + label,
    #amountAskStringsContainer .ce-radioButtonLists input[type="radio"] + label,
    .ce-radioButtonLists.isPaymentType_id input[type="radio"] + label {
        border-radius: 5px;
    }

    /* 5.3 Hide the native radio input */
    #tributeRecipientToggleRow .ce-radioButtonLists input,
    #amountAskStringsContainer .ce-radioButtonLists input,
    .ce-radioButtonLists.isPaymentType_id input {
        display: none;
    }

        /* 5.4 Selected state */
        #tributeRecipientToggleRow .ce-radioButtonLists input[type="radio"]:checked + label,
        #amountAskStringsContainer .ce-radioButtonLists input[type="radio"]:checked + label,
        .ce-radioButtonLists.isPaymentType_id input[type="radio"]:checked + label {
            background-color: lightgrey;
        }

