.contact-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.contact-popup-overlay.is-open {
    display: flex;
}

.contact-popup {
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px 36px;
    width: 360px;
    max-width: calc(100vw - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.contact-popup__icon {
    font-size: 48px;
    line-height: 1;
}

.contact-popup__message {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    letter-spacing: -0.4px;
    line-height: 1.6;
    white-space: pre-line;
}

.contact-popup__close {
    margin-top: 8px;
    padding: 12px 40px;
    background: #1A1A1A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: -0.3px;
}

.contact-popup__close:hover {
    background: #333;
}

.contact-main {
    width: 100%;
    max-width: 1920px;
    min-height: 1080px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    box-sizing: border-box;
}

.contact-main__inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group,
.submit-btn,
.type-specific-ui,
.form-group-toggle {
    width: 693px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.type-specific-ui .form-group {
    width: 100%;
    margin-bottom: 55px;
}

.form-group label {
    display: block;
    font-size: 17.5px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 12.74px;
    letter-spacing: -0.5px;
}

.contact_input {
    font-size: 17.6px;
    color: #4A4A4A;
}

.contact_select {
    margin-bottom: 8px;
    font-size: 17.6px;
    font-weight: 400;
    color: #4A4A4A;
}

.contact-form > .form-group {
    margin-bottom: 47px;
}

.contact_select.is-placeholder {
    color: #4A4A4A !important;
    font-weight: 400 !important;
}

.contact_select option {
    font-weight: 400;
    color: #4A4A4A;
}

.contact_select option[disabled] {
    font-weight: 400;
    color: #AEAEAE;
}

.custom_select.is-placeholder {
    color: #4A4A4A !important;
    font-weight: 400 !important;
}

.custom_select {
    width: 100%;
    height: 58.4px;
    font-size: 17.6px;
    font-weight: 400 !important;
    color: #4A4A4A;
    padding: 0 45px 0 20px;
    border: none;
    outline: none;
    background-color: transparent;
    cursor: pointer;
}

.custom_select option {
    font-weight: 400;
    color: #1A1A1A;
}

.date-row {
    display: flex;
    gap: 30.7px;
}

.date-row select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    height: 58.67px;
    border: none;
    background-color: transparent;
    background-repeat: no-repeat, no-repeat;

    font-size: 17.5px;
    color: #4A4A4A;
    padding: 0 45px 0 20px;
    cursor: pointer;
}

.year-select {
    background-image: url("/images/common/selected_Arrow.png"), url("/images/common/year_Frame.png");
    background-position: right 24px center, center;
    background-size: 18px, 100% 100%;
    width: 153.27px !important;
}

.month-select,
.day-select {
    background-image: url("/images/common/selected_Arrow.png"), url("/images/common/month_day_Frame.png");
    background-position: right 24px center, center;
    background-size: 14px, 100% 100%;
    width: 112.93px !important;
}

.year-select.is-placeholder,
.month-select.is-placeholder,
.day-select.is-placeholder{
    color: #A3A3A3;
}

.form-group-toggle {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: space-between;

    width: 693px;
    max-width: 100%;
    gap: 187px;
}

.toggle-btn {
    flex: 1;
    height: 71px;
    border-radius: 40px;
    font-size: 26.4px;
    font-weight: 600;

    background-color: #ffffff;
    border: 1px solid #9bd0ff;
    color: #4A4A4A;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
}

.toggle-btn.active {
    background: linear-gradient(135deg, rgba(141, 202, 232, 0.8), rgba(181, 198, 255, 0.8));
    color: #FFFFFF;
}

.contact_textArea {
    border: none;
    height: 200px;
    padding: 24px;
    font-size: 17.6px;
    color: #4A4A4A;
    resize: none;
    font-weight: 400;
}

.field-error {
    display: block;
    margin-top: 6px;
    font-family: 'A2Z', sans-serif;
    font-size: 12px;
    color: #E03030;
}

.submit-wrapper {
    width: 100%;
    margin-bottom: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-btn {
    position: relative;
    background-image: url("../images/common/submit_button.png");
    background-size: 100% 100%;
}

.submit-btn :hover {
    filter: brightness(0.8);
}

@media screen and (max-width: 739px) {

    .form-group,
    .submit-btn,
    .type-specific-ui {
        width: 90%;
        flex-shrink: 0;
    }

    .form-group input,
    .form-group select {
        height: 52px;
        min-height: 52px;
        font-size: 15px;
    }

    .form-group textarea {
        height: 200px;
    }

    .form-group-toggle {
        width: 90%;
        gap: 25%;
    }

    .toggle-btn {
        height: clamp(48px, 10vw, 55px);
        font-size: clamp(14px, 4vw, 18px);
        border-radius: 25px;
    }
}

@media screen and (max-width: 480px) {

    .form-group,
    .submit-btn,
    .type-specific-ui {
        width: 92%;
    }

    .form-group input,
    .form-group select {
        height: 48px;
        min-height: 48px;
    }

    .date-row {
        gap: 8px;
    }

    .date-row>.custom-select-wrapper:nth-child(1) {
        width: 38%;
    }

    .date-row>.custom-select-wrapper:nth-child(2) {
        width: 28%;
    }

    .date-row>.custom-select-wrapper:nth-child(3) {
        width: 28%;
    }

    .form-group-toggle {
        width: 92%;
    }

    .toggle-btn {
        height: 44px;
    }
}
