@charset "UTF-8";

#logOutModal .modal-content {
    width: 420px;
}
.logOutModal .form-actions {
    width: 380px;
    margin: 24px auto 0;
}

.modal-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index:1020;
}

.modal-container a:focus {
    outline:none;
}

.form-fieldset legend {
    display: none;
}

.overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.modal-content * {
    box-sizing: border-box;
}

.modal-content button {
    cursor:pointer;
}

.modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: #fff;
    border-radius: 12px;
    padding: 28px;
    opacity: 0;
    transition: 0.2s all ease-in-out;
}

.modal-content.privacyModal-content,.modal-content.termsModal-content {
    width: 490px;
}

.modal-content.md-type {
    width: 600px;
    max-width: 80%;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.modal-title.client, .modal-title.address{
    font-size: 22px;
    text-align: left;
}

.form-fieldset {
    margin-top: 30px;
    padding:0;
}

.modal-container_join .form-fieldset{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 8px;
}

.form-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-weight: normal;
    font-size: 14px;
}

.form-label:focus{
    color: #2D8EFF;
}

.form-label .required{
    color: #2D8EFF;
}

.form-input {
    width: 320px;
    height: 52px;
    border-radius: 8px;
    background-color: #F8F8F8;
    padding: 0 15px;
    font-size: 16px;
    border:none;
}

#joinModal .modal-content {
    width: 824px;
}

#joinModal .form-input {
    width: 100%;
}

.modal-container_join .form-group{
    margin-top: 0;
}

.modal-container .form-inner-email {
    position:relative;
}

.modal-container .form-inner-email input {
    padding-right: 86px;
}

.modal-container .form-inner-email .chk-btn {
    position:absolute;
    top:8px;
    right:8px;
    width: 70px;
    height: 36px;
    font-size: 14px;
    color: #FFF;
    line-height: 32px;
    text-align: center;
    border-radius: 5px;
    border: 1px solid #3BA3FD;
    box-sizing: border-box;
    background: #3BA3FD;
    transition: all 0.3s;
}

.fileBtn{
    width:100%;
    height: 138px;
    background: #F8F8F8;
    border-radius: 8px;
    padding: 24px;
    overflow-y: auto;
}

#file_b{
    display : flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.fileList{
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.fileList:last-of-type{
    margin-bottom: 0;
}

.fileList span{
    color: #222;
    font-weight: normal;
    font-size: 14px;
}

.fileBtn:hover{
    background: #f3f4f6;
}

.fileBtn p {
    font-size: 12px;
    margin-top: 4px;
    color: #a4a4a4;
}

.form-group {
    margin-top: 27px;
}

.form-group:first-of-type {
    margin-top: 0;
}

.form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.form_btns{
    width: 380px;
    margin: 24px auto 0
}

.btn-close,
.btn-login {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    font-size: 14px;
    border:none;
}

.btn-close {
    background-color: #222 !important;
    color: #fff;
}

.btn-login {
    background-color: #2D8EFF !important;
    color: #fff;
}

.form-footer {
    display: flex;
    justify-content: center;
    margin-top: 38px;
    font-size: 14px;
}

.form-footer p {
    font-weight: bold;
}

.form-footer a {
    color: #2D8EFF;
}

.pwHint{
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: normal;
    color: #a4a4a4;
    outline:none;
}

.logout_text{
    text-align: center;
    margin-top: 44px;
    margin-bottom: 40px;
    font-weight: 500;
}

.modal-flex-type {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap:1rem;
    overflow: hidden;
}

.modal-flex-type .flex-title {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.flex-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: #222;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.15s;
}

.flex-modal-close:hover {
    background-color: #f3f4f6;
}

.modal-flex-type .flex-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
.modal-flex-type .flex-content::-webkit-scrollbar { width:3px; }
.modal-flex-type .flex-content::-webkit-scrollbar-track { background:transparent; }
.modal-flex-type .flex-content::-webkit-scrollbar-thumb { border-radius:10px; background:rgba(34,34,34,0.7); }

/* modal-content에 flex-type 사용 시 최대 높이 및 내부 flex 적용 */
.modal-content:has(.modal-flex-type) {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

@media only screen and (max-width: 768px) {
    .modal-content:has(.modal-flex-type) {
        max-height: 85vh;
    }

    .modal-container_join .form-fieldset {
        display: flex;
        flex-direction: column;
    }
    .modal-content {
        width: 90%;
        padding: 30px 20px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-title.client,
    .modal-title.address {
        font-size: 20px;
    }

    .form-input {
        width: 100%;
    }

    #joinModal .modal-content {
        width: 90%;
        max-height: 80vh;
        overflow-y: auto;
    }

    .fileBtn {
        height: 100px;
        padding: 16px;
    }

    .logout_text {
        margin-top: 32px;
        margin-bottom: 30px;
        font-size: 16px;
    }

    .form_btns {
        width: 100%;
    }
    #logOutModal .modal-content,.modal-content.privacyModal-content,.modal-content.termsModal-content{
        width: 90%;
    }
    .logOutModal .form-actions {
        width: 100%;
        margin: 24px auto 0;
    }
    .logout_text {
        margin-top: 32px;
        margin-bottom: 30px;
        font-size: 16px;
    }
}

