:root {
    --primary: #ff6747;
    --primary-dark: #ec5638;
    --primary-soft: #fff0e9;
    --cream: #fff9f5;
    --white: #ffffff;
    --text: #302b28;
    --sub: #7f7671;
    --placeholder: #b6aeaa;
    --line: #e9ded8;
    --success: #61a875;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-width: 320px;
    min-height: 100%;
}

body {
    font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    color: var(--text);
    background: #f8f4f1;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.register-page {
    min-height: 100vh;
    padding: 24px;
}

.register-wrap {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    width: 100%;
    max-width: 1260px;
    min-height: calc(100vh - 48px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #eee5df;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(85, 57, 45, 0.08);
}

.register-side {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 34px 30px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff9f5 0%, #fff0e5 100%);
}

.brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 21px;
    line-height: 1.1;
    font-weight: 900;
}

.brand-text small {
    margin-top: 3px;
    color: #89807b;
    font-size: 9px;
    letter-spacing: 0.4px;
}

.side-message {
    position: relative;
    z-index: 2;
    margin-top: 105px;
}

.side-message > span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.side-message h2 {
    margin: 15px 0 0;
    font-size: 27px;
    line-height: 1.5;
    letter-spacing: -1px;
}

.side-message h2 strong {
    color: var(--primary);
}

.side-message p {
    margin: 26px 0 0;
    color: #716963;
    font-size: 14px;
    line-height: 1.8;
}

.side-features {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 15px;
    margin-top: auto;
}

.side-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #716963;
    font-size: 13px;
    font-weight: 700;
}

.side-feature span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--primary);
    background: #fff;
}

.side-feature p {
    margin: 0;
}

.side-visual {
    position: absolute;
    right: -80px;
    bottom: 220px;
    width: 250px;
    height: 250px;
}

.visual-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 205, 177, 0.32);
}

.visual-heart {
    position: absolute;
    color: rgba(255, 103, 71, 0.38);
}

.heart-one {
    top: 48px;
    left: 25px;
    font-size: 43px;
    transform: rotate(-12deg);
}

.heart-two {
    top: 120px;
    left: 85px;
    font-size: 25px;
}

.register-main {
    min-width: 0;
    background: #fff;
}

.register-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 70px;
    padding: 0 42px;
    border-bottom: 1px solid #f1ebe7;
}

.mobile-brand {
    display: none;
}

.login-guide {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8a817c;
    font-size: 13px;
}

.login-guide a {
    color: var(--primary);
    font-weight: 800;
}

.register-content {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 36px 34px 45px;
}

.register-heading {
    margin-bottom: 20px;
}

.register-eyebrow {
    color: var(--primary);
    font-size: 15px;
    font-weight: 900;
}

.register-heading h1 {
    margin: 6px 0 9px;
    font-size: 39px;
    line-height: 1.2;
    letter-spacing: -2px;
}

.register-heading p {
    margin: 0;
    color: var(--sub);
    font-size: 14px;
    line-height: 1.7;
}

.approval-notice {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #ffd9cc;
    border-radius: 15px;
    background: #fff2ec;
}

.approval-icon {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-weight: 900;
}

.approval-notice strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.approval-notice p {
    margin: 0;
    color: #80756f;
    font-size: 12px;
    line-height: 1.6;
}

.form-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 7px 25px rgba(79, 54, 44, 0.035);
}

.form-card + .form-card {
    margin-top: 17px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 21px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.6px;
}

.section-number {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.section-subtitle {
    color: #938984;
    font-size: 11px;
}

.required-guide {
    margin: 0;
    color: #918781;
    font-size: 11px;
}

.required,
.required-guide span {
    color: var(--primary);
}

.optional {
    color: #99908b;
    font-size: 10px;
    font-weight: 500;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 16px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: none;
    color: var(--text);
    background: #fff;
    font-size: 13px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-input::placeholder {
    color: var(--placeholder);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 103, 71, 0.09);
}

.form-input[readonly] {
    background: #faf9f8;
}

.form-help,
.form-message {
    min-height: 15px;
    margin: 5px 0 -3px;
    color: #9b928d;
    font-size: 10px;
}

.form-message.success {
    color: var(--success);
}

.form-message.error {
    color: #df553e;
}

.password-wrap {
    position: relative;
}

.password-wrap .form-input {
    padding-right: 55px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    padding: 5px;
    border: 0;
    color: #918781;
    background: transparent;
    font-size: 11px;
    transform: translateY(-50%);
}

.postcode-row {
    display: grid;
    grid-template-columns: minmax(0, 180px) 110px;
    gap: 9px;
}

.address-field {
    margin-top: 9px;
}

.primary-small-btn {
    height: 48px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.primary-small-btn:hover {
    background: var(--primary-dark);
}

.license-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
    gap: 15px;
}

.license-upload-box {
    min-width: 0;
}

.license-select {
    width: 100%;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 20px;
    border: 1.5px dashed #e3c7ba;
    border-radius: 14px;
    color: #766c67;
    background: #fffdfa;
}

.license-select:hover {
    border-color: var(--primary);
    background: #fff9f6;
}

.upload-icon {
    color: var(--primary);
    font-size: 30px;
    font-weight: 700;
}

.license-select strong {
    font-size: 13px;
}

.license-select small {
    color: #a09691;
    font-size: 10px;
}

.selected-file {
    display: none;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    padding: 14px 15px;
    border: 1px solid #d8eadc;
    border-radius: 12px;
    background: #f8fcf9;
}

.selected-file.active {
    display: flex;
}

.selected-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.file-text {
    min-width: 0;
}

.file-text strong,
.file-text small {
    display: block;
}

.file-text strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-text small {
    margin-top: 3px;
    color: #8c827d;
    font-size: 10px;
}

.file-icon {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    background: var(--success);
}

.selected-file > button {
    flex: 0 0 auto;
    border: 0;
    color: #df6249;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
}

.upload-guide {
    padding: 15px;
    border-radius: 14px;
    background: #fff6f1;
}

.upload-guide strong {
    font-size: 12px;
}

.upload-guide ul {
    margin: 10px 0 0;
    padding-left: 17px;
    color: #7f756f;
    font-size: 10px;
    line-height: 1.8;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px 15px;
}

.specialty-check {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    cursor: pointer;
    font-size: 12px;
}

.specialty-check input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--primary);
}

