﻿@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

@font-face {
    font-family: 'Pretendard-Num';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    unicode-range: U+0030-0039;
}

@font-face {
    font-family: 'Pretendard-Num';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    unicode-range: U+0030-0039;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard-Num', 'Noto Sans KR', sans-serif;
    font-size: 14px;
    color: #333;
}

.kt-container {
    width: 980px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

/* Common Elements */
input[type="text"], input[type="date"] {
    border: 1px solid #ccc;
    border-radius: 3px;
    height: 32px;
    padding: 0 10px;
    outline: none;
    text-align: right;
}

    input[type="text"]:focus {
        border-color: #999;
    }

.text-red {
    color: #d32f2f !important;
}

.font-bold {
    font-weight: bold;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='%23999'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px !important;
}

/* Header */
.kt-header {
    background-color: #da291c;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .kt-header * {
        color: #fff;
    }

.kt-header-left, .kt-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-kt {
    background-color: #fff;
    color: #da291c;
    font-weight: 900;
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    margin-right: 10px;
}

.kt-header-input {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.5) !important;
    color: #fff;
    width: 140px;
}

    .kt-header-input::placeholder {
        color: rgba(255,255,255,0.7);
    }
    .header-input {
        color: #333;
    }
.logo-juda {
    font-size: 24px;
    font-weight: bold;
    font-style: italic;
    margin-left: 20px;
}

/* Top Section */
.top-section {
    display: flex;
    padding: 20px;
    gap: 40px;
}

.top-left {
    flex: 0.45;
}

.top-right {
    flex: 0.55;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

    .form-row > label {
        width: 80px;
        color: #555;
    }

.btn-group {
    display: flex;
    gap: 5px;
    flex: 1;
}

    .btn-group button {
        flex: 1;
        height: 34px;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 4px;
        cursor: pointer;
        color: #555;
    }

        .btn-group button.active {
            background: #da291c;
            color: #fff;
            border-color: #da291c;
            font-weight: bold;
        }

.device-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    background-color: #fbfbfb;
    gap: 15px;
}

.device-img-placeholder {
    width: 100px;
    height: 100px;
    border: 1px dashed #ccc;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 11px;
    border-radius: 4px;
}

    /*.device-img-placeholder::before {
        content: "📱";
        font-size: 24px;
        margin-bottom: 5px;
    }*/

.device-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .device-info .price-row {
        text-align: right;
        margin-bottom: 5px;
    }

        .device-info .price-row strong {
            font-size: 18px;
            color: #000;
        }

    .device-info input {
        width: 100%;
        background-color: #fff;
    }

.input-with-unit {
    display: flex;
    align-items: center;
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    padding-right: 10px;
}

    .input-with-unit input {
        flex: 1;
        border: none;
        text-align: right;
        padding-right: 5px;
    }

.top-right .form-row > label {
    width: 100px;
}

.top-right .form-row input {
    flex: 1;
}

.extra-charge-box {
    display: flex;
    margin-top: 15px;
}

    .extra-charge-box > label {
        width: 95px;
        padding-top: 5px;
        color: #555;
    }

.extra-charge-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.extra-charge-total {
    flex: 1;
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    font-weight: bold;
}

/* Detail Section */
.detail-section {
    margin: 0 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.detail-header {
    background-color: #da291c;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    align-items: center;
}

    .detail-header label {
        color: #fff;
        font-size: 12px;
        font-weight: normal;
        cursor: pointer;
    }

.detail-body {
    display: flex;
    background-color: #fff;
}

.kt-col {
    flex: 1;
    padding: 20px;
    border-right: 1px dashed #ddd;
}
.col-c {
    flex: 1.5 !important;
}
    .kt-col:last-child {
        border-right: none;
    }

.kt-col-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid #da291c;
}

.badge {
    background-color: #da291c;
    color: #fff;
    width: 20px;
    height: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    margin-right: 8px;
    font-size: 12px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #444;
}

    .data-row.large {
        font-size: 14px;
        margin-top: 15px;
    }

        .data-row.large strong {
            font-size: 16px;
        }

    .highlight {
        color: #da291c;
    }

        .data-row.highlight strong {
            font-size: 18px;
        }

.divider {
    border-top: 1px dotted #ccc;
    margin: 15px 0;
}

.col-b input {
    width: 140px;
    height: 26px;
    text-align: right;
}

.col-b .data-row {
    align-items: center;
}

.tag {
    background-color: #dff5ff;
    color: #0288d1;
    padding: 0 8px;
    border-radius: 5px;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 15px;
}

.spec-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.s-icon {
    display: flex;
    align-items: center;
    font-size: 13px;
}

    .s-icon span.label {
        background-color: #da291c;
        color: #fff !important;
        padding: 0 10px;
        border-radius: 3px;
        margin-right: 3px;
        font-size: 13px;
    }

.memo-text {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    font-size: 10px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.4;
}

