/* Match the existing design to the custom validator/phone script at the bottom of index.php. */
.lead-form {
    --field-background: #364153;
    font-family: Inter, Arial, sans-serif;
}
.lead-form.form-2 { --field-background: #367ad7; }
.lead-form .t-form__inputsbox {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}
.lead-form.form-1 .t-form__inputsbox {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.lead-form .t-input-group {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}
.lead-form .t-input-block { width: 100%; overflow: visible !important; }
.lead-form .t-input,
.lead-form select[name="lossAmountRange"] {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 1px solid transparent !important;
    border-radius: 0;
    background-color: var(--field-background) !important;
    color: #fff !important;
    font-family: Inter, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    transition: border-color .15s, box-shadow .15s;
}
.lead-form .t-input::placeholder { color: #e0e7ef; opacity: 1; }
.lead-form .t-input:focus,
.lead-form select[name="lossAmountRange"]:focus,
.lead-form .phone-wrap:focus-within {
    outline: 2px solid #a9cfff;
    outline-offset: 1px;
}
.lead-form select[name="lossAmountRange"] {
    appearance: none;
    padding-right: 38px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='white' stroke-width='1.7'/%3E%3C/svg%3E");
    background-position: right 16px center;
    background-repeat: no-repeat;
}
.lead-form .t-input.invalid,
.lead-form select[name="lossAmountRange"].invalid {
    border-color: #ff6666 !important;
    box-shadow: inset 0 0 0 1px #ff6666 !important;
}

/* Custom phone control used by initPhoneField() in index.php. */
.lead-form .phone-wrap {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    height: 52px;
    border: 1px solid transparent;
    background: var(--field-background);
    transition: border-color .15s, box-shadow .15s;
}
.lead-form .phone-wrap.invalid {
    border-color: #ff6666 !important;
    box-shadow: inset 0 0 0 1px #ff6666 !important;
}
.lead-form .phone-wrap .flagIcon {
    width: 24px !important;
    height: 16px !important;
    flex: 0 0 24px !important;
    margin: 0 4px 0 12px !important;
    object-fit: cover;
    border-radius: 2px;
}
.lead-form .countrySelect {
    box-sizing: border-box;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    margin: 0px 10px 0px 4px;
    font-size: 16px;
    font-family: Inter, Arial, sans-serif !important;
    padding: 0;
    border: 0;
    outline: 0;
    appearance: none;
    color: white;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='m1.5 2 3.5 3 3.5-3' fill='none' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right;
    background-position-x: 110%;
    
    cursor: pointer;
}
.lead-form .countrySelect option {
    color: #172235;
    background: #fff;
}
.lead-form .phone-wrap .phoneInput {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    height: 50px !important;
    padding: 0 16px 0 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.lead-form .t-form__inputsbox > p,
.lead-form .t-input-group_cb,
.lead-form .t-form__errorbox-middle,
.lead-form .tn-form__submit { grid-column: 1 / -1; }
.lead-form .t-form__errorbox-middle { display: none; }
.lead-form .t-form__inputsbox > p {
    margin: 0 !important;
    font: 400 14px/1.5 Inter, Arial, sans-serif;
}
.lead-form .t-checkbox__control { margin: 0 !important; }
.lead-form .t-submit {
    position: relative;
    width: 100% !important;
    height: 52px !important;
    padding-left: 52px !important;
    padding-right: 52px !important;
    font: 500 16px Inter, Arial, sans-serif !important;
}
.lead-form .t-submit:disabled { cursor: not-allowed; }
.lead-form .form-submit-arrow {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Old standalone Tilda arrow images were below the button and were not clickable. */
#rec1511035691 .tn-elem[data-elem-id="176217124521636980"],
#rec1511938571 .tn-elem[data-elem-id="1762106338124"] {
    display: none !important;
}

@media (max-width: 639px) {
    .lead-form.form-1 .t-form__inputsbox {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
}

/* Keep the map headline readable over the bright labels and terrain. */
#rec1517797501 .tn-elem[data-elem-id="176216806233450750"],
#rec1513581411 .tn-elem[data-elem-id="176216878683990720"] { z-index: 20 !important; }
#rec1517797501 .tn-elem[data-elem-id="176216806233450750"] .tn-atom,
#rec1513581411 .tn-elem[data-elem-id="176216878683990720"] .tn-atom {
    text-shadow: 0 2px 3px #071a35, 0 5px 16px rgba(0, 0, 0, .9);
}

/* Give the founder's two-line name its own space above the role. */
#rec1511244161 .tn-elem[data-elem-id="1762088820323"] { transform: translateY(-7px); }
#rec1511244161 .tn-elem[data-elem-id="1762088820323"] .tn-atom {
    font-size: 20px !important;
    line-height: 23px !important;
}

/* The same concise preview is used for every review card. */
#rec1514170421 .review-summary .tn-atom { font-size: 14px !important; line-height: 20px !important; }
@media (max-width: 1199px) {
    #rec1514170421 .review-summary { width: 260px !important; }
    #rec1514170421 .review-summary .tn-atom { line-height: 19px !important; }
    #rec1511244161 .tn-elem[data-elem-id="1762088820323"] .tn-atom { font-size: 18px !important; line-height: 20px !important; }
}
@media (max-width: 639px) {
    .lead-form.form-1 .t-form__inputsbox { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}


/* === 2026-09-15 requested visual fixes === */

/* Keep the user-defined countrySelect width exactly as-is.
   The chevron is a separate flex item placed between country and dial code. */
.lead-form .countrySelect {
    background-image: none !important;
}
.lead-form .country-select-arrow {
    display: block;
    width: 10px;
    height: 7px;
    flex: 0 0 10px;
    margin: 0 7px 0 -3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='m1.5 1.5 3.5 3.5 3.5-3.5' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px 7px no-repeat;
    pointer-events: none;
}

/* Native select popup: keep loss amount choices readable on the dark/blue fields. */
.lead-form select[name="lossAmountRange"] option {
    color: #fff !important;
    background: var(--field-background) !important;
}

/* Center 01 / 02 / 03 consistently inside their round markers. */
#rec1511110131 .tn-elem[data-elem-id="1762085579014"],
#rec1511110131 .tn-elem[data-elem-id="1762085579017"],
#rec1511110131 .tn-elem[data-elem-id="1762085579019"] {
    text-align: center !important;
}
#rec1511110131 .tn-elem[data-elem-id="1762085579014"] .tn-atom,
#rec1511110131 .tn-elem[data-elem-id="1762085579017"] .tn-atom,
#rec1511110131 .tn-elem[data-elem-id="1762085579019"] .tn-atom {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Mobile "more reviews" card: lower the avatar strip so it no longer covers the copy. */
@media (max-width: 479px) {
    #rec1511349731 .tn-elem[data-elem-id="176216219371724510"] {
        top: 154px !important;
    }

    /* Founder card: keep the name and role below the portrait and preserve spacing below. */
    #rec1511244161 .tn-elem[data-elem-id="1762088820323"] {
        top: 866px !important;
        transform: none !important;
    }
    #rec1511244161 .tn-elem[data-elem-id="1762088820331"] {
        top: 901px !important;
    }
    #rec1511244161 .tn-elem[data-elem-id="1762088820303"] {
        top: 934px !important;
    }
    #rec1511244161 .tn-elem[data-elem-id="1762088820308"] {
        top: 1058px !important;
    }
    #rec1511244161 .tn-elem[data-elem-id="1762089203791"] {
        top: 1061px !important;
    }
    #rec1511244161 .tn-elem[data-elem-id="1762088820292"] {
        height: 458px !important;
    }
    #rec1511244161 .t396__artboard,
    #rec1511244161 .t396__filter,
    #rec1511244161 .t396__carrier {
        height: 1132px !important;
    }
}

/* Tablet review carousel: "Елена" had a mismatched left coordinate and escaped into another card. */
@media (min-width: 480px) and (max-width: 1199px) {
    #rec1511349731 .tn-elem[data-elem-id="176216235796448240"] {
        left: calc(50% - 480px + 1738px) !important;
    }
}
