#modal-content form {
    width: 500px;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2,1fr);
}
#modal-content form > div:nth-of-type(5),
.hs_message, .hs-budget__c, .hs_submit {
    grid-column-start: 1;
    grid-column-end: 3;
}
#modal-content form .hs-form-field,
#modal-content form .hs-form-field,
#modal-content form .hs-form-field {
    padding: 0 8px 16px;
}
#modal-content form .hs-form-field input,
#modal-content form .hs-form-field select,
#modal-content form .hs-form-field textarea {
    width: 100%;
    border-radius: 0;
}
.hs-error-msgs, .hs_newsletter_signup, .inputs-list {
    list-style-type: none;
    margin-left: 0;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
.hs_newsletter_signup {
    padding: 0 !important;
    margin: 0 !important;
}
.hs-form-booleancheckbox label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.hs-form-booleancheckbox label input {
    width: initial !important;
    margin-right: 8px;
}
.hs-form-required {
    display: inline-block;
    margin-left: 5px;
}
#modal-content form .hs-button {
    display: inline-block;
    margin: 1.5rem auto 0;
    background: var(--green);
    color: #FFF;
    display: inline-block;
    padding: 1rem 2rem;
    line-height: 1;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background 200ms ease-out;
    border: 2px solid transparent;
    text-transform: uppercase;
    border-radius: 0;
    padding: 1rem 2.5rem;
    max-width: 240px;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}
#hawk-modal form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 8px;
    background: #FFF;
}
.modal-form-title { display: none }
#hawk-modal.hubspot-form-modal .modal-form-title { 
    /* text-transform: uppercase; */
    font-size: 1.2rem;
    text-align: center;
    display: block;
    padding-bottom: 0.5rem;
}
#modal-content form .hs-button:hover {
    background: var(--darkgreen);
    color: #ededed;
}
#hawk-modal.hubspot-form-modal {
    padding: 1rem;
    background: #FFF;
    border: 2px solid var(--darkblue);
}

#hawk-modal.hubspot-form-modal > .container-sm {
    width: auto;
}

#hawk-modal #modal-close {
    padding: 0;
    font-size: 1rem;
    line-height: 1;
}

#hawk-modal .hs-error-msgs {
    margin: 0
}

#hawk-modal .hs-error-msgs li {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
}

#hawk-modal .hs-error-msgs .hs-error-msg, #hawk-modal .hs-form-required, #hawk-modal .hs_error_rollup .hs-main-font-element {
    font-size: 12px;
    color: red;
}

#hawk-modal #modal-close > svg {
    fill: #FFF;
}

#hawk-modal.hubspot-form-modal #modal-close > svg,
#hawk-modal.hubspot-form-modal #modal-close > svg > path {
    fill: var(--darkblue);
}
#hawk-modal.hubspot-form-modal {
    top: 2rem;
    right: 2rem;
    bottom: 2rem;
    left: 2rem;
}
#modal-content form .hs-form-field.hs-recaptcha {
    display: none;
}

#modal-content form .hs-button {
    margin-top: 0.5rem;
}

.hs-error-msgs {
    position: absolute;
    top: 40px;
    right: 10px;
    text-align: right;
    animation: 0.1s ease-in 1s forwards 1 errorAn;
    -webkit-animation: 0.1s ease-in 1s forwards 1 errorAn;
}

.hs-fieldtype-textarea .hs-error-msgs {
    top: 50px;
    animation: 0.1s ease-in 1s forwards 1 errorAnMessage;
    -webkit-animation: 0.1s ease-in 1s forwards 1 errorAnMessage;
}

.hs-form-field .hs-error-msgs:nth-of-type(2) {
    display: none;
}
.hs-input.error, .hs-select.error, .hs-textarea.error {
    border-color: red;
}

.hs_error_rollup .hs-error-msgs {
    animation: none;
    -webkit-animation: none;
    top: 22px;
    right: 18px;
}

