.cost-form-section {
    padding: 60px 0;
    background-color: #e8e7e6;
    overflow-x: hidden;
    --cost-form-fluid: calc(100vw - 1920px);
    --cost-form-padding-y: clamp(20px, calc(68px + 0.0359375 * var(--cost-form-fluid)), 137px);
    --cost-form-padding-x: clamp(20px, calc(96px + 0.05 * var(--cost-form-fluid)), 192px);
    --cost-form-title-size: clamp(28px, calc(71px + 0.0369791667 * var(--cost-form-fluid)), 142px);
    --cost-form-subtitle-size: clamp(16px, calc(24px + 0.0130208333 * var(--cost-form-fluid)), 49px);
    --cost-form-input-size: clamp(14px, calc(24px + 0.0130208333 * var(--cost-form-fluid)), 49px);
    --cost-form-policy-size: clamp(10px, calc(16px + 0.0088541667 * var(--cost-form-fluid)), 33px);
    --cost-form-button-size: clamp(16px, calc(26px + 0.0135416667 * var(--cost-form-fluid)), 52px);
    --cost-form-button-height: clamp(50px, calc(75px + 0.0395833333 * var(--cost-form-fluid)), 151px);
    --cost-form-form-width: clamp(280px, calc(434px + 0.2265625 * var(--cost-form-fluid)), 869px);
    --cost-form-subtitle-left: clamp(0px, calc(600px + 0.3114583333 * var(--cost-form-fluid)), 1198px);
    --cost-form-subtitle-top: clamp(0px, calc(230px + 0.1203125 * var(--cost-form-fluid)), 461px);
    --cost-form-gap: clamp(20px, calc(40px + 0.0208333333 * var(--cost-form-fluid)), 80px);
    --cost-form-form-gap: clamp(12px, calc(20px + 0.0104166667 * var(--cost-form-fluid)), 40px);
    --cost-form-radius: clamp(10px, calc(15px + 0.0078125 * var(--cost-form-fluid)), 30px);
    --cost-form-input-height: clamp(50px, calc(100px + 0.0520833333 * var(--cost-form-fluid)), 200px);
    --cost-form-input-padding-y: clamp(8px, calc(14px + 0.0072916667 * var(--cost-form-fluid)), 28px);
    --cost-form-input-padding-x: clamp(10px, calc(15px + 0.0078125 * var(--cost-form-fluid)), 30px);
    --cost-form-button-padding-x: clamp(16px, calc(20px + 0.0104166667 * var(--cost-form-fluid)), 40px);
}

.cost-form-container {
    width: 90vw;
    border-radius: var(--cost-form-radius);
    background: #B9EA00;
    padding: var(--cost-form-padding-y) var(--cost-form-padding-x);
    margin: 0 auto;
    display: flex;
    gap: var(--cost-form-gap);
    box-sizing: border-box;
    position: relative;
}

.cost-form__text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cost-form__title {
    color: #3E3C38;
    font-family: "Bona Nova SC", serif;
    font-size: var(--cost-form-title-size);
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -2.08px;
    text-transform: uppercase;
    margin: 0;
}

.cost-form__subtitle {
    color: #3E3C38;
    font-family: Manrope, sans-serif;
    font-size: var(--cost-form-subtitle-size);
    font-style: normal;
    font-weight: 500;
    opacity: 0.6;
    line-height: 115%;
    margin: 0;
    text-align: right;
    position: absolute;
    left: var(--cost-form-subtitle-left);
    top: var(--cost-form-subtitle-top);
    width: 40%;
    max-width: calc(100% - var(--cost-form-subtitle-left) - var(--cost-form-form-width) - var(--cost-form-gap));
}

.cost-form__form-content {
    width: var(--cost-form-form-width);
    flex-shrink: 0;
    display: flex;
    flex: 0 0 var(--cost-form-form-width);
    max-width: 100%;
}

.cost-form__form {
    display: flex;
    flex-direction: column;
    gap: var(--cost-form-form-gap);
    width: 100%;
}

.cost-form__input {
    box-sizing: border-box;
    height: var(--cost-form-input-height);
    padding: var(--cost-form-input-padding-y) var(--cost-form-input-padding-x);
    align-self: stretch;
    border-radius: 8px;
    background: #FFF;
    border: none;
    font-family: Inter, sans-serif;
    font-size: var(--cost-form-input-size);
    font-style: normal;
    font-weight: 400;
    line-height: 115%;
    color: #3E3C38;
}

.cost-form__input::placeholder {
    color: #3E3C38;
    font-family: Inter, sans-serif;
    font-size: inherit;
    font-style: normal;
    font-weight: 400;
    line-height: 115%;
    opacity: 0.35;
}

.cost-form__checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--cost-form-policy-size);
}

.cost-form__checkbox {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 0.1em solid #3E3C38;
    border-radius: 0.15em;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
    cursor: pointer;
}

.cost-form__checkbox::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #3E3C38;
    transform-origin: bottom left;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.cost-form__checkbox:checked::before {
    transform: scale(1);
}

.cost-form__checkbox-label {
    font-size: inherit;
    color: #3E3C38;
    opacity: 0.7;
    line-height: 1.2;
    font-family: Manrope, sans-serif;
}

.cost-form__checkbox-label a {
    color: #3E3C38 !important;
    text-decoration: underline !important;
}

.cost-form__button {
    display: flex;
    height: var(--cost-form-button-height);
    padding: 0 var(--cost-form-button-padding-x);
    justify-content: center;
    align-items: center;
    align-self: stretch;
    border-radius: 8px;
    background: #3E3C38;
    backdrop-filter: blur(13px);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.cost-form__button:hover {
    background-color: #555;
}

.cost-form__button span {
    flex: 1 0 0;
    color: #FFF;
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: var(--cost-form-button-size);
    font-style: normal;
    font-weight: 500;
    line-height: 115%;
}

/* Responsive adjustments */
@media (max-width: 1280px) {
    .cost-form-container {
        flex-direction: column;
        height: auto;
    }
    .cost-form__text-content,
    .cost-form__form-content {
        width: 100%;
    }
    .cost-form__form-content {
        flex: 0 0 auto;
    }
    .cost-form__subtitle {
        position: static;
        text-align: left;
        width: 100%;
        max-width: 100%;
        margin-top: var(--cost-form-form-gap);
    }
}

@media (max-width: 900px) {
    .cost-form-container {
        width: 95vw;
    }
}
