/* =============================================
   join.css — 가입페이지 전용 스타일
   포인트 컬러: #7DA7D1 / #074565
   ============================================= */

/* ===== 래퍼 ===== */
.wrap-join-new {
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* ===== 타이틀 ===== */
.title-main {
    font-size: 30px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.title-main span {
    color: #7DA7D1;
}

.title-sub {
    font-size: 15px;
    color: #888;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ===== 섹션 라벨 ===== */
.section-label {
    font-size: 12px;
    font-weight: 600;
    color: #7DA7D1;
    letter-spacing: 0.05em;
    margin: 1.4rem 0 0.5rem 2px;
}

/* ===== 단독 카드 ===== */
.field-solo {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field-solo.email-error {
    background: #fff;
    border: none;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    transition: border-color 0.15s, box-shadow 0.15s;
    color: red;
}

.field-solo:focus-within {
    border-color: #7DA7D1;
    box-shadow: 0 0 0 2px rgba(125, 167, 209, 0.15);
}

/* ===== 그룹 카드 ===== */
.field-group {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field-group:focus-within {
    border-color: #7DA7D1;
    box-shadow: 0 0 0 2px rgba(125, 167, 209, 0.15);
}

.field-row {
    display: flex;
    align-items: center;
}

/* ===== field-inner (플로팅 라벨) ===== */
.field-inner {
    flex: 1;
    position: relative;
    min-width: 0;
}

.field-inner input,
.field-inner select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #1a1a1a;
    padding: 24px 16px 8px;
    font-family: 'GmarketSansMedium', sans-serif;
    height: auto;
    line-height: normal;
    border-radius: 0;
    box-shadow: none;
    -webkit-appearance: none;
}

.field-inner select {
    cursor: pointer;
    appearance: none;
}

.field-inner label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #999;
    pointer-events: none;
    transition: all 0.15s ease;
    font-family: 'GmarketSansMedium', sans-serif;
}

.field-inner input:focus~label,
.field-inner input:not(:placeholder-shown)~label,
.field-inner select:focus~label,
.field-inner.has-val label {
    top: 28%;
    font-size: 11px;
    color: #7DA7D1;
}

/* ===== 인증번호 발송/확인 버튼 ===== */
.btn-side {
    white-space: nowrap;
    font-size: 12px;
    border: 1px solid #7DA7D1;
    border-radius: 8px;
    padding: 7px 11px;
    background: #7DA7D1;
    color: #fff;
    cursor: pointer;
    margin-right: 12px;
    flex-shrink: 0;
    font-family: 'GmarketSansMedium', sans-serif;
}

.btn-side:hover {
    background: #074565;
    border-color: #074565;
}

/* ===== eye 버튼 ===== */
.eye {
    position: static !important;
    margin-right: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    top: auto !important;
}

.eye img {
    width: 20px;
    opacity: 0.5;
    position: static !important;
}

/* ===== 타이머 ===== */
#timer {
    padding: 0 16px 10px;
    font-size: 12px;
    color: #1a1a1a;
    font-weight: bold;
    margin-top: 0 !important;
}

/* ===== 힌트 / 에러 ===== */
.pw-hint {
    font-size: 11px;
    color: #aaa;
    padding: 0 16px 10px;
}

.field-error {
    padding: 0 16px 10px;
}

.field-error p {
    font-size: 12px;
    color: #1a1a1a;
}

.field-error a {
    color: #7DA7D1;
    text-decoration: none;
}

.pwd-error {
    width: 100%;
    padding: 0 16px 10px;
    background: none;
    border: none;
}

.pwd-error p {
    font-size: 12px;
    color: #E53935;
}

.email-error {
    padding: 0 4px 8px;
}

.email-error .fq {
    font-size: 12px;
    color: #E53935;
}

.email-error .fq a {
    color: #7DA7D1;
    text-decoration: none;
}

/* ===== 이메일 입력 — 2줄 구조 ===== */

/* 위 행 구분선 */
.email-divider {
    width: 1px;
    background: #f0f0f0;
    margin: 10px 0;
    flex-shrink: 0;
}

/* 중복확인 버튼 — btn-side와 동일 계열, 텍스트 스타일 */
.btn-check {
    border: none;
    background: none;
    font-size: 12px;
    color: #7DA7D1;
    font-weight: 600;
    cursor: pointer;
    padding: 0 16px;
    white-space: nowrap;
    font-family: 'GmarketSansMedium', sans-serif;
    flex-shrink: 0;
    transition: color 0.15s;
    height: 100%;
    display: flex;
    align-items: center;
}

.btn-check:hover {
    color: #074565;
}

/* 아래 행: @ + 도메인 */
.domain-row {
    display: flex;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    min-height: 48px;
}

.domain-row .at-text {
    font-size: 14px;
    color: #bbb;
    padding-left: 16px;
    flex-shrink: 0;
}

.domain-row select {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #999;
    padding: 14px 8px 14px 6px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font-family: 'GmarketSansMedium', sans-serif;
    box-shadow: none;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

.domain-row .select-arrow {
    font-size: 11px;
    color: #bbb;
    padding-right: 14px;
    pointer-events: none;
    flex-shrink: 0;
}

/* 직접입력 input (기본 숨김) */
.domain-direct-input {
    flex: 1;
    border: none !important;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #1a1a1a;
    padding: 14px 16px 14px 6px;
    font-family: 'GmarketSansMedium', sans-serif;
    box-shadow: none !important;
    -webkit-appearance: none;
    display: none;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

.domain-direct-input.show {
    display: block;
}

/* ===== SNS 버튼 ===== */
.sns-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.sns-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 12px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-size: 17px;
    line-height: 12px;
    color: #1a1a1a;
    cursor: pointer;
    font-family: 'GmarketSansMedium', sans-serif;
    transition: background 0.15s;
}

.sns-btn:hover {
    background: #f5f5f5;
}

.sns-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.sns-btn.naver {
    border-color: #03C75A;
    color: #ffffff;
    background-color: #03C75A;
}

.sns-btn.google {
    border-color: #3e82f1;
    color: #ffffff;
    background-color: #3e82f1;
}

/* ===== 동의 카드 ===== */
.agree-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.agree-all {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    background: #fafafa;
}

.agree-all span {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.agree-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    cursor: pointer;
    flex-wrap: wrap;
}

.agree-item:hover {
    background: #f9f9f9;
}

.agree-item>span {
    font-size: 13px;
    color: #555;
    flex: 1;
}

.agree-item a {
    font-size: 12px;
    color: #7DA7D1;
    text-decoration: none;
    flex-shrink: 0;
}

.check-c {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.check-c.on {
    background: #7DA7D1;
    border-color: #7DA7D1;
}

.check-c svg {
    display: none;
}

.check-c.on svg {
    display: block;
}

.info_txt {
    width: 100%;
    font-size: 11px;
    color: #aaa;
    line-height: 1.6;
    padding: 4px 0 4px 34px;
}

/* ===== 가입 버튼 ===== */
.btn-submit-wrap {
    margin-top: 1.2rem;
}

.join-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #7DA7D1;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'GmarketSansMedium', sans-serif;
    transition: background 0.15s;
}

.join-btn:hover {
    background: #074565;
}

/* ===== 하단 로그인 링크 ===== */
.go-login {
    text-align: center;
    margin-top: 12px;
}

.go-login a {
    font-size: 13px;
    color: #7DA7D1;
    text-decoration: none;
}

/* ===== 반응형 ===== */
@media (max-width: 414px) {
    .wrap-join-new {
        padding: 1rem 1rem 3rem;
    }

    .title-main {
        font-size: 20px;
    }

    .field-solo,
    .field-group {
        border-radius: 10px;
        margin-bottom: 8px;
    }

    .field-inner input,
    .field-inner select {
        font-size: 13px;
        padding: 22px 12px 7px;
    }

    .field-inner label {
        font-size: 13px;
        left: 12px;
    }

    .field-inner input:focus~label,
    .field-inner input:not(:placeholder-shown)~label {
        font-size: 10px;
    }

    .btn-side {
        font-size: 11px;
        padding: 6px 9px;
        margin-right: 8px;
    }

    .btn-check {
        font-size: 11px;
        padding: 0 12px;
    }

    .domain-row .at-text {
        padding-left: 12px;
        font-size: 13px;
    }

    .domain-row select,
    .domain-direct-input {
        font-size: 13px;
        padding: 12px 8px 12px 6px;
    }

    .sns-row {
        flex-direction: column;
    }

    .agree-item>span {
        font-size: 12px;
    }

    .agree-item a {
        font-size: 11px;
    }

    .info_txt {
        font-size: 10px;
        padding-left: 28px;
    }

    .join-btn {
        font-size: 14px;
        padding: 14px;
        border-radius: 10px;
    }
}


/* =============================================
   커스텀 도메인 select
   ============================================= */

.field-group {
    overflow: visible;
    /* 드롭다운이 카드 밖으로 나올 수 있게 */
}

.custom-select {
    flex: 1;
    position: relative;
    min-width: 0;
}

/* 트리거 (선택된 값 표시) */
.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 14px 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    font-family: 'GmarketSansMedium', sans-serif;
    user-select: none;
}

.custom-select-trigger .cs-arrow {
    font-size: 10px;
    color: #bbb;
    flex-shrink: 0;
    margin-left: 6px;
    transition: transform 0.2s;
}

.custom-select.open .cs-arrow {
    transform: rotate(180deg);
}

/* 드롭다운 패널 */
.custom-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 200;
    overflow: hidden;
}

.custom-select.open .custom-select-dropdown {
    display: block;
}

/* 옵션 */
.custom-select-option {
    padding: 12px 16px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    font-family: 'GmarketSansMedium', sans-serif;
    transition: background 0.1s;
}

.custom-select-option:hover {
    background: #f0f7fc;
    color: #7DA7D1;
}

.custom-select-option.selected {
    color: #7DA7D1;
    font-weight: 600;
    background: #f5f9fd;
}

/* 직접입력 input */
.domain-direct-input {
    flex: 1;
    border: none !important;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #1a1a1a;
    padding: 14px 16px 14px 8px;
    font-family: 'GmarketSansMedium', sans-serif;
    box-shadow: none !important;
    -webkit-appearance: none;
    display: none;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

.domain-direct-input.show {
    display: block;
}