.register-card {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.register-row {
    display: grid;
    grid-template-columns: minmax(130px, 160px) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
}

.register-row:nth-child(odd) {
    background: #eef6ff;
}

.register-row:nth-child(even) {
    background: #ffffff;
    border: 1px solid #d5e4f7;
}

.form-label {
    color: #314338;
    font-weight: 700;
}

.form-field {
    display: flex;
    /*flex-direction: column;*/
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.form-field input[type="text"],
.form-field input[type="password"],
.form-field select{
    /*width: 100%;*/
    min-height: 42px;
    border: 1px solid #d8e4db;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: #2f3f35;

}
.form-field select {
    background-image: url('/images/drop-down.svg');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 15px;
    width: fit-content;
    /*min-width: 200px;*/
    padding-right : 35px;
}

.form-field input[type="text"]:focus,
.form-field input[type="password"]:focus,
.form-field select:focus {
    outline: 0;
    border-color: var(--theme) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme) 16%, white);
}

.phone-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 300px;
}

.phone-group input {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.phone-group input[readonly] {
    background: #f5f8f6;
    color: #4a5c52;
    font-weight: 700;
}

.phone-sep {
    color: #93a39a;
    font-weight: 600;
}

.file-wrap-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    min-height: 36px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: .95rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    flex-wrap: wrap;
}
.file-wrap-label:has(input[disabled]) {
    cursor: not-allowed;
}

.file-wrap-label input {
    display: none;
}

.file-button {
    white-space: nowrap;
}

.file-name {
    font-size: .9rem;
    color: #5a6a61;
    max-width: 105px;
    min-width: 105px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.memo-input {
    flex: 1;
    min-height: 42px;
    border: 1px solid #d8e4db;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: #2f3f35;
}

.memo-input:focus {
    outline: 0;
    border-color: var(--theme);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme) 16%, white);
}

.email-group {
    display: grid;
    grid-template-columns: 170px auto 170px 170px;
    gap: 8px;
    align-items: center;
}

#emailId {
    width: 100%;
}

#emailDomain {
    width: 100%;
}

#emailDomainDirect {
    width: 100%;
}

.email-group input,
.email-group select {
    min-height: 42px;
    border: 1px solid #d8e4db;
    border-radius: 10px;
    padding: 0 12px;
    color: #2f3f35;
    font: inherit;
}


.email-group select {
    cursor: pointer;
}


.email-group input:focus,
.email-group select:focus {
    outline: 0;
    border-color: var(--theme);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme) 16%, white);
}

.email-sep {
    justify-self: center;
    color: #93a39a;
    font-weight: 700;
    font-size: 1rem;
}

#emailDomainDirect{
    display:none;
}
.email-group.direct-mode #emailDomainDirect{
    display:block;
}
@media (max-width: 800px) {
    .register-row:not(.not-column) {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .register-card {
        gap: 14px;
    }
}
@media (max-width: 640px) {
    /*기본입력모드*/
    .email-group{
        grid-template-columns:1fr auto 1fr;
        grid-template-areas:
            "id at select";
        width: 100%;
    }

    #emailId{ grid-area:id; }
    .email-sep{ grid-area:at; }
    #emailDomain{ grid-area:select; }

    /*기본입력모드 끝*/
    /*직접입력모드*/
    .email-group.direct-mode{
        grid-template-areas:
            "id at domain"
            "select select select";
    }

    .email-group.direct-mode #emailDomain{
        grid-area:select;
    }

    .email-group.direct-mode #emailDomainDirect{
        grid-area:domain;
        display:block;
    }
}
@media (max-width: 535px) {
    .form-field:has(.file-wrap-label)  {
        flex-direction: column;
    }
    .file-wrap-label {
        justify-content: space-evenly;
    }
    input[type=text].memo-input {
        width: 100%;
    }
    .memo-input::placeholder {
        text-align: center;
    }
}
@media (max-width: 520px) {
    .phone-group {
        gap: 6px;
    }

    .phone-group > input[type=text] {
        width: 5em;
    }

    /*.file-name {*/
    /*    min-width: 0;*/
    /*    max-width: 100%;*/
    /*}*/
    .form-field {
        justify-content: center;
    }
}
input[name="writer"]#writer {
    width: 100px;
}
.proof-guidance {
    max-width: 510px;
    /* margin-top: 16px; */
    padding: 14px 16px;
    border: 1px solid #e6b8b8;
    border-left: 4px solid #d64545;
    border-radius: 12px;
    background: #fff5f5;
    color: #7a2f2f;
    line-height: 1.6;
    display: grid;
    gap: 8px;
    flex: 1 1 auto;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
}

@media (max-width: 1320px) {
    .proof-guidance {
        max-width: 455px;
    }
}

.date-input-wrap {
    max-width: 300px;
}
@media (max-width: 535px) {
    .date-input-wrap {
        max-width: none;
    }
}
.common-radio-group {
    width: fit-content;
}