@keyframes errorAn {
    from {
        top: 40px
    } to {
        top: 60px;
    }
}
@keyframes errorAnMessage {
    from {
        top: 50px
    } to {
        top: 76px;
    }
}
@media(min-width:540px) { 
    #hawk-modal.hubspot-form-modal .hs-submit .actions {
        text-align: center;
    }
    /*
    #modal-content form {
        display: grid;
        grid-template-columns: repeat(2,1fr);
    }
    .hs_message, .hs-budget__c, .hs_submit {
        grid-column-start: 1;
        grid-column-end: 3;
    }
    */
    #modal-content form .hs-submit .actions { 
        padding-right: 1rem;
    }
    #hawk-modal.hubspot-form-modal {
        top: 50%;
        height: auto;
        left: 50%;
        right: initial;
        transform: translateX(-50%) translateY(-50%);
        padding: 1rem;
        background: #FFF;
        border: 2px solid var(--darkblue);
        min-height: 685px;
    }
}
@media(max-width:541px) {
    #hawk-modal.hubspot-form-modal .modal-close-section {
        position: absolute;
        top: -10px;
        right: 10px;
        width: 20px;
        height: 20px;
        z-index: 10;
    }
    
    #hawk-modal {
        padding-top: 1rem;
    }
    #hawk-modal form {
        display: flex;
        flex-direction: column;
    }
    #hawk-modal .modal-close svg {
        width: 20px
    }
    #hawk-modal .modal-close {
        padding: 0;
        margin: 0;
    }
    /*
    #modal-content form .hs-form-field {
        padding: 0 5px 10px;
    }
    #modal-content form .hs-form-field label {
        font-size: 15px;
    }
    #modal-content form .hs-form-field input,
    #modal-content form .hs-form-field select,
    #modal-content form .hs-form-field textarea {
        padding: 8px;
        font-size: 15px;
    }
    */
    #hawk-modal .h-pad {
        padding-left: 8px;
        padding-right: 8px;
    }
    #hawk-modal .hs-recaptcha {
        order: 99;
        padding-top: 1rem !important;
        padding-left: 0 !important;
    }
    #modal-content form .hs-button {
        max-width: 100%;
    }
}

@media(orientation:landscape) and (max-height:740px) {
    #hawk-modal.hubspot-form-modal {
        min-height: 90vh;
        max-height: 100%;
    }
    /* #hawk-modal {
        overflow-y: scroll;
    } */
    #modal-content form {
        display: grid;
        grid-template-columns: repeat(2,1fr);
    }
    #modal-content form > div:nth-of-type(5),
    .hs_message, .hs-budget__c, .hs_submit {
        grid-column-start: 1;
        grid-column-end: 3;
    }
}

@media (max-height:600px) {
    #hawk-modal.hubspot-form-modal {
        min-height: 100vh;
    }
    #hawk-modal {
        overflow-y: scroll;
    }
}

@media(orientation:portrait) and (max-height:721px) {
    #hawk-modal.hubspot-form-modal {
        min-height: 90vh;
        max-height: 100%;
    }
}

@media(orientation:portrait) and (min-height: 720px) {
    #hawk-modal.hubspot-form-modal {
        top: 1rem;
        bottom: initial;
        left: 50%;
        right: initial;
        width: 97vw;
        transform: translateX(-50%) translateY(0);
        max-width: 550px;
    }
}
/*
@media(orientation:portrait) and (max-height: 780px) {
    #modal-content form .hs-form-field input, #modal-content form .hs-form-field select, #modal-content form .hs-form-field textarea {
        padding: 5px 8px;
        font-size: 14px;
    }
    
    #hawk-modal.hubspot-form-modal {
        top: 0.5rem;
        bottom: 0.5rem;
        left: 50%;
        width: 96vw;
        transform: translateX(-50%) translateY(0);
    }
}

.hawk-form-label {
    position: absolute;
    top: 18px;
    left: 12px;
    font-size: 12px;
    font-weight: 700; 
    z-index: 2;
    transition: top 200ms linear, font-size 150ms ease-in;
}

.input.hawk-form-input input, .input.hawk-form-select select, .input.hawk-form-textarea textarea {
    position: relative;
    z-index: 5;
    padding: 10px 6px;
    margin-top: 10px;
}

.hawk-form-label.hawk-label-action {
    top: 0px;
    font-size: 12px;
    z-index: 2;
}

@media(orientation:portrait) and (max-height: 900px) {
*/
.hawk-select-caret {
    position: absolute;
    top: 32px;
    right: 12px;
    pointer-events: none;
    z-index: 15;
    width: 12px;
    height: 10px;
}
.hawk-form-select.hawk-select-action > .hawk-select-caret { display: none }
    .hawk-form-label {
        position: absolute;
        top: 18px;
        font-size: 12px;
        z-index: 2;
        transition: top 200ms linear, font-size 150ms ease-in;
    }
    
    .input.hawk-form-input input, .input.hawk-form-select select, .input.hawk-form-textarea textarea {
        position: relative;
        z-index: 5;
        background: #FFF;
        padding: 15px 8px;
        font-size: 14px;
        margin-top: 12px;
    }
    
    .hawk-form-label.hawk-label-action {
        top: -8px;
        font-size: 12px;
    }
    /*
    .input.hawk-form-input.hawk-input-action input, .input.hawk-form-select.hawk-select-action select, .input.hawk-form-textarea.hawk-textarea-action textarea {
        margin-top: 11px;
        padding: 4px 6px; 
    }
}
*/