.total-box {
    background-color: #da291c;
    color: #fff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

    .total-box .calc {
        font-size: 16px;
        color: #fff;
    }

    .total-box .price {
        text-align: right;
        font-size: 24px;
        font-weight: bold;
        color: #fff;
    }

.change-plan-box {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.change-plan-header {
    background-color: #da291c;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;
}

.change-plan-body {
    padding: 10px;
}

    .change-plan-body input {
        width: 100%;
        height: 32px;
    }

.change-plan-calc {
    font-size: 14px;
    color: #555;
}

.change-plan-total {
    text-align: right;
    font-weight: bold;
    color: #da291c;
    font-size: 26px;
}

    .change-plan-total span {
        font-size: 26px;
        color: #d32f2f;
        margin-right: 10px;
    }

/* Bottom Section */
.bottom-section {
    margin: 20px;
    background-color: #fefcf3;
    border: 1px solid #f3e5ab;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    gap: 20px;
}

.notes {
    flex: 0.6;
}

.notes-title {
    color: #d88000;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

    .notes-title::before {
        content: "!";
        display: inline-block;
        width: 18px;
        height: 18px;
        background-color: #ffb300;
        color: #fff;
        border-radius: 50%;
        text-align: center;
        line-height: 18px;
        font-size: 12px;
        margin-right: 8px;
    }

.notes ul {
    list-style: none;
    padding-left: 0;
}

.notes li {
    position: relative;
    padding-left: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

    .notes li::before {
        content: "-";
        position: absolute;
        left: 0;
        top: 0;
    }

.memo-box {
    flex: 0.4;
    background-color: #fff;
    border: 1px solid #e0d8c3;
    border-radius: 4px;
    padding: 10px;
    color: #999;
    min-height: 120px;
}

/* Footer */
.sign-footer {
    background-color: #da291c;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

    .sign-footer label {
        color: #fff;
        font-weight: bold;
    }

    .sign-footer input {
        border: none;
        border-radius: 3px;
        height: 32px;
        padding: 0 10px;
        width: 180px;
    }

.footer-sig {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sign-footer-sig span {
    color: #fff;
}
    .label-text {
        text-align: right;
        padding-right: 15px;
        margin: 0 !important;
    }

.kt-memo-box {
    flex: 0.4;
    background-color: #fff;
    border: 1px solid #e0d8c3;
    border-radius: 4px;
    padding: 10px;
    color: #999;
    min-height: 120px;
    /* 아래 2줄 추가: 내부 요소들을 위아래로 배치 */
    display: flex;
    flex-direction: column;
}

/* MEMO 글자 스타일 */
.kt-memo-title {
    font-size: 12px;
    margin-bottom: 8px;
    color: #999;
}

/* 입력창(textarea) 스타일 */
.kt-memo-input {
    flex: 1; /* MEMO 글자를 제외한 나머지 빈 공간을 꽉 채움 */
    width: 100%;
    border: none; /* 기본 테두리 제거 */
    resize: none; /* 사용자가 마우스로 크기 조절하는 기능 차단 */
    outline: none; /* 클릭 시 생기는 테두리 제거 */
    color: #333;
    font-family: inherit;
    font-size: 12px;
    background-color: transparent;
    padding: 0;
}

    /* 입력창 스크롤바 스타일 (선택사항) */
    .kt-memo-input::-webkit-scrollbar {
        width: 6px;
    }

    .kt-memo-input::-webkit-scrollbar-thumb {
        background-color: #ddd;
        border-radius: 3px;
    }
.radiotype-btn-group-kt {
    display: inline-flex;
    gap: 8px;
}

    /* 1. 실제 동그란 라디오 버튼(input)은 화면에서 숨김 */
    .radiotype-btn-group-kt input[type="radio"] {
        display: none;
    }

    /* 2. 글자(label)를 버튼처럼 디자인 */
    .radiotype-btn-group-kt label {
        display: inline-block;
        padding: 3px 18px;
        font-size: 13px;
        color: #666;
        background-color: #f8f9fa; /* 기본 연한 회색 배경 */
        border: 1px solid #ddd;
        border-radius: 20px; /* 둥근 알약 모양 */
        cursor: pointer;
        transition: all 0.2s ease-in-out;
        margin: 0;
        width: 85px;
        text-align: center;
        margin: 0 5px;
    }

        /* 마우스 호버 시 효과 */
        .radiotype-btn-group-kt label:hover {
            background-color: #f1f1f1;
        }

    /* ⭐ 3. 라디오 버튼이 선택(Checked)되었을 때 바로 뒤의 라벨 색상 변경 */
    .radiotype-btn-group-kt input[type="radio"]:checked + label {
        background-color: #da291c;
        color: #fff;
        border-color: #da291c;
        font-weight: bold;
        box-shadow: 0 3px 8px rgba(179, 46, 191, 0.3);
    }
.buga-icon-kt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #da291c;
    color: white;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}
.buga-fee-kt {
    font-weight: bold;
    color: #da291c;
    white-space: nowrap;
    flex-shrink: 0;
}