* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: 'GmarketSansMedium', sans-serif;
    color: #1a1a1a
}

.wrap {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem 1rem
}

.title-sm {
    font-size: 15px;
    color: #888;
    margin-bottom: 4px
}

.title-main {
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 2rem;
    text-align: left;
}

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

.field-solo {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    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(76, 175, 80, 0.12)
}

.field-group {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 12px !important;
    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(76, 175, 80, 0.12)
}

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

.field-inner {
    flex: 1;
    position: relative;
    padding: 0 16px
}

.field-inner input,
.field-inner select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #1a1a1a;
    padding: 24px 0 8px;
    font-family: inherit
}

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

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

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

.btn-side {
    white-space: nowrap;
    font-size: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 7px 11px;
    background: #7DA7D1;
    color: #fff;
    cursor: pointer;
    margin-right: 12px;
    flex-shrink: 0
}

.btn-side:hover {
    background: #074565
}

.eye-btn {
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
    margin-right: 16px;
    font-size: 18px;
    display: flex;
    align-items: center;
    line-height: 1
}

.pw-hint {
    font-size: 11px;
    color: #aaa;
    padding: 0 16px 10px;
    text-align: left;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    font-size: 12px
}



.agree-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    text-align: left;
}

.agree-all {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e0e0e0;
    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
}

.agree-item:hover {
    background: #074565
}

.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
}

.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem
}

.btn-prev {
    flex: 0 0 110px;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    color: #1a1a1a;
    font-family: inherit
}

.btn-prev:hover {
    background: #e0e0e0
}

.btn-submit {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #7DA7D1;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit
}

.btn-submit:hover {
    background: #074565
}

/* =============================================
   커스텀 도메인 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;
}

/* 아래 행: @ + 도메인 */
.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;
}