.address-search-wrap {
    display: grid;
    grid-template-columns: 120px 90px 1fr;
    gap: 8px;
    width: 100%;
    align-items: center;
}

.my-zipcode,
.my-address,
.my-address-detail {
    min-height: 42px;
    border: 1px solid #d8e4db;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: #2f3f35;
    font: inherit;
}

.my-address,
.my-address-detail {
    grid-column: 1 / -1;
}

.btn-address-search {
    min-height: 36px;
    /*padding: 0 16px;*/
    border: 0;
    border-radius: 10px;
    background: var(--theme);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.btn-address-search:not(:disabled):hover {
    opacity: .9;
}

.btn-address-search:not(:disabled):active {
    transform: scale(.98);
}

.my-zipcode:focus,
.my-address:focus,
.my-address-detail:focus {
    outline: 0;
    border-color: var(--theme);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme) 16%, white);
}
@media (max-width: 640px) {
    /*.address-search-wrap {*/
    /*    grid-template-columns: 1fr auto;*/
    /*}*/

    .my-zipcode {
        width: 100%;
    }

    .btn-address-search {
        white-space: nowrap;
    }

    .my-address,
    .my-address-detail {
        grid-column: 1 / -1;
    }
}



/*개인 단체 토글*/
.applicant-type-group {
    display: inline-flex;
    gap: 10px;
}

.type-option {
    position: relative;
    cursor: pointer;
}
/*비활성화시*/
.type-option:has(input:disabled) {
    opacity: 0.6;
    cursor: not-allowed;
}
.type-option input {
    display: none;
}

.type-option span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 90px;
    min-height: 42px;

    padding: 0 20px;

    border: 1px solid #d8e4db;
    border-radius: 10px;

    background: #fff;
    color: #4a5c52;

    font-weight: 700;

    transition: all .2s ease;
}

.type-option input:checked + span {
    background: var(--theme);
    border-color: var(--theme);
    color: #fff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme) 25%, transparent);
}

.type-option:not(:has(input:disabled)) span:hover {
    border-color: var(--theme);
}

/*단체명 행 기본 숨김*/
.company-row {
    display: none;
    /*overflow: hidden;*/
    /*max-height: 0;*/
    /*padding-top: 0;*/
    /*padding-bottom: 0;*/
    /*opacity: 0;*/

    /*transition:*/
    /*        max-height .3s ease,*/
    /*        opacity .25s ease,*/
    /*        padding .25s ease;*/
}

.company-row.view {
    display: grid;
    /*max-height: 120px;*/
    /*!*padding: 10px 12px;*!*/
    /*opacity: 1;*/
}

@media (max-width: 800px) {
    .date-input-wrap{
        flex: 1;
        max-width: none;
    }
    .date-input-wrap input[type="text"].flatpickr {
        width: 100%;
    }
}
/*@media (max-width: 1350px) {*/
/*    .flatpickr.time::placeholder {*/
/*        opacity: 0;*/
/*    }*/
/*    .form-field input[type="text"].flatpickr.time {*/
/*        width: 115px;*/
/*    }*/
/*}*/
/*@media (max-width: 995px){*/

/*    .flatpickr.single::placeholder {*/
/*        opacity: 0;*/
/*    }*/
/*    .form-field input[type="text"].flatpickr.single {*/
/*        width: 145px;*/
/*    }*/
/*}*/
/*@media (max-width: 815px){*/
/*    .register-row.use-day{*/
/*        grid-template-columns: 1fr;*/
/*    }*/

/*}*/
/*@media (max-width: 640px){*/
/*    .use-time-wrap {*/
/*        display: flex;*/
/*        gap: 5px;*/
/*        align-items: center;*/

/*        width: 100%;*/
/*    }*/
/*    .date-input-wrap {*/
/*        max-width: none;*/
/*        flex: 1;*/
/*    }*/
/*    .form-field input[type="text"].flatpickr.time {*/
/*        width: 100%;*/
/*    }*/
/*    .form-field input[type="text"].flatpickr.single {*/
/*        width: 100%;*/
/*    }*/
/*    .flatpickr.time::placeholder {*/
/*        opacity: 1;*/
/*    }*/
/*    .flatpickr.single::placeholder {*/
/*        opacity: 1;*/
/*    }*/
/*}*/
@media (max-width: 580px) {

}
@media (max-width: 570px) {
    /*.use-time-form {*/
    /*    flex-direction: column;*/
    /*}*/
    /*.use-time-wrap {*/
    /*    display: flex;*/
    /*    flex-direction: column;*/
    /*    align-items: center;*/
    /*    gap: 2px;*/
    /*    width: 100%;*/
    /*}*/

    /*.use-time-wrap .date-input-wrap {*/
    /*    width: 100%;*/
    /*    max-width: none;*/
    /*}*/

}
@media (max-width: 515px) {
    .flatpickr.time::placeholder {
        opacity: 0;
    }
    .flatpickr.single::placeholder {
        opacity: 0;
    }
}
