/* Contact Page Styles */

/* Page Body */
.contact-page {
    background-color: var(--color-white);
}

/* Hero Section */
.contact-hero {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 224px clamp(24px, 5vw, 80px) 60px; /* 104px (header-height-desktop) + 120px = 224px */
    box-sizing: border-box;
}

.hero-content {
    width: 100%;
}

.map-section {
    width: 100%;
}

.map-container {
    display: flex;
    gap: clamp(40px, 6.9375vw, 111px);
    align-items: flex-start;
    width: 100%;
}

/* Text Container */
.text-container {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 48px);
    width: 621px;
    max-width: 100%;
    flex-shrink: 0;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(32px, 4vw, 64px);
    line-height: 1.4;
    color: #131923;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

.hero-description {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-medium);
    font-size: clamp(16px, 1.25vw, 20px);
    line-height: 1.4;
    letter-spacing: -0.4px;
    color: #40454C;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-description-line {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-medium);
    font-size: inherit;
    line-height: 1.4;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

/* Address line styles */
.address-line {
    white-space: nowrap;
}

.address-line .address-line-1,
.address-line .address-line-full {
    white-space: nowrap;
}

.mobile-br {
    display: none;
}

/* Map Image Container */
.map-image-container {
    flex: 1;
    min-width: 0;
    position: relative;
}

.map-wrapper {
    position: relative;
    width: 707px;
    max-width: 100%;
    height: 512px;
    border-radius: 24px;
    overflow: hidden;
    flex-shrink: 0;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Contact Form Section */
.contact-form-section {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px clamp(24px, 5vw, 80px);
    box-sizing: border-box;
}

.form-container {
    width: 100%;
}

.form-wrapper {
    background: var(--color-white);
    border-radius: 24px;
    box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.1);
    padding: clamp(32px, 4vw, 64px) clamp(24px, 3vw, 48px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 56px;
    align-items: flex-end;
}

/* Form Header */
.form-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.form-title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: clamp(24px, 2vw, 32px);
    line-height: normal;
    color: #131923;
    margin: 0;
}

.form-description {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.4;
    color: #40454C;
    margin: 0;
}

/* Contact Form */
.contact-form {
    width: 100%;
    display: flex;
    gap: clamp(60px, 9.125vw, 146px);
    align-items: flex-start;
    margin-bottom: 0;
}

/* Left Form Container */
.left-form-container {
    width: 538px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-shrink: 0;
}

/* Right Form Container */
.right-form-container {
    width: 660px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-shrink: 0;
}

/* Form Field */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.message-field {
    flex: 1;
}

/* Field Label Container */
.field-label-container {
    display: flex;
    gap: 4px;
    align-items: center;
    line-height: 18px;
}

.field-label {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 14px;
    color: #40454C;
    margin: 0;
}

.required-asterisk {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 14px;
    color: #ED090D;
}

/* Form Input */
.form-input {
    width: 100%;
    height: 60px;
    padding: 21px 24px;
    box-sizing: border-box;
    background: var(--color-white);
    border: 1px solid #C1C3C5;
    border-radius: 8px;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: 14px;
    line-height: 18px;
    color: #131923;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input::placeholder {
    color: #888B90;
}

.form-input:focus {
    border-color: #40454C;
}

/* Custom Select Wrapper */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

/* Form Select (Hidden) */
.form-select {
    display: none;
}

/* Custom Select Button */
.custom-select-button {
    width: 100%;
    height: 60px;
    padding: 21px 24px;
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1px solid #C1C3C5;
    border-radius: 8px;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: 14px;
    line-height: 18px;
    color: #888B90;
    outline: none;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    position: relative;
}

.custom-select-button:hover {
    border-color: #40454C;
}

.custom-select-button.active {
    border-color: #40454C;
    color: #40454C;
    box-shadow: 0 0 0 2px rgba(64, 69, 76, 0.08);
}

.custom-select-button.has-value {
    color: #40454C;
    border-color: #40454C;
}

.custom-select-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-arrow {
    width: 18px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.custom-select-button.active .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-arrow svg {
    width: 100%;
    height: 100%;
}

/* Custom Select Dropdown */
.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.1);
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
    max-height: none;
    overflow-y: visible;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #B8BDC4 #FFFFFF;
}

.custom-select-dropdown.active {
    display: flex;
}

/* Custom Scrollbar for Webkit browsers */
.custom-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: #FFFFFF;
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: #B8BDC4;
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

.custom-select-option {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: 14px;
    line-height: 18px;
    color: #40454C;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
    width: 100%;
    text-align: left;
    border-radius: 4px;
}

