/* ================================================
   Block: Contact Form
   Figma nodes: 56352:23920 (desktop), 56352:23861 (mobile)
   ================================================ */

/* Section */
.contact-form {
    position: relative;
    overflow: hidden;
    background: var(--primary-beige);
    padding: 100px 0;
}

.contact-form .container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* Decorative blob (warm orange glow behind emoji/avatars) */
.contact-form__blob {
    position: absolute;
    width: 328px;
    height: 330px;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(253, 162, 47, 0.38) 0%,
        rgba(253, 162, 47, 0.10) 55%,
        transparent 80%
    );
    filter: blur(80px);
}

/* Inner column */
.contact-form__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 72px;
}

/* Header group (emoji + text) */
.contact-form__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

/* Emoji / avatar image */
.contact-form__emoji {
    display: flex;
    justify-content: center;
}

.contact-form__emoji img {
    max-height: 130px;
    width: auto;
    display: block;
}

/* Text block */
.contact-form__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

/* Heading */
.contact-form__heading {
    font-family: 'GT Flexa', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 53px;
    color: #2D4059;
    text-transform: capitalize;
    text-wrap: balance;
    margin: 0;
}

/* Subtitle */
.contact-form__subtitle {
    font-family: Figtree, sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: #505869;
    max-width: 626px;
    text-wrap: balance;
    margin: 0;
}

/* Form wrapper */
.contact-form__form-wrap {
    position: relative;
    width: 530px;
}

.contact-form__form {
    width: 100%;
}

