/* MTLA02 무료상담 폼 */
.mainTwoLatArea .MTLA02 {
    box-sizing: border-box;
    overflow: hidden;
}

.ys-consult-section .ys-consult-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.ys-consult-banner-mo {
    display: none;
}

.mainTwoLatArea .MTLA02 .ys-consult,
.mainTwoLatArea .MTLA02 .ys-consult * {
    box-sizing: border-box;
}

.ys-consult {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 24px 24px;
}

.ys-consult-head {
    text-align: center;
    margin-bottom: 22px;
}

.ys-consult-head img {
    display: block;
    max-width: 210px;
    height: auto;
    margin: 0 auto 8px;
}

.ys-consult-head p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
}

/* 행 레이아웃: 라벨 | 입력 */
.ys-consult-body {
    width: 100%;
}

.ys-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.ys-row-label {
    flex: 0 0 72px;
    width: 72px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.ys-row-control {
    flex: 1 1 auto;
    min-width: 0;
    width: calc(100% - 86px);
}

/* 공통 입력 */
.ys-input {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font-size: 14px;
    line-height: normal;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.ys-input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 1px;
}

/* 연락처 3칸 균등 배치 */
.ys-phone-group {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.mainTwoLatArea .MTLA02 .ys-phone-group select,
.mainTwoLatArea .MTLA02 .ys-phone-group input {
    float: none !important;
    display: block;
}

.ys-phone-part {
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    max-width: none;
    text-align: center;
}

.ys-phone-group select.ys-phone-part {
    padding-right: 24px;
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%);
    background-position: calc(100% - 14px) 18px, calc(100% - 9px) 18px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.ys-phone-sep {
    flex: 0 0 10px;
    width: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1;
    user-select: none;
}

/* 동의 — 하단 한 줄 */
.ys-consult-agree {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ys-agree-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}

.ys-agree-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    flex: 1 1 auto;
    min-width: 0;
}

.ys-agree-item-sms {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.ys-agree-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.ys-agree-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin: 0;
}

.ys-agree-text {
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
}

.ys-agree-text em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.ys-agree-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.ys-agree-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 제출 버튼 */
.ys-consult-submit {
    margin-top: 18px;
    text-align: center;
}

.ys-consult-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: #3a3a3a;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.ys-consult-btn:hover {
    background: #2a2a2a;
}

/* 모바일 */
@media (max-width: 850px) {
    .mainTwoLatArea.ys-consult-section {
        width: 100%;
        max-width: 100%;
    }

    .mainTwoLatArea .MTLA02 {
        height: auto !important;
        padding: 0 !important;
    }

    .ys-consult {
        max-width: none;
        padding: 18px 14px 22px;
    }

    .ys-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin-bottom: 14px;
    }

    .ys-row-label {
        flex: none;
        width: auto;
    }

    .ys-row-control {
        width: 100%;
    }

    .ys-agree-row {
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .ys-agree-item-sms {
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    .ys-consult-btn {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .ys-consult-banner-pc {
        display: none;
    }

    .ys-consult-banner-mo {
        display: block;
    }

    .ys-consult-section.mainTwoLatArea .MTLA01,
    .ys-consult-section.mainTwoLatArea .MTLA02 {
        width: 100%;
        float: none;
    }
}

@media (max-width: 480px) {
    .ys-phone-group {
        gap: 4px;
    }

    .ys-phone-sep {
        flex-basis: 6px;
        width: 6px;
        font-size: 13px;
    }

    .ys-agree-text {
        font-size: 13px;
    }

    .ys-agree-link {
        padding: 0 8px;
        font-size: 11px;
    }
}