.custom-select-option:hover {
    color: #40454C;
    background-color: #F5F5F5;
}

.custom-select-option.selected {
    color: #40454C;
}

.custom-select-option[data-value=""] {
    color: #888B90;
}

.custom-select-option[data-value=""]:hover {
    color: #888B90;
    background-color: #F5F5F5;
}

/* Form Textarea */
.form-textarea {
    width: 100%;
    height: 402px;
    min-height: 402px;
    padding: 21px 24px;
    box-sizing: border-box;
    background: var(--color-white);
    border: 1px solid #C1C3C5;
    border-radius: 8px;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: 14px;
    line-height: 18px;
    color: #131923;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-textarea::placeholder {
    color: #888B90;
}

.form-textarea:focus {
    border-color: #40454C;
}

/* Agreement Container */
.agreement-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.agreement-divider {
    width: 100%;
    height: 1px;
    background: #E5E7EB;
}

.agreement-options {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.5vw, 8px);
    width: clamp(372px, 31vw, 496px);
    max-width: 100%;
}

.agreement-option {
    display: flex;
    gap: clamp(6px, 0.5vw, 8px);
    align-items: center;
}

.agreement-option:first-child {
    align-items: center;
}

.agreement-option:last-child {
    align-items: center;
}

/* Custom Checkbox */
.agreement-checkbox {
    width: clamp(18px, 1.5vw, 24px);
    height: clamp(18px, 1.5vw, 24px);
    flex-shrink: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    background: transparent;
    position: relative;
    margin: 0;
    padding: 0;
    transition: all 0.2s ease;
    margin-top: 0;
}

.agreement-checkbox::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: clamp(18px, 1.5vw, 24px);
    height: clamp(18px, 1.5vw, 24px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 22H15C20 22 22 20 22 15V9C22 4 20 2 15 2H9C4 2 2 4 2 9V15C2 20 4 22 9 22Z' stroke='%23044DB5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.2s ease;
}

.agreement-checkbox:checked::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7.75 20.75H13.75C18.75 20.75 20.75 18.75 20.75 13.75V7.75C20.75 2.75 18.75 0.75 13.75 0.75H7.75C2.75 0.75 0.75 2.75 0.75 7.75V13.75C0.75 18.75 2.75 20.75 7.75 20.75Z' fill='%23044DB5' stroke='%23044DB5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' transform='translate(1, 1)'/%3E%3Cpath d='M1 3.83L3.83 6.66L9.5 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' transform='translate(6.5, 8)'/%3E%3C/svg%3E");
}

.agreement-text-container {
    display: flex;
    flex-direction: row;
    gap: clamp(6px, 0.5vw, 8px);
    align-items: center;
    flex: 1;
    flex-wrap: nowrap;
    min-height: 24px;
}