@media(orientation:portrait) and (max-height: 780px) {
    #hawk-modal form {
        padding-top: 1rem;
    }
    .hawk-form-label {
        top: 18px;
        font-size: 10px;
    }
    
    .input.hawk-form-input input, .input.hawk-form-select select, .input.hawk-form-textarea textarea {
        padding: 12px 6px;
        font-size: 12px;
    }
    
    .hawk-form-label.hawk-label-action {
        top: -8px;
        font-size: 10px;
    }
    
    .input.hawk-form-input.hawk-input-action input, .input.hawk-form-select.hawk-select-action select, .input.hawk-form-textarea.hawk-textarea-action textarea {
        margin-top: 11px;
        /* padding: 4px 6px; */
    }

    #hawk-modal.hubspot-form-modal .modal-form-title { padding-bottom: 0 }

    #hawk-modal .hs-error-msgs .hs-error-msg, #hawk-modal .hs-form-required, #hawk-modal .hs_error_rollup .hs-main-font-element {
        font-size: 10px;
    }

    .hs-error-msgs {
        top: 11px;
        background: #FFF;
        z-index: 4;
        line-height: 0.9;
    }

    #hawk-modal .hs_error_rollup .hs-error-msgs {
        animation: none;
        -webkit-animation: none;
        top: -12px;
        right: 50px;
    }

    @keyframes errorAn {
        from {
            top: 20px;
            right: 10px;
        } to {
            top: 50px;
            right: -10px;
        }
    }

    @keyframes errorAnMessage {
        from {
            top: 50px;
            right: 10px;
        } to {
            top: 76px;
            right: -10px;
        }
    }
}

@media(orientation:portrait) and (min-height: 780px) {
    #hawk-modal.hubspot-form-modal .modal-form-title {
        font-size: 1rem;
        padding-bottom: 0;
    }
    #modal-content form .hs-form-field, #modal-content form .hs-form-field, #modal-content form .hs-form-field {
        padding: 0 0 9px;
    }
    #modal-content form .hs-form-field, #modal-content form .hs-form-field, #modal-content form .hs-form-field label {
        font-size:14px;
        margin-bottom:4px;
    }
    #modal-content form .hs-form-field, #modal-content form .hs-form-field, #modal-content form .hs-form-field .input input {
        padding: 8px;
        line-height: 1;
        font-size: 14px;
    }
    #modal-content form .hs-form-field.hs-message {
        padding: 6px 8px 16px;
    }
    #modal-content form .hs-button {
        margin-top: 0;
        border:none;
        padding: 16px 10px;
    }
}

/* =======================================================
   TEAM-STRIP MODAL VARIANT (page 37177)
   ======================================================= */
#hawk-modal.hawk-modal--team-strip.opening {
    display: flex;
    flex-direction: column;
}

#hawk-modal.hawk-modal--team-strip,
#hawk-modal.hawk-modal--team-strip.hubspot-form-modal {
    padding: 0;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    max-height: 90vh;
    box-shadow: 0 20px 50px rgba(43, 58, 74, 0.16);
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: calc(100% - 3vw);
    max-width: 520px;
    min-height: unset;
    height: auto;
}

#hawk-modal.hawk-modal--team-strip #modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
    line-height: 1;
    font-size: 1rem;
}

#hawk-modal.hawk-modal--team-strip #modal-close > svg,
#hawk-modal.hawk-modal--team-strip #modal-close > svg > path,
#hawk-modal.hawk-modal--team-strip.hubspot-form-modal #modal-close > svg,
#hawk-modal.hawk-modal--team-strip.hubspot-form-modal #modal-close > svg > path {
    fill: #fff;
}

.ts-banner {
    background: linear-gradient(160deg, #2B3A4A 0%, #1E2A36 100%);
    color: #fff;
    padding: 22px 22px 20px;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.ts-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 0%, rgba(76, 173, 166, 0.3), transparent 60%);
    pointer-events: none;
}

