/* ==========================================================================
   CF Charity Lotto — Company Landing Page Styles
   ========================================================================== */

/* -------------------------------------------------
   Typography
-------------------------------------------------- */
.charity-lotto-company-page {
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    color: #333;
    margin: 0;
    padding: 0;
}

.charity-lotto-company-page h1,
.charity-lotto-company-page h2,
.charity-lotto-company-page h3,
.charity-lotto-company-page h4,
.charity-lotto-company-page h5,
.charity-lotto-company-page h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}

.charity-lotto-company-page p {
    font-size: 1em;
    line-height: 1.6;
}


/* -------------------------------------------------
   1. Pink Top Stripe
-------------------------------------------------- */
.cfcl-pink-stripe {
    background-color: #cd1b68;
    height: 10px;
    width: 100%;
}


/* -------------------------------------------------
   2. Theme Logos Area
-------------------------------------------------- */
.cfcl-logos-area {
    max-height: 140px;
}

.cfcl-logos-area img {
    max-height: 80px;
    width: auto;
}


/* -------------------------------------------------
   3. Blue Navigation Bar
-------------------------------------------------- */
.cfcl-nav-bar {
    background-color: #0C3865;
}

.cfcl-nav-bar .nav-link {
    color: #fff !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.cfcl-nav-bar .nav-link:hover {
    opacity: 0.8;
}


/* -------------------------------------------------
   4. Company Banner
-------------------------------------------------- */
.cfcl-company-banner {
    background-color: #fff;
}

.cfcl-company-name {
    color: #0C3865;
    font-size: 2.2rem;
    margin-bottom: 0;
}

.cfcl-company-logo {
    max-height: 120px;
    width: auto;
}

.cfcl-header-image {
    max-height: 120px;
    width: auto;
}


/* -------------------------------------------------
   5. Pink Decorative Bar
-------------------------------------------------- */
.cfcl-pink-bar {
    background-color: #cd1b68;
    height: 20px;
    width: 100%;
}


/* -------------------------------------------------
   6 & 8. Content Text Sections
-------------------------------------------------- */


.cfcl-content-text h2 {
    color: #0C3865;
}


/* -------------------------------------------------
   Legal / Content Page (page-charity-lotto template)
-------------------------------------------------- */
.cfcl-content-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.cfcl-page-title {
    color: #0C3865;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #cd1b68;
}

.cfcl-page-body {
    color: #444;
    line-height: 1.8;
}

.cfcl-page-body h2,
.cfcl-page-body h3,
.cfcl-page-body h4 {
    color: #0C3865;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.cfcl-page-body a {
    color: #cd1b68;
    text-decoration: underline;
}

.cfcl-page-body a:hover {
    color: #0C3865;
}

.cfcl-page-body ul,
.cfcl-page-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.cfcl-page-body li {
    margin-bottom: 0.4rem;
}

@media (max-width: 767.98px) {
    .cfcl-content-card {
        padding: 1.5rem 1.25rem;
    }

    .cfcl-page-title {
        font-size: 1.5rem;
    }
}


/* -------------------------------------------------
   7. Gravity Form Section
-------------------------------------------------- */
.cfcl-form-section {
    background-color: #fff;
}


/* -------------------------------------------------
   GF Form Styling (Form ID 22)
-------------------------------------------------- */

/* Form card */
#gform_wrapper_22 {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Shared input style (all pages) */
#gform_wrapper_22 input[type="text"],
#gform_wrapper_22 input[type="email"],
#gform_wrapper_22 input[type="tel"],
#gform_wrapper_22 input[type="number"],
#gform_wrapper_22 textarea,
#gform_wrapper_22 select {
    background-color: #f7f8fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 1rem;
    color: #333;
    width: 100%;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#gform_wrapper_22 .gfield_required_text{display:none;}

#gform_wrapper_22 input[type="text"]:focus,
#gform_wrapper_22 input[type="email"]:focus,
#gform_wrapper_22 input[type="tel"]:focus,
#gform_wrapper_22 input[type="number"]:focus,
#gform_wrapper_22 textarea:focus,
#gform_wrapper_22 select:focus {
    outline: none;
    border-color: #0C3865;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(12, 56, 101, 0.1);
}

/* GF field labels */
#gform_wrapper_22 .gfield_label {
    font-weight: 600;
    color: #0C3865;
    font-size: 0.95rem;
}

/* Hide product price display */
#ginput_product_price_22_17, #gfield_instruction_22_24 {
    display: none;
}

/* Radio button group layout */
#gform_wrapper_22 #input_22_18 {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Hide actual radio inputs, instructions, progress bar */
#gform_wrapper_22 .gfield-choice-input,
#gfield_instruction_22_10,
#gf_progressbar_wrapper_22 {
    display: none;
}

/* Donation amount — each choice as a button */
#input_22_18 .gchoice {
    flex: 0 0 calc(33.333% - 1rem);
    text-align: center;
}

#input_22_18 .gchoice input[type="radio"] {
    display: none;
}