.agreement-label {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: clamp(10px, 0.75vw, 12px);
    line-height: clamp(13.33px, 1.067vw, 16px);
    color: #40454C;
    cursor: pointer;
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agreement-detail {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: clamp(8.33px, 0.625vw, 10px);
    line-height: clamp(13.33px, 1.067vw, 16px);
    color: #5B5F66;
    text-decoration: underline;
    text-underline-position: from-font;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.agreement-detail:hover {
    color: #40454C;
}

/* Submit Button */
.submit-button {
    width: 224px;
    height: 60px;
    background: #A6A8AB;
    border: none;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0;
}

.submit-button:hover {
    background: var(--Green-G800, #131923);
}

.submit-text-korean {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 16px;
    line-height: 18px;
    color: var(--color-white);
}

.submit-text-english {
    font-family: 'Montserrat', sans-serif;
    font-weight: var(--font-weight-bold);
    font-size: 14px;
    line-height: 18px;
    color: var(--color-white);
}

/* Privacy Popup */
.privacy-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.privacy-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.privacy-popup-container {
    position: relative;
    width: 830px;
    max-height: 90vh;
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.privacy-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: opacity 0.2s ease;
    padding: 0;
}

.privacy-popup-close:hover {
    opacity: 0.7;
}

.privacy-popup-close svg {
    width: 24px;
    height: 24px;
}

.privacy-popup-content {
    padding: 48px 38px 48px 40px;
    overflow-y: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.privacy-popup-title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 24px;
    line-height: 30px;
    color: #070D17;
    margin: 0 0 20px 0;
}

.privacy-popup-text {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: 14px;
    line-height: 20px;
    color: #343941;
}

.privacy-popup-text p {
    margin: 0;
}

.privacy-popup-text ul,
.privacy-popup-text ol {
    margin: 0 0 4px 21px;
    padding: 0;
}

.privacy-popup-text li {
    margin: 0;
}

.privacy-popup-text a {
    color: #343941;
    text-decoration: underline;
}

.privacy-popup-text a:hover {
    color: #070D17;
}

/* Custom Scrollbar for Privacy Popup */
.privacy-popup-content {
    scrollbar-width: thin;
    scrollbar-color: #9CA3AF #FFFFFF;
}

.privacy-popup-content::-webkit-scrollbar {
    width: 8px;
}

.privacy-popup-content::-webkit-scrollbar-track {
    background: #FFFFFF;
    border-radius: 4px;
}

.privacy-popup-content::-webkit-scrollbar-thumb {
    background: #9CA3AF;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.privacy-popup-content::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Responsive Design - Desktop Intermediate (1025px~1599px) */
@media (min-width: 1025px) and (max-width: 1599px) {
    /* Russian Desktop Intermediate - hero-title-line font size reduction */
    html[lang="ru"] .contact-page .hero-title-line {
        /* 1024px: 35px, 1600px: 56px (64px의 87.5%) */
        font-size: clamp(35px, 3.5vw, 56px);
    }
}

/* Responsive Design - Desktop (1600px 기준) */
@media (min-width: 1600px) {
    .contact-hero {
        padding-left: 80px;
        padding-right: 80px;
    }
    
    .map-container {
        gap: 111px;
    }
    
    .text-container {
        width: 621px;
        gap: 48px;
    }
    
    .hero-title {
        font-size: 64px;
    }
    
    .hero-title-line {
        font-size: 64px;
        white-space: nowrap;
    }

    /* Russian Desktop - hero-title-line font size reduction (1600px+) */
    html[lang="ru"] .contact-page .hero-title-line {
        /* 1024px: 35px, 1600px: 56px (64px의 87.5%) */
        font-size: clamp(35px, 3.5vw, 56px);
    }
    
    .hero-description {
        font-size: clamp(16px, 1.25vw, 20px);
    }

    .hero-description-line {
        font-size: clamp(16px, 1.25vw, 20px);
        white-space: nowrap;
    }

    /* English version - desktop: address wraps with indent like tablet */
    html[lang="en"] .address-line .address-line-full {
        white-space: normal;
        display: inline;
    }

    .address-line .tablet-line-break::before {
        content: '\A                   ';
        white-space: pre;
    }

    .agreement-detail {
        white-space: nowrap;
    }
    
    .agreement-options {
        width: 496px;
        gap: 8px;
    }
    
    .agreement-option {
        gap: 8px;
    }
    
    .agreement-checkbox {
        width: 24px;
        height: 24px;
        margin-top: 0;
    }
    
    .agreement-checkbox::before {
        width: 24px;
        height: 24px;
    }
    
    .agreement-option {
        align-items: center;
    }
    
    .agreement-text-container {
        gap: 8px;
        align-items: center;
        min-height: 24px;
    }
    
    .agreement-label {
        font-size: 12px;
        line-height: 16px;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .agreement-detail {
        font-size: 10px;
        line-height: 16px;
        margin: 0;
    }
    
    .map-wrapper {
        width: 707px;
        height: 512px;
    }
    
    .contact-form-section {
        padding-left: 80px;
        padding-right: 80px;
    }
    
    .form-wrapper {
        padding: 64px 48px;
        gap: 56px;
    }
    
    .form-title {
        font-size: 32px;
    }
    
    .form-description {
        font-size: 16px;
    }
    
    .contact-form {
        gap: 146px;
    }
    
    .left-form-container {
        width: 538px;
    }
    
    .right-form-container {
        width: 660px;
    }
    
    .form-textarea {
        height: 402px;
    }
    
    .contact-page .footer-section {
        max-width: 1600px; /* Desktop only - allows mobile footer-content responsive to work */
    }
}

/* Responsive Design - Smaller Desktop (1025px ~ 1599px) */
@media (min-width: 1025px) and (max-width: 1599px) {
    .contact-hero {
        padding-left: clamp(40px, 5vw, 80px);
        padding-right: clamp(40px, 5vw, 80px);
    }
    
    .map-container {
        gap: clamp(60px, 6.9375vw, 111px);
    }
    
    .text-container {
        width: clamp(400px, 38.8125vw, 621px);
    }
    
    /* text-container width와 동일한 비율로 font-size 조정 */
    /* 근본 원인: clamp/max 최소값 때문에 text-container의 실제 width와 비율이 맞지 않음 */
    /* 해결: text-container의 clamp와 동일한 구조로 font-size도 설정 */
    /* text-container: clamp(400px, 38.8125vw, 621px) */
    /* font-size도 동일한 비율: clamp(20px * 400/621, 20px * 38.8125vw/621px, 20px) */
    /* 계산: 400/621 ≈ 0.644, 20px * 0.644 ≈ 12.88px (하지만 최소값 16px 유지) */
    /* 실제로는: clamp(16px, calc(20px * (38.8125vw / 621px)), 20px) */
    /* 하지만 1270px에서 계산값이 15.9px이므로 16px로 고정되어 비율이 맞지 않음 */
    /* 따라서 text-container가 clamp 최소값에 도달하기 전까지는 정확한 비율 유지 */
    .hero-description {
        font-size: clamp(12.88px, 1.2504vw, 20px);
    }

    .hero-description-line {
        font-size: clamp(12.88px, 1.2504vw, 20px);
        white-space: nowrap;
    }

    /* English version - desktop: address wraps with indent like tablet */
    html[lang="en"] .address-line .address-line-full {
        white-space: normal;
        display: inline;
    }

    .address-line .tablet-line-break::before {
        content: '\A                   ';
        white-space: pre;
    }

    .agreement-detail {
        white-space: nowrap;
    }
    
    .agreement-options {
        width: clamp(372px, 31vw, 496px);
        gap: clamp(6px, 0.5vw, 8px);
    }
    
    .agreement-option {
        gap: clamp(6px, 0.5vw, 8px);
    }
    
    .agreement-checkbox {
        width: clamp(18px, 1.5vw, 24px);
        height: clamp(18px, 1.5vw, 24px);
        margin-top: 0;
    }
    
    .agreement-checkbox::before {
        width: clamp(18px, 1.5vw, 24px);
        height: clamp(18px, 1.5vw, 24px);
    }
    
    .agreement-text-container {
        gap: clamp(6px, 0.5vw, 8px);
    }
    
    .agreement-label {
        font-size: clamp(10px, 0.75vw, 12px);
        line-height: clamp(13.33px, 1.067vw, 16px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .agreement-detail {
        font-size: clamp(8.33px, 0.625vw, 10px);
        line-height: clamp(13.33px, 1.067vw, 16px);
    }
    
    .map-wrapper {
        width: clamp(450px, 44.1875vw, 707px);
        height: clamp(326px, 32vw, 512px);
        aspect-ratio: 707 / 512;
    }
    
    .contact-form-section {
        padding-left: clamp(40px, 5vw, 80px);
        padding-right: clamp(40px, 5vw, 80px);
    }
    
    .contact-form {
        gap: clamp(60px, 9.125vw, 146px);
    }
    
    .left-form-container {
        width: clamp(350px, 33.625vw, 538px);
    }
    
    .right-form-container {
        width: clamp(430px, 41.25vw, 660px);
    }
    
    .form-textarea {
        height: clamp(300px, 25.125vw, 402px);
        min-height: 300px;
    }
    
    .contact-page .footer-section {
    }
}

/* Responsive Design - Tablet & Smaller (1024px 이하, 태블릿 제외) */
@media (max-width: 768px) {
    .map-container {
        flex-direction: column;
        gap: clamp(40px, 5vw, 60px);
    }
    
    .text-container {
        width: 100%;
    }
    
    .map-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 707 / 512;
    }
    
    .contact-form {
        flex-direction: column;
        gap: 40px;
    }
    
    .left-form-container,
    .right-form-container {
        width: 100%;
    }
    
    .form-textarea {
        height: clamp(200px, 25vw, 402px);
        min-height: 200px;
    }
    
    .agreement-options {
        width: 100%;
    }
    
}

/* Responsive Design - Tablet (800px 기준) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* 800px 기준 비율 계산: 화면 크기에 따라 비례 증가 */
    .contact-hero {
        max-width: clamp(769px, 100vw, 1024px);
        padding: calc(76px + clamp(60px, 15vw, 120px)) clamp(32px, 6vw, 48px) clamp(30px, 7.5vw, 60px);
    }
    
    .map-section {
        width: 100%;
    }
    
    .map-container {
        flex-direction: column;
        gap: clamp(40px, 10vw, 80px);
        align-items: center;
        width: 100%;
    }
    
    .text-container {
        width: 100%;
        max-width: none;
        min-width: auto;
        flex-shrink: 1;
        flex-grow: 0;
        flex-basis: auto;
        gap: clamp(24px, 6vw, 48px);
        align-items: flex-start;
        margin: 0;
        box-sizing: border-box;
    }
    
    .hero-title {
        font-size: clamp(40px, 8vw, 64px);
        width: 100%;
    }
    
    .hero-title-line {
        font-size: clamp(40px, 8vw, 64px);
        white-space: nowrap;
    }

    /* Russian Tablet - hero-title-line font size reduction (769px~1024px) */
    html[lang="ru"] .contact-page .hero-title-line {
        /* 1024px: 35px, 1600px: 56px (64px의 87.5%) */
        font-size: clamp(35px, 3.5vw, 56px);
    }
    
    .hero-description {
        font-size: clamp(16px, 2.5vw, 20px);
        width: 100%;
    }
    
    .hero-description-line {
        font-size: clamp(16px, 2.5vw, 20px);
        letter-spacing: -0.4px;
        white-space: nowrap;
    }

    /* English version - tablet: address wraps normally */
    html[lang="en"] .address-line .address-line-full {
        white-space: normal;
        display: inline;
    }

    html[lang="en"] .address-line .address-line-2 {
        white-space: normal;
        display: inline;
    }

    /* Tablet line break with indent */
    .address-line .tablet-line-break::before {
        content: '\A                   ';
        white-space: pre;
    }

    /* English Address Indentation - Tablet */
    html[lang="en"] .contact-page .hero-description-line.address-line .indent-line::before {
        content: '';
        display: inline-block;
        width: 4.1em;
    }

    .agreement-detail {
        white-space: nowrap;
    }
    
    .agreement-options {
        width: clamp(372px, 46.5vw, 635px);
        gap: clamp(6px, 0.75vw, 8px);
    }
    
    .agreement-option {
        gap: clamp(6px, 0.75vw, 8px);
        align-items: center;
    }
    
    .agreement-checkbox {
        width: clamp(18px, 2.25vw, 24px);
        height: clamp(18px, 2.25vw, 24px);
        margin-top: 0;
    }
    
    .agreement-checkbox::before {
        width: clamp(18px, 2.25vw, 24px);
        height: clamp(18px, 2.25vw, 24px);
    }
    
    .agreement-text-container {
        gap: clamp(6px, 0.75vw, 8px);
        align-items: center;
        min-height: 24px;
        flex: none;
        width: auto;
        max-width: 100%;
    }
    
    .agreement-label {
        font-size: clamp(10px, 1.25vw, 12px);
        line-height: clamp(13.33px, 1.667vw, 16px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 0 1 auto;
        min-width: 0;
        max-width: 100%;
    }
    
    .agreement-detail {
        font-size: clamp(8.33px, 1.042vw, 10px);
        line-height: clamp(13.33px, 1.667vw, 16px);
        white-space: nowrap;
        flex-shrink: 0;
        flex-grow: 0;
    }
    
    .map-wrapper {
        width: clamp(707px, 88.375vw, 905px);
        max-width: 100%;
        height: clamp(512px, 64vw, 655px);
        max-height: 655px;
        aspect-ratio: 707 / 512;
    }
    
    .contact-form-section {
        max-width: clamp(769px, 100vw, 1024px);
        padding: clamp(30px, 7.5vw, 60px) clamp(32px, 6vw, 48px);
    }
    
    .form-wrapper {
        padding: clamp(32px, 8vw, 64px) clamp(16px, 3vw, 24px);
        width: 100%;
        align-items: center;
        gap: clamp(40px, 7vw, 56px);
    }
    
    .form-header {
        width: 100%;
        max-width: clamp(660px, 82.5vw, 846px);
    }
    
    .form-title {
        font-size: clamp(24px, 4vw, 32px);
    }
    
    .form-description {
        font-size: clamp(14px, 2vw, 16px);
    }
    
    .contact-form {
        flex-direction: column;
        gap: 24px;
        width: 100%;
        align-items: center;
    }
    
    .left-form-container,
    .right-form-container {
        width: clamp(656px, 82vw, 840px);
        max-width: 100%;
    }
    
    .form-textarea {
        height: clamp(402px, 50.25vw, 515px);
        max-height: 515px;
        min-height: 200px;
    }
    
    .agreement-options {
        width: clamp(496px, 62vw, 635px);
        max-width: 100%;
    }
    
    .submit-button {
        width: clamp(224px, 28vw, 287px);
        max-width: 287px;
        margin: 0;
        align-self: center;
    }
    
    .contact-page .footer-section {
        max-width: clamp(769px, 100vw, 1024px);
    }
}

/* Footer Section - Contact Page Specific */
/* Note: max-width is set in desktop media query to allow mobile responsive to work properly */
.contact-page .footer-section {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.contact-page .footer-section .container {
    max-width: 100%;
}

/* Responsive Design - Mobile (375px 기준) */
@media (max-width: 768px) {
    /* Body overflow fix */
    body.contact-page {
        overflow-x: hidden;
    }
    
    /* Hero Section */
    .contact-hero {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: calc(64px + clamp(51.2px, 17.07vw, 64px)) 0 17.07vw;
        box-sizing: border-box;
    }
    
    .hero-content {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .map-section {
        width: 100%;
        min-height: clamp(422.4px, 141.07vw, 529px);
        padding: 0 clamp(19.2px, 6.4vw, 24px);
        margin: 0;
        box-sizing: border-box;
    }
    
    .map-container {
        flex-direction: column;
        gap: clamp(51.2px, 17.07vw, 64px);
        align-items: flex-start;
        width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        min-width: 0;
        overflow: hidden;
    }
    
    .text-container {
        width: 100% !important;
        max-width: clamp(263.2px, 87.73vw, 329px) !important;
        min-width: 0 !important;
        gap: clamp(32px, 10.67vw, 40px);
        align-items: flex-start;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        flex: 0 1 auto !important;
        flex-shrink: 1 !important;
        flex-grow: 0 !important;
        overflow: hidden;
    }
    
    .hero-title {
        font-size: clamp(28.8px, 9.6vw, 36px) !important;
        line-height: 1.4;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        box-sizing: border-box;
    }
    
    .hero-title-line {
        /* 텍스트가 잘리지 않도록 약간 줄임: 329px 기준 95% 크기 */
        font-size: clamp(27.36px, 9.12vw, 34.2px) !important;
        line-height: 1.4;
        white-space: nowrap !important;
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        overflow: visible;
        text-overflow: clip;
    }
    
    .hero-description {
        /* 텍스트가 잘리지 않도록 약간 줄임: 329px 기준 95% 크기 */
        font-size: clamp(12.3px, 4.1vw, 15.5px) !important;
        line-height: 1.4;
        letter-spacing: clamp(-0.246px, -0.082vw, -0.31px) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        box-sizing: border-box;
        overflow: visible;
    }

    .hero-description-line {
        /* 텍스트가 잘리지 않도록 약간 줄임: 329px 기준 95% 크기 */
        font-size: clamp(12.3px, 4.1vw, 15.5px) !important;
        line-height: 1.4;
        letter-spacing: clamp(-0.246px, -0.082vw, -0.31px) !important;
        white-space: nowrap !important;
        display: block;
        margin: 0;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        overflow: visible;
        text-overflow: clip;
    }
    
    /* Mobile - Address line break */
    .address-line {
        white-space: normal !important;
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        overflow: visible;
    }
    
    .address-line .address-line-1 {
        /* 텍스트가 잘리지 않도록 약간 줄임: 329px 기준 95% 크기 */
        font-size: clamp(12.3px, 4.1vw, 15.5px) !important;
        letter-spacing: clamp(-0.246px, -0.082vw, -0.31px) !important;
        white-space: normal !important;
        display: inline !important;
        box-sizing: border-box;
        overflow: visible;
        text-overflow: clip;
    }

    .address-line .address-line-2 {
        /* 텍스트가 잘리지 않도록 약간 줄임: 329px 기준 95% 크기 */
        font-size: clamp(12.3px, 4.1vw, 15.5px) !important;
        letter-spacing: clamp(-0.246px, -0.082vw, -0.31px) !important;
        white-space: normal !important;
        display: inline !important;
        box-sizing: border-box;
        overflow: visible;
        text-overflow: clip;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .mobile-br {
        display: block !important;
        width: 100%;
        height: 0;
        margin: 0;
        padding: 0;
    }
    
    .desktop-tablet-only {
        display: none !important;
    }
    
    .map-image-container {
        width: 100%;
        max-width: clamp(281.6px, 87.73vw, 100%);
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .map-wrapper {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 772 / 559;
        border-radius: clamp(19.2px, 6.4vw, 24px);
        overflow: hidden;
        position: relative;
        margin: 0;
        box-sizing: border-box;
    }
    
    /* Form Section */
    .contact-form-section {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: clamp(48px, 16vw, 60px) 0;
        box-sizing: border-box;
    }
    
    .form-container {
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .form-wrapper {
        padding: clamp(51.2px, 17.07vw, 64px) clamp(19.2px, 6.4vw, 24px);
        border-radius: clamp(19.2px, 6.4vw, 24px);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        align-items: center;
        overflow: hidden;
        gap: clamp(44.8px, 14.93vw, 56px);
    }
    
    .form-header {
        width: 100%;
        gap: clamp(12.8px, 4.27vw, 16px);
    }
    
    .form-title {
        font-size: clamp(25.6px, 8.53vw, 32px);
    }
    
    .form-description {
        /* 375px 기준 더 빠르게 줄어들도록 vw 비율 낮춤 */
        font-size: clamp(10px, 4vw, 16px);
    }
    
    .contact-form {
        flex-direction: column;
        gap: clamp(19.2px, 6.4vw, 24px);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .left-form-container,
    .right-form-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-field {
        gap: clamp(9.6px, 3.2vw, 12px);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .field-label-container {
        gap: clamp(3.2px, 1.07vw, 4px);
    }
    
    .field-label {
        font-size: clamp(11.2px, 3.73vw, 14px);
        line-height: clamp(14.4px, 4.8vw, 18px);
    }
    
    .required-asterisk {
        font-size: clamp(11.2px, 3.73vw, 14px);
        line-height: clamp(14.4px, 4.8vw, 18px);
    }
    
    .form-input {
        height: clamp(48px, 16vw, 60px);
        padding: clamp(16.8px, 5.6vw, 21px) clamp(19.2px, 6.4vw, 24px);
        font-size: clamp(11.2px, 3.73vw, 14px);
        line-height: clamp(14.4px, 4.8vw, 18px);
        border-radius: clamp(6.4px, 2.13vw, 8px);
    }
    
    .form-textarea {
        height: clamp(321.6px, 107.2vw, 402px);
        min-height: clamp(160px, 53.33vw, 200px);
        padding: clamp(16.8px, 5.6vw, 21px) clamp(19.2px, 6.4vw, 24px);
        font-size: clamp(11.2px, 3.73vw, 14px);
        line-height: clamp(14.4px, 4.8vw, 18px);
        border-radius: clamp(6.4px, 2.13vw, 8px);
    }
    
    .agreement-container {
        width: 100%;
        max-width: 100%;
        gap: clamp(19.2px, 6.4vw, 24px);
        box-sizing: border-box;
    }
    
    .agreement-divider {
        width: 100%;
        height: 1px;
        box-sizing: border-box;
    }
    
    .agreement-options {
        width: clamp(261.6px, 87.2vw, 327px);
        max-width: 100%;
        gap: clamp(6.4px, 2.13vw, 8px);
        box-sizing: border-box;
    }
    
    .agreement-option {
        gap: clamp(6.4px, 2.13vw, 8px);
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible;
    }
    
    .agreement-option:first-child {
        align-items: flex-start;
    }
    
    .agreement-option:last-child {
        align-items: center;
    }
    
    .agreement-checkbox {
        width: clamp(19.2px, 6.4vw, 24px);
        height: clamp(19.2px, 6.4vw, 24px);
        margin-top: 0;
        flex-shrink: 0;
    }
    
    .agreement-checkbox::before {
        width: clamp(19.2px, 6.4vw, 24px);
        height: clamp(19.2px, 6.4vw, 24px);
    }
    
    .agreement-checkbox:checked::before {
        width: clamp(19.2px, 6.4vw, 24px);
        height: clamp(19.2px, 6.4vw, 24px);
    }
    
    .agreement-text-container {
        flex-direction: column;
        gap: clamp(3.2px, 1.07vw, 4px);
        align-items: flex-start;
        min-height: clamp(19.2px, 6.4vw, 24px);
        flex: 1;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible;
    }
    
    .agreement-label {
        font-size: clamp(9.6px, 3.2vw, 12px);
        line-height: clamp(12.8px, 4.27vw, 16px);
        margin: 0;
        width: clamp(236px, 78.67vw, 295px);
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    .agreement-label br.mobile-only {
        display: block;
    }
    
    .agreement-detail {
        font-size: clamp(8px, 2.67vw, 10px);
        line-height: clamp(12.8px, 4.27vw, 16px);
        margin: 0;
        flex-shrink: 0;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
    }
    
    .submit-button {
        width: clamp(179.2px, 59.73vw, 224px);
        max-width: 100%;
        height: clamp(48px, 16vw, 60px);
        border-radius: clamp(24px, 8vw, 30px);
        margin: 0 auto;
        align-self: center;
    }
    
    /* Custom Select Mobile */
    .custom-select-button {
        height: clamp(48px, 16vw, 60px);
        padding: clamp(16.8px, 5.6vw, 21px) clamp(19.2px, 6.4vw, 24px);
        font-size: clamp(11.2px, 3.73vw, 14px);
        line-height: clamp(14.4px, 4.8vw, 18px);
        border-radius: clamp(6.4px, 2.13vw, 8px);
    }
    
    .custom-select-arrow {
        width: clamp(14.4px, 4.8vw, 18px);
        height: clamp(8px, 2.67vw, 10px);
    }
    
    .custom-select-dropdown {
        top: calc(100% + clamp(3.2px, 1.07vw, 4px)); /* 단순한 calc(100% + 값) 패턴이므로 문제 없음 */
        border-radius: clamp(6.4px, 2.13vw, 8px);
        box-shadow: 0px 1px clamp(8px, 2.67vw, 10px) rgba(0, 0, 0, 0.1);
        padding: clamp(19.2px, 6.4vw, 24px);
        gap: 0;
        max-height: none;
        overflow-y: visible;
    }
    
    .custom-select-option {
        font-size: clamp(11.2px, 3.73vw, 14px);
        line-height: clamp(14.4px, 4.8vw, 18px);
    }
    
    /* Privacy Popup - Mobile */
    .privacy-popup-overlay {
        align-items: flex-end;
    }
    
    .privacy-popup-container {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 24px 24px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    .privacy-popup-close {
        top: clamp(12.8px, 4.27vw, 16px);
        right: clamp(12.8px, 4.27vw, 16px);
        width: clamp(19.2px, 6.4vw, 24px);
        height: clamp(19.2px, 6.4vw, 24px);
    }
    
    .privacy-popup-close svg {
        width: clamp(19.2px, 6.4vw, 24px);
        height: clamp(19.2px, 6.4vw, 24px);
    }
    
    .privacy-popup-content {
        padding: clamp(38.4px, 12.8vw, 48px) clamp(19.2px, 6.4vw, 24px);
        max-height: clamp(598.4px, 199.47vw, 748px);
    }
    
    .privacy-popup-title {
        font-size: clamp(16px, 5.33vw, 20px);
        line-height: clamp(24px, 8vw, 30px);
        margin: 0 0 clamp(16px, 5.33vw, 20px) 0;
    }
    
    .privacy-popup-text {
        font-size: clamp(10.4px, 3.47vw, 13px);
        line-height: clamp(14.56px, 4.85vw, 18.2px);
    }
    
    .privacy-popup-text p {
        margin: 0;
    }
    
    .privacy-popup-text ul,
    .privacy-popup-text ol {
        margin: 0 0 clamp(3.2px, 1.07vw, 4px) clamp(16.8px, 5.6vw, 21px);
        padding: 0;
    }
    
    .privacy-popup-text li {
        margin: 0;
    }
    
    .privacy-popup-container {
        border-radius: clamp(19.2px, 6.4vw, 24px) clamp(19.2px, 6.4vw, 24px) 0 0;
    }
    
    /* Footer - Remove max-width to allow footer-content responsive to work properly (same as other pages) */
    
    .contact-page .footer-section .footer-info {
        /* 375px 기준: 11px = 2.933vw, 480px까지 스케일링 후 고정 */
        font-size: clamp(9.39px, 2.933vw, 14.08px);
        /* 375px 기준: 16px = 4.267vw, 480px까지 스케일링 후 고정 */
        line-height: clamp(13.65px, 4.267vw, 20.48px);
        /* 320px: 9.39px/13.65px, 375px: 11px/16px, 480px: 14.08px/20.48px */
    }
}

/* Address Indentation */
html[lang="en"] .contact-page .hero-description-line.address-line .indent-line::before {
    content: '';
    display: inline-block;
    width: 4.1em;
}

/* Japanese Address Indentation */
html[lang="ja"] .contact-page .hero-description-line.address-line .indent-line::before {
    content: '';
    display: inline-block;
    width: 2.3em;
}

/* Chinese Address Indentation - Tablet & Desktop */
html[lang="zh"] .contact-page .hero-description-line.address-line .address-indent {
    padding-left: 2em; /* "地址: " 만큼 들여쓰기 */
}

/* Russian Address Indentation - Tablet & Desktop */
html[lang="ru"] .contact-page .hero-description-line.address-line .address-indent {
    padding-left: 3.5em; /* "Адрес: " 만큼 들여쓰기 */
}