/* White backdrop during form re-init after submit */
.contact-form__overlay {
    position: absolute;
    inset: 0;
    background: #fff;
    border-radius: 16px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.contact-form__overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

/* ================================================
   HubSpot Form — Card
   ================================================ */

.contact-form__form .hs-form-private {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    box-shadow:
        0 0 3.6px 0 rgba(228, 65, 61, 0.09),
        0 0 2.2px 0 rgba(228, 65, 61, 0.05),
        0 0 4.7px 0 rgba(228, 65, 61, 0.01),
        0 0 4.7px 0 rgba(228, 65, 61, 0),
        0 0 4.7px 0 rgba(228, 65, 61, 0.00),
        0 0 4.7px 0 rgba(228, 65, 61, 0.01);
}

/* ================================================
   Fieldsets reset
   ================================================ */

.contact-form__form fieldset {
    border: none;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
    width: 100% !important;
    max-width: none !important;
}

.contact-form__form fieldset.form-columns-2 {
    display: flex;
    gap: 19px;
}

.contact-form__form fieldset.form-columns-2 .hs-form-field {
    flex: 1;
    min-width: 0;
    width: auto !important;
    float: none !important;
    padding: 0 !important;
}

/* ================================================
   Field containers
   ================================================ */

.contact-form__form .hs-form-field {
    position: relative;
    width: 100%;
    padding: 0 !important;
    float: none !important;
}

.contact-form__form .hs-form-field .input {
    width: 100%;
    margin: 0 !important;
}

.contact-form__form .hs-form-field > label {
    display: none !important;
}

.contact-form__form .input-wrap {
    max-width: none;
}

.contact-form__form .hs-input {
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.contact-form__form .hs-input:focus {
    box-shadow: none !important;
    outline: none !important;
}

.contact-form__form .input-wrap .input-field,
.contact-form__form .input-wrap.input-phone .input-field {
    width: 100% !important;
    box-sizing: border-box !important;
}

.contact-form__form .input-wrap.input-error .input-field,
.contact-form__form .input-wrap.input-error .input-field:focus {
    border-color: var(--error-color) !important;
}

.contact-form__form .input-wrap.input-phone.input-error,
.contact-form__form .input-wrap.input-phone.input-error:focus-within {
    border-color: var(--error-color) !important;
}

.contact-form__form textarea.input-field {
    resize: none !important;
    height: 108px !important;
}

.contact-form__form .hs-fieldtype-file .hs-input[type="file"] {
    display: none !important;
}

/* ================================================
   Error messages
   ================================================ */

.contact-form__form .hs_error_rollup {
    display: none !important;
}

.contact-form__form .hs-error-msgs {
    list-style: none;
    margin: 4px 0 0 !important;
    padding: 0 !important;
}

.contact-form__form .hs-error-msgs li {
    margin: 0;
    padding: 0;
}

.contact-form__form .hs-error-msg {
    display: block;
    font-family: Figtree, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: #E4413D;
    padding: 0 !important;
    background: none !important;
}

/* ================================================
   File Upload — custom button
   ================================================ */

.contact-form__form .hs-file-upload-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-form__form .hs-file-btn {
    flex-shrink: 0;
    background: #F1F5F9;
    border: 1px solid #F1F5F9;
    border-radius: 6px;
    height: 33px;
    padding: 0 11.5px;
    font-family: Figtree, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.contact-form__form .hs-file-btn:hover {
    background: #E2E8F0;
    border-color: #E2E8F0;
}

.contact-form__form .hs-file-name {
    font-family: Figtree, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #848C97;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

/* ================================================
   Submit button
   ================================================ */

.contact-form__form .hs-submit {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.contact-form__form .hs-submit .actions {
    margin: 0 !important;
    padding: 0 !important;
}

.contact-form__form .hs-submit input[type="submit"],
.contact-form__form .hs-submit .hs-button {
    display: block !important;
    width: 100% !important;
    height: 58px;
    padding: 0 24px !important;
    background: #3978F2 !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: Figtree, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 24px !important;
    letter-spacing: 0.032px;
    color: #fff !important;
    text-transform: capitalize;
    cursor: pointer;
    transition: background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
    margin: 0 !important;
    outline: none;
}

.contact-form__form .hs-submit input[type="submit"]:hover,
.contact-form__form .hs-submit .hs-button:hover {
    background: #2865de !important;
}

.contact-form__form .hs-submit input[type="submit"]:active,
.contact-form__form .hs-submit .hs-button:active {
    background: #1d56cb !important;
}

/* ================================================
   Thank-you message
   ================================================ */

.contact-form__form .hs-form__thankyou-message {
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    font-family: Figtree, sans-serif;
    font-size: 16px;
    color: #2D4059;
    text-align: center;
}

/* ================================================
   Toast notification
   ================================================ */

.contact-form__toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    min-width: 240px;
    max-width: 360px;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    box-shadow: 0 4px 8px 0 rgba(1, 8, 4, 0.04);
    background: rgba(240, 253, 244, 0.95);
    backdrop-filter: blur(0.75px);
    -webkit-backdrop-filter: blur(0.75px);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.contact-form__toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.contact-form__toast-inner {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 10.5px;
}

.contact-form__toast-check {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5px;
		align-self: flex-start;
}

.contact-form__toast-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.contact-form__toast-title {
    font-family: Figtree, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #16a34a;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-form__toast-detail {
    font-family: Figtree, sans-serif;
    font-weight: 500;
    font-size: 12.25px;
    line-height: 15px;
    color: #334155;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-form__toast-close {
    flex-shrink: 0;
    width: 24.5px;
    height: 24.5px;
    border: none;
    background: none;
    border-radius: 12.25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #334155;
    transition: background 0.15s ease;
}

.contact-form__toast-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.contact-form__toast-check--error { display: none; }

.contact-form__toast.is-error {
    background: rgba(254, 242, 242, 0.95);
    border-color: #fecaca;
}
.contact-form__toast.is-error .contact-form__toast-title {
    color: #dc2626;
}
.contact-form__toast.is-error .contact-form__toast-check--success { display: none; }
.contact-form__toast.is-error .contact-form__toast-check--error { display: flex; }

/* ================================================
   Responsive
   ================================================ */

@media (max-width: 900px) {
    .contact-form {
        padding: 48px 0;
    }

    .contact-form .container {
        padding: 0 24px;
    }

    .contact-form__blob {
			background: var(--Warning-Medium, #FDA22F);
			opacity: 0.4;
			filter: blur(83.5px);
			width: 176px;
			height: 176px;
			top: 125px;
    }

    .contact-form__inner {
        gap: 48px;
    }

    .contact-form__header {
        gap: 32px;
    }

    .contact-form__emoji img {
        max-height: 80px;
    }

    .contact-form__heading {
        font-size: 32px;
        line-height: 36px;
    }

    .contact-form__subtitle {
        font-size: 17px;
        line-height: 25px;
        font-weight: 500;
        text-wrap: unset;
    }

    .contact-form__form-wrap {
        width: 100%;
        max-width: 530px;
        margin: 0 auto;
    }

    .contact-form__toast {
        top: 160px;
        bottom: auto;
        left: 50%;
        right: 0;
        margin: 0 auto;
        transform: translate(-8px);
        width: 327px;
        min-width: 327px;
        max-width: 327px;
        height: 61px;
    }

    .contact-form__toast.is-visible {
        transform: translate(-50%, 0);
    }

    .contact-form__toast-inner {
        align-items: center;
        height: 100%;
    }

    .contact-form__toast-check {
        margin-top: 0;
    }

    .contact-form__form .hs-form-private {
        padding: 24px 16px;
        gap: 16px;
    }

    .contact-form__form .hs-file-upload-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
				height: 33px;
    }

    .contact-form__form .hs-file-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        height: 33px;
        padding: 8px 11.5px;
    }

    .contact-form__form .hs-file-name {
        text-align: center;
        max-width: 100%;
        margin-top: 4px;
    }

    .contact-form__form fieldset.form-columns-2 {
        flex-direction: column;
        gap: 16px;
    }
}