#input_22_18 .gchoice label {
    display: block;
    background-color: #fff;
    color: #0C3865;
    padding: 0.75rem 1rem;
    border: 2px solid #0C3865;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

#input_22_18 .gchoice label:hover {
    background-color: #0C3865;
    color: #fff;
}

#input_22_18 .gchoice input[type="radio"]:checked + label {
    background-color: #cd1b68;
    color: #fff;
    border-color: #cd1b68;
}

/* Custom amount field */
#field_22_10 {
    text-align: center;
}

#input_22_10 {
    width: 50%;
    display: inline-block;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Entry type radio buttons (monthly / one-time) */
#gform_wrapper_22 #input_22_23 {
    display: flex;
    flex-wrap: wrap;
    /* gap: 1.5rem; */
    /* justify-content: center; */
    margin-top: 1rem;
    flex-direction: column;
}

#gform_wrapper_22 #input_22_23 .gchoice {
    flex: 0 0 auto;
    text-align: center;
}

#gform_wrapper_22 #input_22_23 input[type="radio"] {
    display: none;
}

#gform_wrapper_22 #input_22_23 .gform-field-label--type-inline {
    display: flex;
    /* align-items: center; */
    gap: 0.5rem;
    background: none;
    color: #555;
    padding: 0.4rem 0;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: color 0.2s ease;
    font-weight: 600;
    font-size: 0.95rem;
    /* flex-direction: row!important; */
}

#gform_wrapper_22 #input_22_23 .gform-field-label--type-inline::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 3px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

#gform_wrapper_22 #input_22_23 .gform-field-label--type-inline:hover {
    color: #0C3865;
}

#gform_wrapper_22 #input_22_23 .gform-field-label--type-inline:hover::before {
    border-color: #0C3865;
}

#gform_wrapper_22 #input_22_23 input[type="radio"]:checked + .gform-field-label--type-inline {
    color: #0C3865;
}

#gform_wrapper_22 #input_22_23 input[type="radio"]:checked + .gform-field-label--type-inline::before {
    background-color: #0C3865;
    border-color: #0C3865;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Gift Aid consent checkbox */
#gform_wrapper_22 .ginput_container_consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

#gform_wrapper_22 .ginput_container_consent input[type="checkbox"] {
    display: none;
}

#gform_wrapper_22 .ginput_container_consent .gfield_consent_label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #555;
    padding: 0;
    border: none;
    transition: color 0.2s ease;
}

#gform_wrapper_22 .ginput_container_consent .gfield_consent_label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #ccc;
    border-radius: 3px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 2px;
}

#gform_wrapper_22 .ginput_container_consent .gfield_consent_label:hover {
    color: #0C3865;
}

#gform_wrapper_22 .ginput_container_consent .gfield_consent_label:hover::before {
    border-color: #0C3865;
}

#gform_wrapper_22 .ginput_container_consent input[type="checkbox"]:checked + .gfield_consent_label {
    color: #0C3865;
}

#gform_wrapper_22 .ginput_container_consent input[type="checkbox"]:checked + .gfield_consent_label::before {
    background-color: #0C3865;
    border-color: #0C3865;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Stripe card iframe container */
#gform_wrapper_22 .gform_card_icon_container {
    display: none;
}

#gform_wrapper_22 .ginput_container_creditcard iframe {
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Submit and Next buttons */
#gform_submit_button_22,
.gform_next_button {
    background-color: #cd1b68;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s ease;
    cursor: pointer;
}

#gform_submit_button_22:hover,
.gform_next_button:hover {
    background-color: #a11552;
}

#gform_previous_button_22 {
    background-color: #0C3865 !important;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s ease;
    cursor: pointer;
}
#gform_previous_button_22:hover {
    background-color: #3f648a !important;
}

/* -------------------------------------------------
   9. Pink Footer
-------------------------------------------------- */
.cfcl-footer-pink {
    background-color: #cd1b68;
    color: #fff;
}

.cfcl-footer-text {
    font-size: 0.85em;
}

.cfcl-footer-text p {
    font-size: 0.85em;
    margin-bottom: 0.5em;
}

.cfcl-footer-text a {
    color: #fff;
    text-decoration: underline;
}


/* -------------------------------------------------
   10. Blue Regulatory Footer
-------------------------------------------------- */
.cfcl-footer-regulatory {
    background-color: #0C3865;
    color: #fff;
}

.cfcl-regulatory-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cfcl-regulatory-list li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.cfcl-regulatory-list li a:hover {
    opacity: 0.8;
    text-decoration: underline;
}


/* -------------------------------------------------
   Responsive
-------------------------------------------------- */
@media (max-width: 767.98px) {
    .cfcl-company-name {
        font-size: 1.6rem;
        margin-top: 1rem;
    }

    .cfcl-company-logo,
    .cfcl-header-image {
        max-height: 80px;
        margin-bottom: 1rem;
    }

    #input_22_18 .gchoice {
        flex: 0 0 calc(50% - 1rem);
    }

    #input_22_10 {
        width: 80% !important;
    }

    #gform_wrapper_22 {
        padding: 1.5rem 1.25rem;
    }

    .cfcl-regulatory-list {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}
