/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #667EEA;
    --primary-dark: #5A67D8;
    --secondary: #764BA2;
    --success: #48BB78;
    --warning: #F6AD55;
    --danger: #FC8181;
    --dark: #1A202C;
    --gray-900: #2D3748;
    --gray-800: #4A5568;
    --gray-700: #718096;
    --gray-600: #A0AEC0;
    --gray-500: #CBD5E0;
    --gray-400: #E2E8F0;
    --gray-300: #EDF2F7;
    --gray-200: #F7FAFC;
    --white: #FFFFFF;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --gradient-light: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-200);
}

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

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.header-nav,
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.btn-reset {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-400);
    border-radius: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset:hover {
    background: var(--gray-200);
    border-color: var(--gray-500);
    color: var(--dark);
}

/* Main Container */
.main-container {
    min-height: calc(100vh - 70px);
    padding: 2rem 0;
}

/* Title Section */
.title-section {
    text-align: center;
    margin-bottom: 3rem;
}

.title-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-section p {
    color: var(--gray-600);
    font-size: 1.125rem;
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: start;
}

/* Selection Area */
.selection-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calc-section {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(102, 126, 234, 0.08);
    transition: all 0.3s ease;
}

.calc-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 1rem;
}

/* Project Types */
.project-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.project-type-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-type-card:hover {
    transform: translateY(-4px);
}

.project-type-card input {
    position: absolute;
    opacity: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.75rem;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 1rem;
    transition: var(--transition);
    min-height: 120px;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.project-type-card:hover .card-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

.project-type-card input:checked + .card-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.card-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f0f2ff 0%, #e8ebff 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.project-type-card:hover .card-icon {
    background: linear-gradient(135deg, #e8ebff 0%, #d9ddff 100%);
    transform: scale(1.05);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.35rem;
    letter-spacing: -0.3px;
}

.card-price {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    opacity: 0.9;
}

.project-type-card:hover .card-price {
    opacity: 1;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-card {
    position: relative;
    cursor: pointer;
}

.feature-card input {
    position: absolute;
    opacity: 0;
}

.feature-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 0.75rem;
    transition: var(--transition);
}

.feature-card:hover .feature-content {
    border-color: var(--primary);
    background: var(--gray-200);
}

.feature-card input:checked + .feature-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.feature-card input:checked + .feature-content::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    color: var(--primary);
    font-weight: bold;
}

.feature-info {
    padding-left: 1.5rem;
}

.feature-name {
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.feature-price {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

/* Timeline Options */
.option-group {
    margin-bottom: 2rem;
}

.option-group h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 규모 선택 */
.scale-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.scale-input-group {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--gray-400);
    border-radius: 12px;
    overflow: hidden;
}

.scale-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--gray-900);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.scale-btn:hover {
    background: var(--gray-200);
}

#scaleCount {
    width: 80px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
}

#scaleCount::-webkit-inner-spin-button,
#scaleCount::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#scaleUnit {
    font-size: 1rem;
    color: var(--gray-700);
    margin-left: 0.5rem;
}

.scale-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* 복잡도 옵션 */
.complexity-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.complexity-card {
    position: relative;
    cursor: pointer;
}

.complexity-card input {
    position: absolute;
    opacity: 0;
}

.complexity-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--gray-400);
    border-radius: 12px;
    transition: var(--transition);
}

.complexity-card input:checked + .complexity-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.complexity-title {
    font-weight: 600;
    color: var(--gray-900);
}

.complexity-desc {
    font-size: 0.85rem;
    color: var(--gray-600);
    text-align: center;
}

.complexity-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.timeline-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.timeline-card {
    position: relative;
    cursor: pointer;
}

.timeline-card input {
    position: absolute;
    opacity: 0;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 0.75rem;
    transition: var(--transition);
}

.timeline-card:hover .timeline-content {
    border-color: var(--primary);
    background: var(--gray-200);
}