.ts-avatar-stack {
    flex: 0 0 auto;
    position: relative;
    width: 104px;
    height: 102px;
    z-index: 1;
}
.ts-stack-photo {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    overflow: hidden;
    background: linear-gradient(135deg, #4CADA6, #3D5266);
}
.ts-stack-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ts-stack-photo:nth-child(1) { top: 0; left: 28px; }
.ts-stack-photo:nth-child(2) { top: 54px; left: 0; }
.ts-stack-photo:nth-child(3) { top: 54px; left: 56px; }

.ts-banner-text {
    position: relative;
    z-index: 1;
    min-width: 0;
    height: 102px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.ts-team-quote {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
    color: #fff;
}
.ts-names-wrap { margin-top: 14px; }
.ts-names {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
}
.ts-team-role {
    display: block;
    font-size: 11.5px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

.ts-modal-inner {
    padding: 22px 28px 28px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
}

.ts-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
}
.ts-progress-col {
    flex: 1;
    position: relative;
    height: 26px;
    display: flex;
    align-items: center;
}
.ts-progress-seg {
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: #E4E7EB;
}
.ts-progress-seg--active { background: #4CADA6; }
.ts-progress-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #E4E7EB;
    padding: 4px 11px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: #5B6B7C;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}
.ts-progress-label--active {
    border-color: #4CADA6;
    color: #3D948E;
    background: #F4FBFA;
}
.ts-num-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1.3px solid currentColor;
    font-size: 9.5px;
    font-weight: 700;
    flex: 0 0 auto;
}

.ts-form-title {
    font-size: 20px;
    font-weight: 800;
    color: #2B3A4A;
    margin: 0 0 8px;
    padding: 0;
    letter-spacing: -0.01em;
}

/* Form field styles matching the reference design */
#hawk-modal.hawk-modal--team-strip #modal-content form {
    gap: 0 8px;
}

#hawk-modal.hawk-modal--team-strip #modal-content form .hs-form-field {
    padding: 0 0 14px;
    position: relative;
}

#hawk-modal.hawk-modal--team-strip #modal-content form .hs-form-field label {
    font-size: 12px;
    font-weight: 600;
    color: #2B3A4A;
    display: block;
    margin-bottom: 4px;
    position: static;
    top: auto;
    font-family: inherit;
}

#hawk-modal.hawk-modal--team-strip #modal-content form .hs-form-required {
    color: #E0625A;
}

#hawk-modal.hawk-modal--team-strip #modal-content form .hs-form-field input,
#hawk-modal.hawk-modal--team-strip #modal-content form .hs-form-field select,
#hawk-modal.hawk-modal--team-strip #modal-content form .hs-form-field textarea {
    border: 1px solid #E4E7EB;
    border-radius: 7px;
    padding: 11px 13px;
    font-size: 14px;
    font-family: inherit;
    color: #2B3A4A;
    background: #fff;
    width: 100%;
    margin-top: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#hawk-modal.hawk-modal--team-strip #modal-content form .hs-form-field input:focus,
#hawk-modal.hawk-modal--team-strip #modal-content form .hs-form-field select:focus,
#hawk-modal.hawk-modal--team-strip #modal-content form .hs-form-field textarea:focus {
    outline: none;
    border-color: #4CADA6;
    box-shadow: 0 0 0 3px rgba(76, 173, 166, 0.15);
}

#hawk-modal.hawk-modal--team-strip #modal-content form .hs-form-field textarea {
    resize: vertical;
    min-height: 56px;
}

#hawk-modal.hawk-modal--team-strip #modal-content form .hs-button {
    width: 100%;
    max-width: 100%;
    background: #4CADA6;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease;
    text-transform: none;
    margin-top: 4px;
    display: block;
}

#hawk-modal.hawk-modal--team-strip #modal-content form .hs-button:hover {
    background: #3D948E;
    color: #fff;
}

/* Override responsive rules that conflict with team-strip */
@media (min-width: 540px) {
    #hawk-modal.hawk-modal--team-strip,
    #hawk-modal.hawk-modal--team-strip.hubspot-form-modal {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%);
        padding: 0;
        border: none;
        min-height: unset;
        height: auto;
    }
}

@media (orientation: portrait) and (min-height: 720px) {
    #hawk-modal.hawk-modal--team-strip,
    #hawk-modal.hawk-modal--team-strip.hubspot-form-modal {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%);
        width: calc(100% - 2rem);
        max-width: 520px;
    }
}

@media (orientation: portrait) and (max-height: 721px),
       (max-height: 600px) {
    #hawk-modal.hawk-modal--team-strip,
    #hawk-modal.hawk-modal--team-strip.hubspot-form-modal {
        max-height: 100vh;
        border-radius: 0;
    }
}

@media (max-width: 459px) {
    #hawk-modal.hawk-modal--team-strip,
    #hawk-modal.hawk-modal--team-strip.hubspot-form-modal {
        border-radius: 0;
        width: 100%;
        max-width: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        max-height: 100vh;
    }
}