@import url('https://fonts.googleapis.com/css2?family=Gothic+A1:wght@500;700;900&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* General Setup */
:root {
    --primary-color: #5D9CEC; /* Professional Blue */
    --dark-bg: #2C3E50;       /* Brighter Dark Blue */
    --light-bg: #34495E;      /* Brighter Light Blue */
    --dark-gray-bg: #4A4E52;  /* Brighter Dark Gray */
    --light-gray-bg: #6C757D; /* Brighter Light Gray */
    --text-color: #F5F5F5;    /* Off-white */
    --text-muted: #B0C4DE;    /* Light Steel Blue */
    --font-family: 'Noto Sans KR', sans-serif;
    --heading-font-family: 'Gothic A1', sans-serif;
    --button-text-color: #0D1B2A; /* For high contrast on buttons */
    --form-bg: #F8F9FA; /* Very light gray for form background */
    --form-text: #212529; /* Dark gray for form text */
    --form-border: #DEE2E6; /* Light gray for form border */
    --form-placeholder: #6C757D; /* Medium gray for placeholder */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.8;
}

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

h1, h2 {
    font-family: var(--heading-font-family);
}

h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; color: var(--text-color); }
h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary-color); }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

section {
    padding: 6rem 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?q=80&w=2071&auto=format&fit=crop') no-repeat center center/cover;
    color: white;
}

.hero-content h1 {
    margin-bottom: 1rem;
    font-weight: 700; /* Gothic A1 폰트의 굵은 가중치 사용 */
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero-content .highlight-expert {
    font-weight: 900; /* 표제용 폰트처럼 두껍게 */
    font-size: 3rem; /* 주변 텍스트보다 크게 */
    /* 블루 계열 그라데이션 적용 */
    background: linear-gradient(45deg, #82B1FF, #5D9CEC);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--button-text-color);
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #82B1FF;
    transform: translateY(-3px);
}

/* Intro & Problems Section */
.intro {
    background-color: var(--light-gray-bg);
    text-align: center;
    font-size: 1.1rem;
}

.intro strong {
    color: var(--primary-color);
}

.problems {
    text-align: center;
}

.problems ul {
    list-style: none;
    max-width: 600px;
    margin: 2rem auto;
    text-align: left;
}

.problems li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.solution-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 3rem;
}

/* Benefits Section */
.benefits {
    background-color: var(--light-gray-bg);
}

.benefit-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-items .item {
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s;
}

.benefit-items .item:hover {
    transform: translateY(-5px);
}

.refund-highlight {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-block; /* transform 속성을 적용하기 위해 필요합니다. */
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Consult Form Section */
.consult-form-section {
    text-align: center;
}

.consult-form-section p {
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

#rehab-form {
    max-width: 500px;
    margin: 2rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#rehab-form input[type="text"],
#rehab-form input[type="tel"] {
    width: 100%;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid var(--form-border);
    background-color: var(--form-bg);
    color: var(--form-text);
    font-size: 1rem;
}

#rehab-form input::placeholder {
    color: var(--form-placeholder);
}

.agreement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.policy-button {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

#form-status {
    margin-top: 1rem;
    height: 20px;
    font-weight: 500;
}

/* 상담 분야 선택 버튼 스타일 */
.consult-type-container {
    margin-bottom: 1rem;
    text-align: left;
}

.consult-type-container p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.consult-type-buttons {
    display: flex;
}

.option-btn {
    flex: 1; /* 각 버튼이 공간을 동일하게 나눠 가집니다. */
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid var(--form-border);
    background-color: var(--form-bg);
    color: var(--form-text);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
    white-space: nowrap; /* 버튼 내 텍스트 줄바꿈 방지 */
}

.option-btn:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.option-btn:not(:last-child) {
    border-right: none; /* 버튼 사이의 중복되는 테두리 제거 */
}

.option-btn:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.option-btn.active {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    border-color: var(--primary-color);
    font-weight: 700;
}

/* Footer */
footer {
    background-color: #1C2B3A;
    color: var(--text-muted);
    text-align: center;
    padding: 3rem 0;
}

footer .copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: var(--light-bg);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #3A4E60;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
}

.close-button {
    color: var(--text-muted);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: var(--font-family);
    color: var(--text-color);
    max-height: 60vh;
    overflow-y: auto;
}
