/* Shared Spark styling for all Gravity Forms. */
.gform_wrapper .gform_heading,
.gform_wrapper .gfield:not(.gfield--type-consent) > .gfield_label,
.gform_wrapper .gfield:not(.gfield--type-consent) > legend.gfield_label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gform_wrapper .gform_fields {
    display: grid;
    gap: 30px;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="file"],
.gform_wrapper textarea,
.gform_wrapper select {
    width: 100% !important;
    appearance: none;
    border: 0 !important;
    border-radius: 20px !important;
    background: var(--color-surface) !important;
    color: var(--color-gray) !important;
    padding: 22px 40px !important;
    font-size: 22px !important;
    line-height: 1.25 !important;
    text-align: left !important;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: outline-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper input[type="file"]:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
    outline-color: var(--color-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 14%, transparent);
}

.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder {
    color: color-mix(in srgb, var(--color-gray) 72%, transparent);
    opacity: 1;
}

.gform_wrapper textarea {
    min-height: 220px;
    resize: vertical;
}

.gform_wrapper input[type="file"] {
    font-size: 16px;
}

.gform_wrapper input[type="file"]::file-selector-button {
    margin-right: 16px;
    cursor: pointer;
    border: 0;
    border-radius: 8px;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 10px 16px;
}

.gform_wrapper .gform-phone__input-wrapper {
    display: flex !important;
    align-items: stretch;
}

.gform_wrapper .ginput_country-selector_container {
    flex: 0 0 auto;
}

.gform_wrapper .ginput_phone_container {
    flex: 1 1 auto;
}

.gform_wrapper .ginput_container_phone .gform-field-label--type-sub {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gform_wrapper .gform-phone__country-selector {
    height: 100% !important;
    min-width: 125px;
    border: 0 !important;
    border-radius: 20px 0 0 20px !important;
    background: color-mix(in srgb, var(--color-surface) 88%, var(--color-periwinkle)) !important;
    padding: 0 22px !important;
    font-size: 20px !important;
}

.gform_wrapper .gform-phone__input {
    border-radius: 0 20px 20px 0 !important;
    padding-left: 24px !important;
}

.gform_wrapper .gfield--type-consent .gfield_label {
    display: none;
}

.gform_wrapper .ginput_container_consent {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    font-size: 20px !important;
    line-height: 1.35 !important;
}

.gform_wrapper .ginput_container_consent input[type="checkbox"] {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    cursor: pointer;
    appearance: none;
    border: 2px solid transparent;
    background: var(--color-surface);
    display: inline-grid;
    place-content: center;
    transition: background-color 180ms var(--ease), border-color 180ms var(--ease);
}

.gform_wrapper .ginput_container_consent input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 18px;
    border: solid var(--color-white);
    border-width: 0 3px 3px 0;
    transform: translateY(-2px) rotate(45deg) scale(0);
    transition: transform 160ms var(--ease);
}

.gform_wrapper .ginput_container_consent input[type="checkbox"]:checked {
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.gform_wrapper .ginput_container_consent input[type="checkbox"]:checked::before {
    transform: translateY(-2px) rotate(45deg) scale(1);
}

.gform_wrapper .gform_footer {
    margin-top: 30px;
    padding: 0;
}

.gform_wrapper input[type="submit"],
.gform_wrapper button[type="submit"] {
    cursor: pointer;
    border: 0 !important;
    border-radius: 6px !important;
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
    padding: 16px 28px !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
    box-shadow: none !important;
    transition: translate 180ms var(--ease), box-shadow 180ms var(--ease);
}

.gform_wrapper input[type="submit"]:hover,
.gform_wrapper button[type="submit"]:hover {
    translate: 0 -4px;
    box-shadow: 0 6px 12px rgb(0 0 0 / 15%);
}

.gform_wrapper .gfield_validation_message,
.gform_wrapper .validation_message,
.gform_wrapper .gform_validation_errors {
    color: var(--color-accent);
    font-size: 16px;
}

/* Application forms: keep the two-column layout, but make native GF controls visually balanced. */
#gform_wrapper_1 input[type="text"],
#gform_wrapper_1 input[type="email"],
#gform_wrapper_1 input[type="tel"],
#gform_wrapper_1 input[type="file"],
#gform_wrapper_2 input[type="text"],
#gform_wrapper_2 input[type="email"],
#gform_wrapper_2 input[type="tel"],
#gform_wrapper_2 input[type="file"] {
    height: 64px !important;
    min-height: 64px !important;
    background: var(--color-white) !important;
}

