.heroBtn {
    border: 1.5px solid #5c8aff;
    transition: all .2s;
    line-height: 1;
}

.heroBtn:hover {
    border-color: #5c8aff;
    color: #fff;
    background-color: #5c8aff;
    box-shadow: revert;
}

.heroBtn:hover span {
    color: #fff;
}

.heroBtn--fill {
    background-color: #5c8aff;
}

.heroBtn--fill:hover {
    opacity: 0.7;
    border-color: #5c8aff;
    background-color: #5c8aff;
    box-shadow: revert;
}

.heroBtn--fill span {
    color: #fff;
}

.headCard {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 60% top;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}


@media (max-width: 576px) {
    .headCardOverlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to left,
                #fff 0%,
                rgba(255, 255, 255, 0.5) 0%,
                rgba(255, 255, 255, 0) 100%);


        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        z-index: -1;
    }

    .headCard {
        background-position: 70% 0px;
        border-bottom: 1px solid #dfdfdf;
    }

    .headCard__text {
        color: #444;
    }
}

.headCard-layout {
    padding-top: 8px;
}

/* FormBuilder inside Video Call Lity modal.
   Do NOT require .mgn-form — Kerem's bound forms often use another css_class. */
.lm-videocall-form form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.lm-videocall-form form > * {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
}

.lm-videocall-form form > .lm-vc-col--half {
    grid-column: span 1 !important;
}

.lm-videocall-form form > .lm-vc-col--full {
    grid-column: 1 / -1 !important;
}

/* Fallback by field name (FormBuilder names may use hyphen or underscore) */
.lm-videocall-form form > *:has([name="full_name"]),
.lm-videocall-form form > *:has([name="full-name"]),
.lm-videocall-form form > *:has(#full_name),
.lm-videocall-form form > *:has(#full-name) {
    grid-column: 1 !important;
}

.lm-videocall-form form > *:has([name="phone"]),
.lm-videocall-form form > *:has([name="phone_number"]),
.lm-videocall-form form > *:has(input[type="tel"]) {
    grid-column: 2 !important;
}

.lm-videocall-form form > .mgn-submit-wrapper,
.lm-videocall-form form > *:has(> .mgn-submit-button),
.lm-videocall-form form > *:has(button[type="submit"]),
.lm-videocall-form form > *:has(input[type="submit"]) {
    order: 999;
    grid-column: 1 / -1 !important;
}

.lm-videocall-form .lm-vc-col,
.lm-videocall-form .lm-vc-col--half,
.lm-videocall-form .lm-vc-col--full {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.lm-videocall-form .form-label,
.lm-videocall-form label:not(.form-check-label) {
    display: block;
    margin: 0;
    color: #282828;
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
}

.lm-videocall-form .form-control,
.lm-videocall-form .form-select,
.lm-videocall-form input[type="text"],
.lm-videocall-form input[type="email"],
.lm-videocall-form input[type="tel"] {
    width: 100%;
    min-height: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    padding: 0 16px;
    outline: 0;
    background: #f2f2f2;
    color: #1a2535;
    font-size: 15px;
}

.lm-videocall-form .form-control:focus,
.lm-videocall-form .form-select:focus,
.lm-videocall-form input:focus {
    box-shadow: 0 0 0 4px rgba(74, 125, 255, 0.12);
}

.lm-videocall-form .form-check {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 0;
    margin: 0;
    cursor: pointer;
}

.lm-videocall-form .form-check-input[type="checkbox"],
.lm-videocall-form .form-check input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #dfe6f2;
    border-radius: 6px;
    background: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    cursor: pointer;
    position: relative;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.lm-videocall-form .form-check-input[type="checkbox"]:checked,
.lm-videocall-form .form-check input[type="checkbox"]:checked {
    border-color: #4a7dff;
    background: linear-gradient(135deg, #4a7dff 0%, #5b89ff 100%);
    box-shadow: 0 8px 18px rgba(74, 125, 255, 0.16);
}

.lm-videocall-form .form-check-input[type="checkbox"]:checked::after,
.lm-videocall-form .form-check input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.25L6.5 11.25L12.5 5.25' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.lm-videocall-form .form-check-input[type="checkbox"]:focus-visible,
.lm-videocall-form .form-check input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 4px rgba(74, 125, 255, 0.12);
    outline: 0;
}

.lm-videocall-form .form-check-label {
    color: #7b8698;
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    cursor: pointer;
    user-select: none;
}

.lm-videocall-form .form-check-label a,
.lm-videocall-form .privacy-policy-link {
    color: #4a7dff;
    font-weight: 600;
    text-decoration: none;
}

.lm-videocall-form .form-check-label a:hover,
.lm-videocall-form .privacy-policy-link:hover {
    color: #3468f5;
}

.lm-videocall-form .mgn-submit-button,
.lm-videocall-form button.mgn-submit-button,
.lm-videocall-form .mgn-submit-button.btn,
.lm-videocall-form .mgn-submit-button.btn-primary,
.lm-videocall-form button[type="submit"],
.lm-videocall-form .btn-primary {
    width: 100%;
    min-height: 48px;
    border: 0 !important;
    border-radius: 12px;
    cursor: pointer;
    opacity: 1 !important;
    background-color: #4a7dff !important;
    background-image: linear-gradient(135deg, #4a7dff 0%, #2d4b99 100%) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 16px;
    text-transform: none;
    box-shadow: none !important;
}

.lm-videocall-form .mgn-submit-button:hover,
.lm-videocall-form button[type="submit"]:hover,
.lm-videocall-form .btn-primary:hover {
    opacity: 1 !important;
    background-color: #3468f5 !important;
    background-image: linear-gradient(135deg, #3468f5 0%, #243f82 100%) !important;
    color: #fff !important;
}

.lm-videocall-form .iti {
    width: 100%;
}

.lm-videocall-form .iti input.form-control,
.lm-videocall-form .iti input[type="tel"] {
    padding-left: 90px;
}

@media (max-width: 640px) {
    .lm-videocall-form form {
        grid-template-columns: minmax(0, 1fr);
    }

    .lm-videocall-form form > .lm-vc-col--half,
    .lm-videocall-form form > *:has([name="full_name"]),
    .lm-videocall-form form > *:has([name="full-name"]),
    .lm-videocall-form form > *:has([name="phone"]),
    .lm-videocall-form form > *:has(input[type="tel"]) {
        grid-column: 1 / -1 !important;
    }
}