.specialty-etc-wrap {
    display: none;
    margin-top: 17px;
}

.specialty-etc-wrap.active {
    display: block;
}

.agreement-card {
    background: #fffefd;
}

.agree-all {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px;
    border: 1px solid #ffe1d6;
    border-radius: 13px;
    background: #fff2ec;
    cursor: pointer;
}

.agree-all input,
.agreement-row input {
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: var(--primary);
}

.agree-all span {
    display: flex;
    flex-direction: column;
}

.agree-all strong {
    font-size: 14px;
}

.agree-all small {
    margin-top: 3px;
    color: #8f8580;
    font-size: 10px;
}

.agreement-list {
    margin-top: 12px;
}

.agreement-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 10px 3px;
    border-bottom: 1px solid #f0e9e5;
}

.agreement-row:last-child {
    border-bottom: 0;
}

.agreement-row label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #655c57;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
}

.agreement-row strong {
    color: var(--primary);
}

.agreement-row em {
    color: #8b817b;
    font-style: normal;
    font-weight: 700;
}

.agreement-view {
    flex: 0 0 auto;
    padding: 3px 1px;
    border: 0;
    border-bottom: 1px solid #9a918c;
    color: #817771;
    background: transparent;
    font-size: 11px;
}

.final-approval-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 17px;
    padding: 15px 17px;
    border-radius: 13px;
    background: #fff5ef;
}

.final-approval-notice > span {
    color: var(--primary);
    font-size: 18px;
}

.final-approval-notice strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
}

.final-approval-notice p {
    margin: 0;
    color: #807670;
    font-size: 10px;
    line-height: 1.65;
}

.register-btn {
    width: 100%;
    height: 58px;
    margin-top: 13px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #ff7352, #ff5d3e);
    box-shadow: 0 12px 25px rgba(255, 97, 63, 0.18);
    font-size: 16px;
    font-weight: 900;
}

.register-btn:hover {
    background: linear-gradient(135deg, #ff6747, #ef5437);
}

.policy-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(31, 25, 22, 0.55);
}

.policy-modal.active {
    display: flex;
}

.policy-modal-box {
    width: min(100%, 560px);
    max-height: 80vh;
    padding: 22px;
    overflow-y: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.16);
}

.policy-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.policy-modal-head h3 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #716862;
    background: #f7f2ef;
    font-size: 22px;
}

.policy-modal-body {
    color: #625a56;
    font-size: 13px;
    line-height: 1.75;
}

.policy-modal-body h4 {
    margin: 18px 0 4px;
    color: #312b28;
}

.policy-modal-body p {
    margin: 5px 0;
}

.policy-warning {
    margin-top: 18px !important;
    padding: 12px;
    border-radius: 10px;
    background: #fff2ec;
}

.modal-confirm {
    width: 100%;
    height: 48px;
    margin-top: 20px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--primary);
    font-weight: 800;
}

@media (max-width: 1050px) {
    .register-page {
        padding: 0;
    }

    .register-wrap {
        display: block;
        max-width: none;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .register-side {
        display: none;
    }

    .register-top {
        justify-content: space-between;
        height: 66px;
        padding: 0 20px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 18px;
    }

    .mobile-brand span {
        color: var(--primary);
    }

    .mobile-brand strong {
        font-weight: 900;
    }

    .login-guide span {
        display: none;
    }

    .register-content {
        max-width: 820px;
        padding: 32px 20px 42px;
    }
}

@media (max-width: 720px) {
    body,
    .register-main {
        background: var(--cream);
    }

    .register-content {
        padding: 25px 14px 30px;
    }

    .register-heading h1 {
        font-size: 31px;
    }

    .register-heading p {
        font-size: 13px;
    }

    .approval-notice {
        padding: 14px;
    }

    .form-card {
        padding: 18px 14px;
        border-radius: 17px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-full {
        grid-column: auto;
    }

    .license-layout {
        grid-template-columns: 1fr;
    }

    .specialty-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .required-guide {
        font-size: 9px;
    }

    .section-title h2 {
        font-size: 18px;
    }
}

@media (max-width: 420px) {
    .register-top {
        padding: 0 14px;
    }

    .register-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .register-heading h1 {
        font-size: 28px;
    }

    .form-card {
        padding: 16px 12px;
    }

    .postcode-row {
        grid-template-columns: 1fr;
    }

    .primary-small-btn {
        width: 100%;
    }

    .required-guide {
        display: none;
    }

    .approval-notice p {
        font-size: 11px;
    }

    .agreement-row {
        align-items: flex-start;
    }

    .agreement-row label {
        font-size: 11px;
    }

    .policy-modal {
        padding: 10px;
    }

    .policy-modal-box {
        padding: 18px 15px;
        border-radius: 16px;
    }
}