#gform_wrapper_1 .gform-phone__country-selector,
#gform_wrapper_2 .gform-phone__country-selector {
    height: 64px !important;
}

#gform_wrapper_1 textarea,
#gform_wrapper_2 textarea {
    height: 180px !important;
    min-height: 180px !important;
    background: var(--color-white) !important;
}

#gform_wrapper_1 .gform-phone__country-selector,
#gform_wrapper_2 .gform-phone__country-selector,
#gform_wrapper_1 .ginput_container_consent input[type="checkbox"]:not(:checked),
#gform_wrapper_2 .ginput_container_consent input[type="checkbox"]:not(:checked) {
    background: var(--color-white) !important;
}

#gform_wrapper_1 input[type="file"],
#gform_wrapper_2 input[type="file"] {
    overflow: hidden;
    padding: 0 24px 0 0 !important;
    line-height: 64px !important;
}

#gform_wrapper_1 input[type="file"]::file-selector-button,
#gform_wrapper_2 input[type="file"]::file-selector-button {
    height: 64px;
    margin-right: 24px;
    border-radius: 20px 0 0 20px;
    padding: 0 28px;
    font-size: 18px;
    line-height: 64px;
}

@media (max-width: 768px) {
    .gform_wrapper .gform_fields {
        gap: 20px;
    }

    .gform_wrapper input[type="text"],
    .gform_wrapper input[type="email"],
    .gform_wrapper input[type="tel"],
    .gform_wrapper input[type="file"],
    .gform_wrapper textarea,
    .gform_wrapper select {
        border-radius: 14px !important;
        padding: 17px 20px !important;
        font-size: 18px !important;
    }

    .gform_wrapper textarea {
        min-height: 170px;
    }

    .gform_wrapper .ginput_container_consent {
        gap: 12px;
        font-size: 16px !important;
    }

    .gform_wrapper .gform-phone__country-selector {
        min-width: 100px;
        border-radius: 14px 0 0 14px !important;
        padding: 0 14px !important;
        font-size: 16px !important;
    }

    .gform_wrapper .gform-phone__input {
        border-radius: 0 14px 14px 0 !important;
        padding-left: 16px !important;
    }

    #gform_wrapper_1 input[type="text"],
    #gform_wrapper_1 input[type="email"],
    #gform_wrapper_1 input[type="tel"],
    #gform_wrapper_1 input[type="file"],
    #gform_wrapper_2 input[type="text"],
    #gform_wrapper_2 input[type="email"],
    #gform_wrapper_2 input[type="tel"],
    #gform_wrapper_2 input[type="file"],
    #gform_wrapper_1 .gform-phone__country-selector,
    #gform_wrapper_2 .gform-phone__country-selector {
        height: 56px !important;
        min-height: 56px !important;
    }

    #gform_wrapper_1 textarea,
    #gform_wrapper_2 textarea {
        height: 150px !important;
        min-height: 150px !important;
    }

    #gform_wrapper_1 input[type="file"]::file-selector-button,
    #gform_wrapper_2 input[type="file"]::file-selector-button {
        height: 56px;
        margin-right: 16px;
        border-radius: 14px 0 0 14px;
        padding: 0 18px;
        font-size: 16px;
        line-height: 56px;
    }
}
