/* =============================================================================
   CONTACT.CSS - 상담 페이지 스타일시트
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. RESET & VARIABLES
   ----------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #1a365d;
    --secondary-color: #3498db;
    --kakao-color: #FFE812;
    --bg-color: #f5f6fa;
    --text-color: #2c3e50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
}

/* -----------------------------------------------------------------------------
   2. HEADER
   ----------------------------------------------------------------------------- */
.header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    line-height: 1;
}

.header h1 {
    font-size: 1.2rem;
    font-weight: 500;
    flex: 1;
}

.home-btn {
    color: white;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-btn:hover {
    background: rgba(255,255,255,0.1);
}

.home-btn svg {
    width: 22px;
    height: 22px;
}

/* -----------------------------------------------------------------------------
   3. MAIN CONTENT
   ----------------------------------------------------------------------------- */
.main-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

/* -----------------------------------------------------------------------------
   4. HERO SECTION
   ----------------------------------------------------------------------------- */
.hero {
    text-align: center;
    margin-bottom: 35px;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.hero p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   5. CONTACT OPTIONS
   ----------------------------------------------------------------------------- */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 35px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 18px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: left;
    width: 100%;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.contact-btn .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-btn .icon svg {
    width: 24px;
    height: 24px;
}

.contact-btn.kakao .icon {
    background: var(--kakao-color);
    color: #3C1E1E;
}

.contact-btn.phone .icon {
    background: var(--primary-color);
    color: white;
}

.contact-btn.form .icon {
    background: var(--secondary-color);
    color: white;
}

.contact-btn .text strong {
    display: block;
    margin-bottom: 2px;
}

.contact-btn .text small {
    color: #888;
    font-size: 0.8rem;
}

.contact-btn.phone.unavailable {
    opacity: 0.6;
}

.contact-btn.phone.unavailable .text small {
    color: #e74c3c;
}

/* -----------------------------------------------------------------------------
   6. RESERVATION FORM
   ----------------------------------------------------------------------------- */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    display: none;
}

.form-section.active {
    display: block;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-section h3 .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group label .required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 0.75rem;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-btn:hover {
    opacity: 0.9;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* -----------------------------------------------------------------------------
   7. COUNSELOR SECTION
   ----------------------------------------------------------------------------- */
.counselor-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.counselor-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1rem;
    text-align: center;
}

.counselor-card {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 10px;
}

.counselor-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #ddd;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2rem;
}

.counselor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.counselor-info h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 1rem;
}

.counselor-info p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* -----------------------------------------------------------------------------
   8. DIRECTIONS SECTION
   ----------------------------------------------------------------------------- */
.directions-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 20px;
    display: none;
}

.directions-section.visible {
    display: block;
}

.directions-section h3 {
    color: var(--primary-color);
    margin-bottom: 18px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.directions-section h3 svg {
    width: 20px;
    height: 20px;
}

.directions-content {
    background: var(--bg-color);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}

.directions-address {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 4px;
}

.directions-address .detail {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.map-btn:hover {
    opacity: 0.9;
}

.map-btn svg {
    width: 16px;
    height: 16px;
}

/* -----------------------------------------------------------------------------
   9. TOAST
   ----------------------------------------------------------------------------- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
    max-width: 90%;
}

.toast.show {
    opacity: 1;
}

/* -----------------------------------------------------------------------------
   10. RESPONSIVE
   ----------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.3rem;
    }

    .counselor-card {
        flex-direction: column;
        text-align: center;
    }
}
