/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Variables */
:root {
    --primary-color: #ff9aa2;
    --primary-dark: #ff7782;
    --secondary-color: #ffd3a5;
    --accent-color: #a8e6cf;
    --dark-color: #1f2937;
    --light-color: #fff8f0;
    --gray-color: #6b7280;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fff8f0 0%, #ffe4e6 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e5e7eb" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-graphic {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-weight: 500;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.feature-item p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* Services Section */
.services {
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--gray-color);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Portfolio Section */
.portfolio {
    background: var(--white);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-color), #e2e8f0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    font-size: 1rem;
    font-weight: 500;
}

.placeholder-image i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0.9);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    text-align: center;
    padding: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.portfolio-link {
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.portfolio-link:hover {
    transform: scale(1.1);
}

/* Contact Section */
.contact {
    background: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact-details p {
    color: var(--gray-color);
    line-height: 1.6;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filter {
        flex-direction: column;
        align-items: center;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-features {
        text-align: center;
    }

    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    section {
        padding: 60px 0;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    .floating-card {
        padding: 15px;
        font-size: 0.8rem;
    }

    .floating-card i {
        font-size: 1.5rem;
    }
}

/* Animation for scroll reveal */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Portfolio filter animation */
.portfolio-item {
    transition: all 0.3s ease;
}

.portfolio-item.hide {
    opacity: 0;
    transform: scale(0.8);
}

/* Loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* === Bebeguide quick overrides === */
:root{
  --brand:#FF8E8E;
  --brand-dark:#E26F6F;
}

/* 유동 타이포(모바일에서 제목 과대 방지) */
.hero-title{ font-size: clamp(28px, 5.2vw, 56px); line-height:1.15; }
.section-title{ font-size: clamp(22px, 3.6vw, 36px); }
.section-subtitle, p{ font-size: clamp(15px, 1.8vw, 18px); }

/* 버튼 대비 강화(가독/전환) */
.btn-primary{
  background: linear-gradient(135deg, var(--brand), var(--primary-color));
  color:#fff;
  border:none;
  border-radius:14px;
  padding:14px 22px;
  font-weight:700;
  box-shadow:0 8px 20px rgba(255,142,142,.25);
}
.btn-primary:hover{ background: var(--brand-dark); }

.btn-secondary{
  background:transparent;
  color:var(--brand);
  border:2px solid var(--brand);
  border-radius:14px;
  padding:12px 20px;
  font-weight:700;
}

/* 모바일에서 히어로 버튼 스택 */
@media(max-width:680px){
  .hero-buttons{ flex-direction:column; align-items:flex-start; gap:12px; }
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ========== Chatbot Widget Layout ========== */

.chat-widget {
  position: fixed;
  right: 16px;
  bottom: 80px;
  width: 320px;
  max-height: 480px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Pretendard', 'Noto Sans KR', system-ui, sans-serif;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 9999;
}

/* 최소화 상태: 살짝 아래로 숨기고 투명하게 */
.chat-widget.minimized {
  transform: translateY(20px) scale(0.9);
  opacity: 0;
  pointer-events: none;
}

/* 헤더 */
.chat-header {
  background: #6ec6ca;
  color: #fff;
  padding: 12px 12px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.chat-header-left {
  flex: 1;
}

.chat-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.chat-sub {
  font-size: 0.75rem;
  opacity: 0.9;
  line-height: 1.2;
}

.chat-close-btn {
  appearance: none;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  padding: 4px 8px;
}
.chat-close-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* 본문 */
.chat-body {
  background: #fdfdfd;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 8px;
}

.chat-messages,
.chat-container {
  flex: 1;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 12px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
  scroll-behavior: smooth;
  max-height: 300px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.message {
  margin-bottom: 12px;
  word-break: keep-all;
  white-space: pre-line;
}

.message.user {
  text-align: right;
  color: #222;
  background: #e0f7fa;
  padding: 10px 14px;
  border-radius: 14px 14px 0 14px;
  display: inline-block;
  max-width: 85%;
  animation: fadeIn 0.25s ease;
}
.message.bot {
  text-align: left;
  background: #f1f1f1;
  color: #333;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 0;
  display: inline-block;
  max-width: 85%;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 입력 줄 */
.chat-input-area,
.chat-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
#chat-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 0.9rem;
}
#chat-input:focus {
  border-color: #6ec6ca;
  box-shadow: 0 0 0 2px rgba(110,198,202,0.2);
}
#send-btn,
.chat-send-btn {
  background: #6ec6ca;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
}
#send-btn:hover,
.chat-send-btn:hover {
  background: #4db6ac;
}

/* 동그란 플로팅 열기 버튼 */
.chat-toggle-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #6ec6ca;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 16px 32px rgba(0,0,0,0.18);
  cursor: pointer;
  z-index: 9999;
  transition: background 0.2s ease, transform 0.2s ease;
}
.chat-toggle-btn:hover {
  background: #4db6ac;
  transform: translateY(-2px);
}

/* 모바일 대응 */
@media (max-width: 480px) {
  .chat-widget {
    right: 12px;
    bottom: 72px;
    width: calc(100% - 24px);
    max-height: 60vh;
  }
  .chat-container {
    max-height: 40vh;
    font-size: 0.9rem;
  }
  .chat-toggle-btn {
    right: 12px;
    bottom: 12px;
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
  }
}

/* === Lead Collection Form Styles === */
.contact-form h3 {
    color: var(--brand);
    margin-bottom: 8px;
    font-size: 20px;
}

.contact-form > p {
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    color: #333;
}

.form-group select:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 142, 142, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    accent-color: var(--brand);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    accent-color: var(--brand);
}

.form-note {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Mobile form adjustments */
@media (max-width: 768px) {
    .contact-form h3 {
        font-size: 18px;
    }
    
    .checkbox-group {
        gap: 12px;
    }
}

/* === Checklist Display Styles === */
.checklist-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #fdf2f8, #f3e8ff);
    border-radius: 16px;
    border: 2px solid var(--brand);
}

.checklist-header h2 {
    color: var(--brand);
    font-size: 24px;
    margin-bottom: 12px;
}

.checklist-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.checklist-item .service-icon {
    position: relative;
}

.checklist-item .item-number {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--brand);
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.checklist-item {
    border-left: 4px solid var(--brand);
    background: linear-gradient(135deg, #ffffff, #fefefe);
}

.checklist-item:hover {
    border-left-color: var(--brand-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .checklist-header {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .checklist-header h2 {
        font-size: 20px;
    }
    
    .checklist-header p {
        font-size: 14px;
    }
}

/* === About Page - Operator & Validation Styles === */
.operator-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.operator-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #fdf2f8, #f3e8ff);
    border-radius: 16px;
    border: 1px solid var(--brand);
}

.operator-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.operator-details h4 {
    color: var(--brand);
    margin-bottom: 8px;
    font-size: 18px;
}

.operator-details p {
    margin: 4px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.validation-criteria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.criteria-item {
    padding: 20px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--brand);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.criteria-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.criteria-item h4 {
    color: var(--brand);
    margin-bottom: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.criteria-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Mobile adjustments for About section */
@media (max-width: 768px) {
    .operator-info {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .operator-card {
        padding: 16px;
    }
    
    .operator-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .validation-criteria {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .criteria-item {
        padding: 16px;
    }
}

/* === Affiliate Marketing Styles === */
.item-actions {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.btn-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    text-decoration: none;
    color: white;
}

.affiliate-link {
    background: linear-gradient(135deg, #4285f4, #34a853);
}

.affiliate-link:hover {
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.price-info {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* Mobile adjustments for affiliate elements */
@media (max-width: 768px) {
    .item-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .btn-link {
        justify-content: center;
        padding: 10px 16px;
    }
    
    .price-info {
        text-align: center;
        padding: 8px 12px;
    }
}

/* === Pregnancy Preparation Section === */
.pregnancy-section {
  background: linear-gradient(135deg, #fff8f0 0%, #ffe4e1 100%);
  padding: 80px 0;
}

.pregnancy-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

.tab-btn {
  padding: 12px 24px;
  border: 2px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(255, 154, 162, 0.3);
}

/* === Vaccination Schedule Section === */
.vaccination-section {
  padding: 80px 0;
  background: #f9fafb;
}

.vaccination-timeline {
  display: grid;
  gap: 30px;
  margin: 40px 0;
}

/* 파일 권장사항대로 .vaccination-row 스타일 */
.vaccination-row {
  background:#fff;
  border-radius:16px;
  box-shadow:0 10px 24px rgba(0,0,0,0.07);
  padding:16px 20px;
  margin-bottom:16px;
  display:flex;
  gap:16px;
  align-items:flex-start;
}

.vaccination-row.highlight {
  border:2px solid var(--brand);
  box-shadow:0 12px 28px rgba(255,142,142,.25);
}

.vaccine-age {
  min-width:80px;
  font-weight:700;
  color:#111;
  font-size:0.95rem;
  background:#fff5f5;
  border-radius:10px;
  padding:8px 10px;
  text-align:center;
  line-height:1.3;
  border:1px solid rgba(255,142,142,.3);
}

.vaccine-list {
  list-style:none;
  padding:0;
  margin:0;
  font-size:0.9rem;
  color:#444;
}

.vaccine-list li {
  margin-bottom:6px;
  line-height:1.4;
}

.vaccine-list li strong {
  display:block;
  font-weight:600;
  color:#000;
}

.vaccination-disclaimer {
  font-size:0.8rem;
  color:#666;
  line-height:1.4;
  background:#fff3cd;
  border-left:4px solid #ffc107;
  border-radius:8px;
  padding:12px 14px;
  margin-top:20px;
}

.vaccination-note {
  background: #fff3cd;
  border-left: 5px solid #ffc107;
  padding: 25px;
  border-radius: 12px;
  margin: 40px 0;
}

.vaccination-note h4 {
  color: #856404;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vaccination-note ul {
  list-style: none;
  padding: 0;
}

.vaccination-note li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: #856404;
}

.vaccination-note li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ffc107;
  font-weight: bold;
}

.vaccination-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* === Newborn Care Guide Styles === */
.newborn-care-section {
  margin-top: 60px;
  padding: 40px 0;
  border-top: 3px solid var(--primary-color);
}

.care-category {
  margin-bottom: 50px;
}

.care-category h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.care-category h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

.newborn-care-card {
  height: 100%;
}

.newborn-care-card h4 {
  font-size: 1.3rem;
  color: var(--dark-color);
  margin-top: 15px;
}

.care-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.care-list li {
  padding: 10px 0;
  padding-left: 25px;
  position: relative;
  color: var(--gray-color);
  border-bottom: 1px solid #f3f4f6;
}

.care-list li:last-child {
  border-bottom: none;
}

.care-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Reviews Section (실제 사용자 후기) === */
.reviews {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.review-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.reviewer-info {
  display: flex;
  gap: 15px;
  align-items: center;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.reviewer-details h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.reviewer-details p {
  margin: 5px 0 0 0;
  font-size: 0.9rem;
  color: var(--gray-color);
}

.review-rating {
  font-size: 1.2rem;
  color: #ffc107;
}

.review-content {
  margin: 20px 0;
  line-height: 1.8;
}

.review-content p {
  color: #555;
  font-size: 1rem;
  margin: 0;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.review-date {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.review-tag {
  font-size: 0.85rem;
  color: var(--primary-color);
  background: #fff0f3;
  padding: 5px 12px;
  border-radius: 20px;
}

.review-cta {
  text-align: center;
  margin-top: 50px;
  padding: 40px;
  background: linear-gradient(135deg, #fff8f0, #ffe4e1);
  border-radius: 16px;
}

.review-cta p {
  font-size: 1.2rem;
  color: var(--dark-color);
  margin-bottom: 20px;
  font-weight: 500;
}

/* === Responsive Design for New Sections === */
@media (max-width: 768px) {
  .pregnancy-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
  }

  .vaccination-card {
    padding: 20px;
  }

  .vaccination-age {
    flex-direction: column;
    align-items: flex-start;
  }

  .vaccination-links {
    flex-direction: column;
  }

  .vaccination-links .btn {
    width: 100%;
    justify-content: center;
  }

  .care-category h3 {
    font-size: 1.5rem;
  }

  .newborn-care-card h4 {
    font-size: 1.1rem;
  }

  .care-list li {
    font-size: 0.9rem;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .review-card {
    padding: 20px;
  }

  .reviewer-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .review-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* === Source List (정보 출처) === */
.source-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.source-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.source-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.source-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.source-content {
  flex: 1;
}

.source-content h4 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.source-content p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: var(--gray-color);
}

.source-content a {
  display: inline-block;
  margin-top: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.source-content a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.source-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  background: #fff0f3;
  color: var(--primary-color);
  font-size: 0.75rem;
  border-radius: 12px;
  font-weight: 600;
}

.source-note {
  margin-top: 40px;
  padding: 20px;
  background: #e3f2fd;
  border-left: 5px solid #2196f3;
  border-radius: 12px;
}

.source-note p {
  margin: 0;
  color: #1565c0;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .source-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .source-item {
    padding: 15px;
  }

  .source-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* ===== Affiliate / Disclosure block ===== */
.affiliate-box {
  background: #fff8f2;
  border: 1px solid rgba(255,142,142,0.4);
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #333;
}

.affiliate-headline {
  font-weight: 700;
  color: #d12;
  display: inline-block;
  background: #fff;
  border: 1px solid #d12;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.7rem;
  margin-right: 6px;
}

.affiliate-desc {
  display: block;
  font-weight: 500;
  color: #444;
  margin-top: 4px;
  font-size: 0.75rem;
  line-height: 1.5;
}

.affiliate-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.affiliate-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand, #ff8e8e);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(255,142,142,0.4);
  transition: all 0.3s ease;
}

.affiliate-link-btn:hover,
.affiliate-link-btn:focus {
  box-shadow: 0 8px 20px rgba(255,142,142,0.55);
  transform: translateY(-1px);
  color: #fff;
}

.affiliate-price-note {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.3;
  margin-top: 8px;
}

.affiliate-price-note strong {
  font-weight: 600;
  color: #000;
}

/* === Checklist Checkbox & Done State === */
.checklist-info-bar {
  background: #e3f2fd;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #1976d2;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
}

.checklist-info-bar i {
  font-size: 1.1rem;
}

.checklist-item {
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-wrapper {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:8px;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: var(--brand);
  border: 2px solid #ddd;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:hover {
  border-color: var(--brand);
  transform: scale(1.1);
}

.checkbox-wrapper input[type="checkbox"]:checked {
  background-color: var(--brand);
}

/* 완료된 항목 스타일 */
.checklist-item.done {
  opacity: .5;
  text-decoration: line-through;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .checkbox-wrapper {
    top: 12px;
    right: 12px;
  }

  .checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }

  .checklist-info-bar {
    font-size: 0.85rem;
    padding: 10px;
  }
}

/* === Chatbot Loading Animation === */
.typing-indicator {
  display: inline-block;
  color: #666;
  font-style: italic;
}

.typing-indicator .dots {
  display: inline-block;
  animation: typing-dots 1.4s infinite;
}

@keyframes typing-dots {
  0%, 20% {
    content: '.';
  }
  40% {
    content: '..';
  }
  60%, 100% {
    content: '...';
  }
}

/* 챗봇 메시지 스타일 개선 */
.chat-messages .message {
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 봇 메시지에 배경색 추가 */
.chat-messages .message.bot {
  background: #f5f5f5;
  padding: 10px 12px;
  border-radius: 12px;
  border-left: 3px solid #6ec6ca;
}

.chat-messages .message.user {
  background: #e3f2fd;
  padding: 10px 12px;
  border-radius: 12px;
  border-right: 3px solid #FF8E8E;
  text-align: right;
}

/* === 육아 팁 펼치기 스타일 === */
.service-card.expandable h3 {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.3s ease;
}

.service-card.expandable h3:hover {
  color: var(--primary-color);
}

.expand-icon {
  font-size: 0.8em;
  transition: transform 0.3s ease;
  margin-left: 8px;
}

.service-details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px dashed #e0e0e0;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
  }
  to {
    opacity: 1;
    max-height: 2000px;
  }
}

.service-details h4 {
  color: var(--dark-color);
  margin: 20px 0 10px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.service-details h4:first-child {
  margin-top: 0;
}

.service-details ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.service-details ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  line-height: 1.6;
  color: #555;
}

.service-details ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.service-details ul li strong {
  color: var(--dark-color);
  font-weight: 600;
}