.timeline-card input:checked + .timeline-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.timeline-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.timeline-period {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.timeline-price {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

/* Service Options */
.service-options {
    display: grid;
    gap: 0.75rem;
}

.service-card {
    position: relative;
    cursor: pointer;
}

.service-card input {
    position: absolute;
    opacity: 0;
}

.service-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 0.75rem;
    transition: var(--transition);
}

.service-card:hover .service-content {
    border-color: var(--primary);
    background: var(--gray-200);
}

.service-card input:checked + .service-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.service-card input:checked + .service-content::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    color: var(--primary);
    font-weight: bold;
}

.service-info {
    padding-left: 1.5rem;
}

.service-title {
    font-weight: 600;
    color: var(--dark);
    display: block;
}

.service-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.service-price {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

/* Estimate Area */
.estimate-area {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Chrome, Safari, Opera */
.estimate-area::-webkit-scrollbar {
    display: none;
}

.estimate-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary);
}

.estimate-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Selection Summary */
.selection-summary {
    margin-bottom: 1.5rem;
}

.selection-summary h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.selected-items {
    background: var(--gray-200);
    border-radius: 0.5rem;
    padding: 1rem;
    min-height: 80px;
    max-height: 150px;
    overflow-y: auto;
}

.selected-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.selected-item::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

.empty-state {
    color: var(--gray-500);
    text-align: center;
}

/* Price Breakdown */
.price-breakdown {
    border-top: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-300);
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--gray-700);
}

.price-item span:last-child {
    font-weight: 600;
}

/* Total Estimate */
.total-estimate {
    margin-bottom: 1.5rem;
}

.total-price,
.total-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.total-price {
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 0.5rem;
}

.total-price span {
    font-size: 1.125rem;
    color: var(--gray-700);
}

.total-price strong {
    font-size: 1.75rem;
    color: var(--primary);
}

.total-timeline span {
    color: var(--gray-600);
}

.total-timeline strong {
    font-size: 1.125rem;
    color: var(--dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-400);
}

.btn-ghost:hover {
    background: var(--gray-200);
    border-color: var(--gray-500);
}

.estimate-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Estimate Note */
.estimate-note {
    background: var(--gray-200);
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
}

.estimate-note p {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin: 0.125rem 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 500px;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--dark);
}

.modal h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

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

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-400);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.form-actions .btn {
    width: auto;
    padding: 0.75rem 2rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--dark);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 2000;
    max-width: 350px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

/* Responsive */
@media (max-width: 1200px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .estimate-area {
        position: static;
        margin-top: 2rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .title-section h1 {
        font-size: 2rem;
    }
    
    .project-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .complexity-options,
    .timeline-options {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .calc-section {
        padding: 1.5rem;
    }
    
    .estimate-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .title-section h1 {
        font-size: 1.5rem;
    }
    
    .title-section p {
        font-size: 1rem;
    }
    
    .project-types {
        grid-template-columns: 1fr;
    }
    
    .header .container {
        padding: 0.75rem 15px;
    }
    
    .logo span {
        display: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .btn-reset,
    .estimate-actions {
        display: none;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .estimate-card {
        border: 1px solid var(--gray-400);
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* Help Buttons and Tooltips */
.help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    margin-left: 0.5rem;
    background: transparent;
    border: none;
    color: var(--gray-600);
    cursor: help;
    transition: var(--transition);
    position: relative;
}

.help-btn-small {
    width: 18px;
    height: 18px;
    margin-left: 0.25rem;
}

.help-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.help-btn svg {
    width: 100%;
    height: 100%;
}

/* Tooltip */
.tooltip {
    position: fixed;
    padding: 0.75rem 1rem;
    background: var(--gray-900);
    color: var(--white);
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    white-space: pre-line;
    width: max-content;
    min-width: 150px;
    max-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    text-align: left;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--gray-900);
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
}

/* Tooltip arrow remains centered */
.tooltip::before {
    display: none; /* 화살표는 동적 위치 조정으로 인해 일단 숨김 */
}

/* Section headers with help button */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.section-header .help-btn {
    margin-left: auto;
}

/* AI Features */
.ai-features-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ai-feature-card {
    position: relative;
    cursor: pointer;
}

.ai-feature-card input {
    position: absolute;
    opacity: 0;
}

.ai-feature-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--white);
    border: 2px solid var(--gray-400);
    border-radius: 12px;
    transition: var(--transition);
}

.ai-feature-card input:checked + .ai-feature-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.ai-feature-info {
    flex: 1;
}

.ai-feature-name {
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.ai-feature-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    display: block;
    margin-bottom: 0.5rem;
}

.ai-feature-monthly {
    font-size: 0.85rem;
    color: var(--warning);
    font-style: italic;
}

.ai-feature-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.ai-feature-price .initial-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.ai-feature-price .monthly-price {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

/* AI Notice */
.ai-notice {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(246, 173, 85, 0.1) 0%, rgba(246, 173, 85, 0.05) 100%);
    border: 1px solid rgba(246, 173, 85, 0.3);
    border-radius: 12px;
    margin-top: 1rem;
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
}

.notice-content strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.notice-content p {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin: 0.25rem 0;
    line-height: 1.5;
}

/* 견적 비교 모달 */
.compare-modal .modal-content {
    max-width: 600px;
}

.compare-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.estimate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.estimate-item:hover {
    background: var(--gray-200);
}

.estimate-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--dark);
}

