/* ============================================
   Consultation Page Styles
   ============================================ */

/* Page Hero */
.page-hero {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-accent));
    padding-top: 80px;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.page-hero-title {
    font-size: 36px;
    font-weight: 700;
    margin: 12px 0 16px;
    color: var(--white);
}

.page-hero-desc {
    font-size: 16px;
    opacity: 0.7;
    line-height: 1.6;
}

/* Consultation Layout */
.consultation-section {
    background: var(--bg-page);
}

.consultation-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

/* Form Wrapper */
.consultation-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-label .required {
    color: #E57373;
    margin-left: 2px;
}

.form-label .optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(44,83,100,0.1);
}

.form-input::placeholder {
    color: #CCC;
}

.form-input.error {
    border-color: #E57373;
    box-shadow: 0 0 0 3px rgba(229,115,115,0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

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

.form-error {
    display: block;
    font-size: 12px;
    color: #E57373;
    margin-top: 6px;
    min-height: 18px;
}

/* Checkbox */
.form-checkbox-group {
    margin-bottom: 32px;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.form-checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.form-checkbox-label input:checked + .checkbox-custom {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
}

.form-checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.checkbox-text {
    color: var(--text-secondary);
}

.privacy-link {
    color: var(--primary-accent);
    text-decoration: underline;
}

/* Submit Button */
.consultation-submit {
    width: 100%;
    font-size: 16px;
    padding: 18px;
    border-radius: var(--radius-md);
}

.consultation-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Sidebar */
.consultation-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.sidebar-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary-accent);
}

.sidebar-icon.kakao-icon {
    background: #FEE500;
    color: #3C1E1E;
}

.sidebar-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sidebar-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sidebar-phone {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-accent);
    margin-top: 8px;
}

.sidebar-hours {
    text-align: left;
    margin-top: 12px;
}

.sidebar-hour-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
    color: var(--text-secondary);
}

.sidebar-hour-row span:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.modal-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.modal-content .btn {
    min-width: 120px;
}

/* Privacy Modal */
.modal-privacy {
    max-width: 520px;
    text-align: left;
}

.modal-privacy h3 {
    text-align: center;
    margin-bottom: 24px;
}

.privacy-content {
    background: var(--bg-page);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    max-height: 300px;
    overflow-y: auto;
}

.privacy-content p {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.privacy-content p:last-child {
    margin-bottom: 0;
}

.modal-privacy .btn {
    display: block;
    width: 100%;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .consultation-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .consultation-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 240px;
        padding-top: 64px;
    }

    .page-hero-title {
        font-size: 28px;
    }

    .consultation-form-wrapper {
        padding: 28px 20px;
    }

    .consultation-sidebar {
        flex-direction: column;
    }

    .sidebar-card {
        min-width: auto;
    }
}
