:root {
    --primary-color: #0b2e59;
    --primary-light: #185ca8;
    --secondary-color: #1aa6b7;
    --secondary-hover: #148b99;
    --text-main: #202b3c;
    --text-muted: #667285;
    --bg-main: #f5f8fa;
    --bg-card: #ffffff;
    --border-color: #d1d9e2;
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0px;
    padding-bottom: 0px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
}

.header-slogan {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

/* Hero & Compact Dashboard */
.main-hero {
    padding: 70px 0;
    background: linear-gradient(rgba(55, 65, 81, 0.8), rgba(55, 65, 81, 0.8)), url('imgs/premium_home_interior.png') center/cover no-repeat;
    color: white;
}

.hero-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
}

.hero-left {
    flex: 1;
    min-width: 300px;
}

.hero-left h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 25px;
}

.hero-left h2 span {
    color: #ffd166;
    /* Stand-out highlight */
}

.hero-left p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 450px;
}

.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-badges .badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Dashboard UI (Original 2x2 UX flow) */
.hero-right {
    flex: 0 0 520px;
}

.form-dashboard {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-top: 6px solid var(--primary-color);
    color: var(--text-main);
}

.form-dashboard h3 {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: -0.5px;
}

.form-dashboard h3 span {
    display: block;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.grid-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.2s ease-in-out;
}

.grid-item.completed {
    border-color: var(--primary-color);
    background: #f0fcfd;
    box-shadow: 0 4px 12px rgba(26,166,183,0.15);
}

.g-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon-svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.g-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    transition: all 0.2s;
}

.g-value {
    font-size: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    text-align: center;
    min-height: 24px;
    transition: all 0.2s;
}

/* 선택(완료) 시 글씨 추가 확대 */
.grid-item.completed .g-title {
    font-size: 20px;
}

.grid-item.completed .g-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-light);
}

/* 커스텀 달력 스타일 */
.custom-calendar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.custom-calendar th {
    padding: 10px;
    background: #f4f7fb;
    color: var(--text-main);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}

.custom-calendar td {
    padding: 12px 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    vertical-align: middle;
}

.custom-calendar td:hover {
    background: #eaf1fa;
}

.custom-calendar td.disabled {
    color: #cbd5e0;
    background: #f8fafc;
    cursor: not-allowed;
}

.custom-calendar td.selected {
    background: var(--primary-color);
    color: #fff !important;
    font-weight: 700;
}

.custom-calendar td.selected .son-free-dot {
    background-color: #ffd166;
}

.son-free-dot {
    display: block;
    width: 5px;
    height: 5px;
    background-color: #e53e3e;
    border-radius: 50%;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(26,166,183,0.4); }
    70% { box-shadow: 0 0 0 12px rgba(26,166,183,0); }
    100% { box-shadow: 0 0 0 0 rgba(26,166,183,0); }
}

.btn-main-submit {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #24b8cb 0%, #158593 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 19px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    animation: pulseGlow 2.5s infinite ease-in-out;
}

.btn-main-submit:hover {
    background: linear-gradient(135deg, #2ad1e8 0%, #1aa6b7 100%);
    transform: translateY(-2px);
}

.form-desc {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 15px;
}

/* Modals */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.overlay.active {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    z-index: 1001;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    /* scrollable if too tall */
    overflow: hidden;
    flex-direction: column;
}

.modal.active {
    display: flex;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
}

.btn-confirm {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

/* Modal Content Styles */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.radio-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
}

.radio-card.selected {
    border-color: var(--primary-color);
    background: #eaf1fa;
}

.radio-card img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.rc-info strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.rc-info span {
    font-size: 13px;
    color: var(--text-muted);
}

.sub-section {
    margin-bottom: 25px;
}

.sub-section:last-child {
    margin-bottom: 0;
}

.sub-section h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.op-chip {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    background: #fff;
    cursor: pointer;
}

.op-chip.selected {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.chip-group.compact .op-chip {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.input-base {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.input-base:focus {
    border-color: var(--primary-color);
}

/* Services / Testimonials remaining identically */
.services-info {
    padding: 80px 0;
    background: var(--bg-card);
}

.section-heading {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    text-align: center;
    padding: 25px 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-main);
}

.service-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.service-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.testimonials {
    padding: 80px 0;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.testi-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.testi-item h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.testi-item p {
    font-size: 15px;
    line-height: 1.6;
}

.testimonial-list-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.badge {
    padding: 6px 12px;
    background: #e2e8f0;
    color: var(--text-main);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.footer {
    background: #ffffff;
    color: #4a5568;
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand h3 {
    font-size: 22px;
    color: #0b2e59;
    margin-bottom: 10px;
}

.tel-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.footer-legal p {
    font-size: 13px;
    margin-bottom: 6px;
    color: #718096;
}

.copyright {
    margin-top: 15px;
    color: #a0aec0;
}

.disclaimer {
    color: #a0aec0;
    font-size: 12px;
    margin-top: 5px;
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Hide scrollbar for horizontal swipe elements but allow scrolling */
.strength-grid::-webkit-scrollbar,
.testimonials-list::-webkit-scrollbar {
    display: none;
}

.strength-grid,
.testimonials-list {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Responsive adjustments */
@media (max-width: 950px) {
    .hero-layout {
        flex-direction: column;
    }

    .hero-right {
        width: 100%;
        flex: auto;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-left {
        display: none;
    }

    .main-hero {
        padding: 40px 0;
    }

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

    .testi-grid {
        grid-template-columns: 1fr;
    }

    .hidden-xs {
        display: none;
    }

    /* Horizontal Swipe for Strength Cards */
    .strength-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        gap: 15px;
    }

    .strength-grid>div {
        flex: 0 0 88%;
        scroll-snap-align: start;
    }

    /* 2x2 Grid for Process Steps instead of vertical stack */
    .process-steps {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .process-steps>div {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* 2x2 Grid for Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Horizontal Swipe for Testimonials */
    .testimonials-list {
        display: flex;
        flex-direction: row !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
        gap: 15px;
    }

    .testimonials-list>div {
        flex: 0 0 90%;
        scroll-snap-align: center;
        flex-direction: column !important;
    }

    .testimonials-list>div>div:first-child {
        min-height: 200px !important;
    }

    /* Mobile Footer Text Sizes */
    .footer {
        padding: 35px 0;
    }

    .footer-legal p {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .copyright {
        font-size: 11px;
        margin-top: 10px;
    }

    .disclaimer {
        font-size: 10px;
    }

    /* Mobile Header Height Reduction */
    .header-container {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo img {
        height: 40px !important;
    }

    .header {
        height: 85px !important;
        overflow: hidden;
    }

    .header>.container {
        padding: 8px 0 !important;
        height: 85px !important;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column;
        justify-content: center !important;
        margin: 10px
    }

    #top-logo {
        height: 35px !important;
        margin: -10px !important;
    }

    .header-slogan {
        font-size: 11px !important;
        margin-top: 0 !important;
    }
}

#top-logo {
    height: 50px;
    transform: scale(3);
    /* 투명 여백 때문에 작아진 그래픽을 강제 확대 */
    transform-origin: center center;
    margin: 10px 0;
    /* 상하 간격 살짝 보정 */
}

/* Mobile Line Break */
.mo-br {
    display: none;
}

@media (max-width: 768px) {
    .mo-br {
        display: block;
    }

    .g-title-wrap {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 10px;
    }
    .icon-svg {
        width: 22px;
        height: 22px;
        margin-bottom: 0;
    }
    .g-title {
        font-size: 18px;
        margin-bottom: 0;
    }
}