/* ============================================
   칸코드 - 문의하기 페이지 스타일
   ============================================ */

.contact-page {
    position: relative;
    background-color: var(--white);
}

.contact-top-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 1440px);
    height: 600px;
    background-image: url('images/contact-hero-bg.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   Hero 섹션
   ============================================ */
.contact-hero {
    width: 100%;
    height: 406px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    z-index: 1;
}

.contact-hero-text {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.88px;
    color: var(--gray-900);
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ============================================
   문의 폼 섹션
   ============================================ */
.contact-form-section {
    background-color: transparent;
    padding: 72px 0 120px;
    position: relative;
    z-index: 1;
}

.contact-form-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
}

/* 개인정보 동의 */
.contact-privacy {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
}

.contact-checkbox {
    width: 24px;
    height: 24px;
    border: 1.5px solid var(--gray-400);
    border-radius: 1px;
    background-color: var(--white);
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-checkbox:hover {
    background-color: #F3F0FF;
    border: 1.5px solid #6F5DFF;
}

.contact-checkbox:checked {
    background-color: #6F5DFF;
    border: 1.5px solid #6F5DFF;
    background-image: url('images/check-icon.svg');
    background-size: 24px 24px;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-checkbox:checked:hover {
    background-color: #5F4AF6;
    border: 1.5px solid #6F5DFF;
}

.contact-privacy-label {
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.32px;
    color: var(--gray-900);
    cursor: pointer;
}

/* 폼 그리드 */
.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

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

.contact-form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.32px;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.contact-form-label .required {
    color: var(--primary-500);
}

/* 입력 필드 공통 */
.contact-input,
.contact-select,
.contact-textarea {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 1.5px solid var(--gray-400);
    border-radius: 1px;
    background-color: var(--white);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.32px;
    color: var(--gray-900);
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    outline: none;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: #878A91;
    font-weight: 400;
}

.contact-input:hover,
.contact-select:hover,
.contact-textarea:hover {
    border: 1.5px solid #978EFF;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
    border: 1.5px solid #6F5DFF;
}

/* 셀렉트 드롭다운 */
.contact-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23272729' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* 텍스트에리어 */
.contact-textarea {
    height: 200px;
    padding: 14px;
    resize: none;
    vertical-align: top;
}

/* 제출 버튼 */
.contact-submit-btn {
    width: 100%;
    height: 52px;
    background-color: var(--primary-500);
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.36px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    font-family: inherit;
    margin-top: 8px;
}

.contact-submit-btn:hover {
    background-color: #3d25e6;
    transform: translateY(-1px);
}

.contact-submit-btn:active {
    transform: translateY(0);
}