.estimate-info .date {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin: 0.25rem 0;
}

.estimate-info .price {
    font-weight: 600;
    color: var(--primary);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 0.4rem;
    border: 1px solid var(--gray-400);
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.btn-small:hover {
    background: var(--gray-200);
}

.btn-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: #dc3545;
    color: white;
}

/* 진행률 바 */
.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-200);
    z-index: 100;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
    position: relative;
}

.progress-text {
    position: absolute;
    bottom: 10px;
    right: 20px;
    background: var(--dark);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

/* 템플릿 섹션 */
.template-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: white;
}

.template-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.template-header p {
    margin: 0 0 1rem 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.template-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.template-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.template-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.template-icon {
    font-size: 1.25rem;
}

/* 토스트 메시지 개선 */
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Footer Styles - 심플하고 깔끔한 디자인 */
.footer {
    background: #f8f9fa;
    color: #333;
    padding: 3rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid #e9ecef;
}

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

.footer-content {
    text-align: center;
}

.company-info {
    margin-bottom: 1rem;
    padding: 0;
    background: transparent;
    border: none;
}

.company-info p {
    font-size: 0.8rem;
    line-height: 1.8;
    margin: 0.25rem 0;
    color: #6c757d;
    white-space: nowrap;
}

.company-info a {
    color: #667EEA;
    text-decoration: none;
    transition: all 0.3s ease;
}

.company-info a:hover {
    color: #764BA2;
    text-decoration: underline;
}

.footer-links {
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #667EEA;
}

.footer-links span {
    color: #dee2e6;
    font-size: 0.75rem;
}

/* Policy Pages Styles */
.policy-container {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
    background: #ffffff;
}

.policy-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667EEA, #764BA2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.policy-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.policy-section {
    margin-bottom: 3rem;
}

.policy-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid #667EEA;
}

.policy-content {
    color: #495057;
    line-height: 1.8;
    padding-left: 1.5rem;
}

.policy-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    margin: 1.5rem 0 1rem;
}

.policy-content p {
    margin-bottom: 1rem;
}

.policy-content ul,
.policy-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.policy-content .highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border-left: 3px solid #667EEA;
}

.policy-notice {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 3rem;
    border: 1px solid #e9ecef;
}

.policy-notice p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1.5rem;
        margin-top: 3rem;
    }
    
    .footer .container {
        padding: 0 1rem;
    }
    
    .company-info p {
        font-size: 0.75rem;
        margin: 0.25rem 0;
        white-space: normal;
    }
    
    .footer-links {
        gap: 0.75rem;
        padding-top: 0.75rem;
        flex-wrap: wrap;
    }
    
    .footer-links a {
        font-size: 0.75rem;
        padding: 0.2rem 0.3rem;
    }
    
    .footer-links span {
        font-size: 0.7rem;
    }
}