/* ==========================================================
   BANNER MEDIA TYPES
   Styles for image overflow, form, and video media options
   within the page banner right-hand column.
   ========================================================== */

/* ----------------------------------------------------------
   OPTION 1: IMAGE OVERFLOW
   Image sits 30px below the banner bottom edge
   ---------------------------------------------------------- */

.landing-page .page-banner .banner-media-type-image {
    position: relative;
    z-index: 5;
    margin-bottom: -30px;
}

/* Add padding to the next section to accommodate the overflow */
.landing-page .page-banner:has(.banner-media-type-image) + section,
.landing-page .page-banner:has(.banner-media-type-image) + .page-banner-cta-section {
    padding-top: calc(70px + 30px);
}

@media (max-width: 991px) {
    .landing-page .page-banner .banner-media-type-image {
        margin-bottom: 0;
    }
    .landing-page .page-banner:has(.banner-media-type-image) + section,
    .landing-page .page-banner:has(.banner-media-type-image) + .page-banner-cta-section {
        padding-top: 38px;
    }
}

/* ----------------------------------------------------------
   OPTION 2: FORM WITH IMAGE & ICON
   Frosted glass form container with decorative elements
   ---------------------------------------------------------- */

.banner-media-form {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.banner-media-form svg {
    position: absolute;
    top: 0;
    right: 150px;
}

@media(max-width: 1600px) {
    .banner-media-form svg {
    top: -200px;
    right: 100px;
    }
}
/* Frosted glass form container — dark blue-grey semi-transparent */
.banner-form-container {
    background: rgb(255 255 255 / 8%);
    backdrop-filter: blur(12px) contrast(1.3);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 30px;
    padding: 36px 32px;
    width: 100%;
    max-width: 520px;
    position: relative;
}

.banner-form-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 3px;
    background: linear-gradient(
        138deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(238, 238, 238, 0) 25%,
        rgba(150, 150, 150, 0.35) 50%,
        rgba(153, 153, 153, 0) 75%,
        rgba(153, 153, 153, 0.25) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.banner-form-container .form-heading {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: -1.2px;
    margin-bottom: 5px;
}

.banner-form-container .form-subheading {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 20px;
}

@media(max-width: 991px) {
    .banner-form-container {
        padding: 37px 20px;
    }
}
/* Two-column form layout (Gravity Forms only — CF7 uses .banner-form-grid) */
.banner-form-fields form.wpcf7-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Full-width fields (textarea, select, submit, acceptance) */
.banner-form-container .wpcf7-form-control-wrap:has(select, textarea) {
    grid-column: span 2;
}
/* Submit button */
.banner-form-fields input[type="submit"],
.banner-form-fields .gform_button {
    background-color: #B7CE3F;
    color: #1B3B5A;
    border: none;
    border-radius: 8px;
    padding: 14px 30px;
    font-weight: 700;
    font-size: 15px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.banner-form-fields input[type="submit"]:hover,
.banner-form-fields .gform_button:hover {
    background-color: #a3b835;
}

/* Form field overrides within banner context */
.banner-form-fields input[type="text"],
.banner-form-fields input[type="email"],
.banner-form-fields input[type="tel"],
.banner-form-fields input[type="number"],
.banner-form-fields select,
.banner-form-fields textarea,
.banner-form-fields .choices__inner {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
}

/* Decorative image near form (top-right) */
.banner-form-image {
    position: absolute;
    top: -20px;
    right: 0;
    z-index: 2;
    max-width: 180px;
}

.banner-form-image img {
    width: 100%;
    height: auto;
}

/* Decorative icon on dashed circular border (left side) */
.banner-form-icon {
    position: absolute;
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
    z-index: 3;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.banner-form-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* ----------------------------------------------------------
   CF7 FORM GRID & FIELD STYLING
   Targets the .banner-form-grid wrapper from the CF7 markup
   ---------------------------------------------------------- */

/* Two-column grid layout */
.banner-form-container .banner-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.banner-form-container .form-field.half {
    grid-column: span 1;
}

.banner-form-container .form-field.full {
    grid-column: 1 / -1;
}

/* All inputs, selects, textareas */
.banner-form-container .wpcf7-form-control:not([type="submit"]):not(.wpcf7-acceptance) {
    width: 100%;
    background: #fff;
    border: none;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: -0.3px;
    color: var(--dark-blue, #0A3E3F);
    font-family: var(--open-sans-font, "Open Sans", sans-serif, system-ui);
    -webkit-appearance: none;
    appearance: none;
}

.banner-form-container .wpcf7-form-control::placeholder {
    color: var(--dark-blue, #0A3E3F);
    opacity: 1;
    font-weight: 600;
}

/* Select dropdown arrow */
.banner-form-container .wpcf7-select {
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%230A3E3F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
    cursor: pointer;
}

/* Textarea */
.banner-form-container .wpcf7-textarea {
    height: 80px;
    resize: vertical;
}

/* Acceptance checkbox */
.banner-form-container .checkbox-field .wpcf7-form-control-wrap {
    width: 100%;
}

.banner-form-container .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

.banner-form-container .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: -0.26px;
    color: #fff;
}

.banner-form-container .wpcf7-acceptance input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.15);
    margin-right: 10px;
    vertical-align: middle;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.597 1.088L4.227 7.458L1.042 4.273' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 0;
}

.banner-form-container .wpcf7-acceptance input[type="checkbox"]:checked {
    background-color: var(--green, #B7CE3F);
    border-color: var(--green, #B7CE3F);
    background-size: 12px;
}

/* Submit button (CF7) */
.banner-form-container .wpcf7-submit,
.banner-form-container .banner-form-submit {
    width: 100%;
    background-color: var(--green, #B7CE3F);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 17px 30px;
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: -0.36px;
    font-family: var(--open-sans-font, "Open Sans", sans-serif, system-ui);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.banner-form-container .wpcf7-submit:hover,
.banner-form-container .banner-form-submit:hover {
    background-color: #a3b835;
}

/* Focus states */
.banner-form-container .wpcf7-form-control:focus:not([type="submit"]) {
    outline: none;
    box-shadow: 0 0 0 2px rgba(183, 206, 63, 0.5);
}

/* CF7 validation & response */
.banner-form-container .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #ff6b6b;
    margin-top: 4px;
}

.banner-form-container .wpcf7-response-output {
    border: none;
    padding: 10px 0;
    margin: 0;
    font-size: 13px;
    color: #fff;
    text-align: center;
}

.banner-form-container .wpcf7-spinner {
    display: block;
    margin: 8px auto 0;
}

/* CF7 resets inside banner */
.banner-form-container .wpcf7-form p {
    margin: 0;
}

.banner-form-container .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin: 0;
}

/* Force CF7 form controls to fill their grid cells */
.banner-form-container .banner-form-grid .form-field {
    min-width: 0;
}

.banner-form-container .banner-form-grid .form-field > span,
.banner-form-container .banner-form-grid .form-field .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}

.banner-form-container .banner-form-grid .form-field input,
.banner-form-container .banner-form-grid .form-field select,
.banner-form-container .banner-form-grid .form-field textarea {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ----------------------------------------------------------
   OPTION 3: EMBEDDED VIDEO
   Responsive video with rounded corners and optional badge
   ---------------------------------------------------------- */

.banner-media-video {
    position: relative;
}

/* Rounded video container */
.banner-video-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive iframe */
.banner-video-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    border: none;
}

/* Video badge/logo */
.banner-video-badge {
    position: absolute;
    top: -15px;
    left: -15px;
    z-index: 2;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.banner-video-badge img {
    max-height: 35px;
    width: auto;
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 991px) {
    .banner-form-container {
        max-width: 100%;
    }

    .banner-form-image {
        max-width: 120px;
    }

    .banner-form-icon {
        display: none;
    }
}

@media (max-width: 767px) {
    .banner-form-fields .gform_body .gform_fields {
        grid-template-columns: 1fr;
    }

    .banner-form-container .banner-form-grid {
        grid-template-columns: 1fr;
    }

    .banner-form-container .form-field.half {
        grid-column: 1 / -1;
    }

    .banner-form-container .wpcf7-submit {
        font-size: 16px;
        padding: 15px 24px;
    }

    .banner-form-image {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 15px;
    }
}
