/* ===========================
   Custom Font Import
   =========================== */
@font-face {
    font-family: 'NanumSquareNeo';
    src: url('NanumSquareNeo.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    /* New Year Fortune Color Palette - Red & Gold Theme */
    --primary-pink: #C41E3A;
    --secondary-pink: #D4363C;
    --light-pink: #FFE5E5;
    --ultra-light-pink: #FFF8F0;
    --accent-pink: #B8860B;
    --dark-pink: #8B0000;

    /* Neutral Colors */
    --text-primary: #2C1810;
    --text-secondary: #5A4A42;
    --text-light: #8A7A72;
    --white: #FFFFFF;
    --shadow-color: rgba(196, 30, 58, 0.25);

    /* Typography */
    --font-primary: 'NanumSquareNeo', sans-serif;
    --font-display: 'NanumSquareNeo', sans-serif;

    /* Spacing */
    --section-padding: 80px;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--ultra-light-pink) 0%, var(--light-pink) 100%);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===========================
   Full Section Layout
   =========================== */
.full-section {
    min-height: 100vh;
    position: relative;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--ultra-light-pink) 0%, var(--light-pink) 50%, #FFD4D4 100%);
}

#section1 {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D0 100%);
}

#section2 {
    background: linear-gradient(135deg, #FFF5E8 0%, #FFD4B8 100%);
}



/* ===========================
   Section 1: Hero Styles
   =========================== */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 4px var(--shadow-color);
}

.hero-description {
    max-width: 600px;
    margin: 0 auto;
}

.hero-description .lead {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    font-weight: 300;
}

.hero-highlight {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 400;
}



.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 80px;
    /* Add bottom margin to prevent overlap with scroll indicator */
}

.feature-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 25px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.15);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(184, 134, 11, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===========================
   Section 2: Form Styles
   =========================== */
.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(196, 30, 58, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.form-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    font-weight: 300;
}

.fortune-form .form-control,
.fortune-form .form-select {
    border: 2px solid var(--light-pink);
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: var(--white);
    height: auto;
}

.fortune-form .form-floating>.form-control,
.fortune-form .form-floating>.form-select {
    padding: 1.625rem 1.25rem 0.625rem;
    height: calc(3.5rem + 2px);
}

.fortune-form .form-floating>label {
    padding: 1rem 1.25rem;
    color: var(--text-light);
}

.fortune-form .form-control:focus,
.fortune-form .form-select:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 0.25rem rgba(255, 182, 217, 0.25);
    background: var(--white);
}

.fortune-form .form-floating>.form-control:focus~label,
.fortune-form .form-floating>.form-select:focus~label,
.fortune-form .form-floating>.form-control:not(:placeholder-shown)~label,
.fortune-form .form-floating>.form-select:not(:placeholder-shown)~label {
    color: var(--accent-pink);
}

/* Selection Label */
.selection-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Time Selection */
.time-options {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.time-option {
    background: var(--ultra-light-pink);
    border: 2px solid var(--light-pink);
    border-radius: 10px;
    padding: 10px 5px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.75rem;
    font-weight: 600;
}

.time-option:hover {
    border-color: var(--primary-pink);
    transform: translateY(-2px);
}

.time-option.selected {
    border-color: var(--primary-pink);
    background: var(--primary-pink);
    color: white;
}

/* Calendar Type Selection */
.calendar-options {
    display: flex;
    gap: 10px;
    height: calc(3.5rem + 4px);
}

.calendar-option {
    flex: 1;
    background: var(--ultra-light-pink);
    border: 2px solid var(--light-pink);
    border-radius: 15px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-option:hover {
    border-color: var(--primary-pink);
}

.calendar-option.selected {
    border-color: var(--primary-pink);
    background: var(--primary-pink);
    color: white;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--accent-pink) 100%);
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    color: var(--white);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-smooth);
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 168, 209, 0.5);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-text {
    margin-right: 10px;
}

.btn-icon {
    display: inline-block;
    transition: var(--transition-smooth);
}

.btn-submit:hover .btn-icon {
    transform: translateX(5px);
}

/* ===========================
   Section 3: Confirmation Styles
   =========================== */
.confirmation-content {
    animation: fadeInUp 1s ease-out;
}

.confirmation-icon {
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px var(--shadow-color);
}

.confirmation-message {
    max-width: 500px;
    margin: 0 auto;
}

.confirmation-message .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-primary);
    font-weight: 500;
}

.confirmation-message .text-muted {
    color: var(--text-secondary) !important;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.confirmation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.detail-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(255, 182, 217, 0.2);
    transition: var(--transition-smooth);
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 182, 217, 0.4);
}

.detail-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.detail-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.detail-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.btn-restart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-pink);
    color: var(--accent-pink);
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(255, 168, 209, 0.5);
    cursor: pointer;
    text-decoration: none;
}

.btn-restart:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 168, 209, 0.7);
    color: var(--accent-pink);
}

/* ===========================
   Scroll Indicator
   =========================== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(255, 168, 209, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-pink);
    animation: pulseIndicator 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    transform: translateY(5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 168, 209, 0.7);
}

.scroll-text {
    font-size: 0.85rem;
    color: var(--accent-pink);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.scroll-arrow {
    color: var(--accent-pink);
    animation: bounce 2s infinite;
    font-size: 1rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}

@keyframes pulseIndicator {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(255, 168, 209, 0.5);
    }

    50% {
        box-shadow: 0 8px 35px rgba(255, 168, 209, 0.8);
    }
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .full-section {
        padding: 40px 15px 100px;
        /* Increased bottom padding for scroll indicator */
    }

    .form-wrapper {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 100px;
        /* Increased margin on mobile */
    }

    .confirmation-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .price-tag {
        padding: 15px 30px;
    }

    .scroll-indicator {
        bottom: 30px;
        /* Adjusted for better visibility */
    }
}

@media (max-width: 576px) {
    .full-section {
        padding: 30px 15px 120px;
        /* Even more bottom padding on small screens */
    }

    .form-wrapper {
        padding: 25px 15px;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .btn-submit {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .features-grid {
        margin-bottom: 120px;
        /* Extra margin on very small screens */
    }

    .scroll-indicator {
        bottom: 40px;
        /* Position at the bottom with enough space */
    }

    .pricing-options {
        flex-direction: column;
        align-items: center;
        gap: 80px;
    }

    .pricing-card {
        width: 100%;
        max-width: 280px;
        margin: 20px;
    }

    .time-options {
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
    }

    .time-option {
        font-size: 0.6rem;
        padding: 8px 2px;
    }
}



/* ===========================
   Smooth Scrolling Enhancement
   =========================== */
html.smooth-scroll {
    scroll-behavior: smooth;
}

/* ===========================
   Loading State
   =========================== */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading .btn-text::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* ===========================
   Price Badge (Hero Section)
   =========================== */
.price-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-pink), var(--accent-pink));
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(255, 182, 217, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 5px 20px rgba(255, 182, 217, 0.4);
    }

    50% {
        box-shadow: 0 5px 40px rgba(255, 182, 217, 0.7);
    }
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===========================
   Single Pricing Card (1000원)
   =========================== */
.pricing-card-single {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 3px solid var(--primary-pink);
    border-radius: 25px;
    padding: 40px;
    max-width: 350px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 20px 50px rgba(255, 182, 217, 0.3);
    transition: var(--transition-smooth);
}

.pricing-card-single:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(255, 182, 217, 0.4);
}

.pricing-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.pricing-desc {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-pink);
    margin-bottom: 10px;
}

.pricing-price span {
    font-size: 1.2rem;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-pink);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✨';
}

@media (max-width: 576px) {
    .pricing-card-single {
        padding: 30px 20px;
    }
}

/* ===========================
   Pricing Options (Legacy - Hidden)
   =========================== */
.pricing-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 20px 25px;
    margin: 20px;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 20px rgba(255, 182, 217, 0.3);
}

.pricing-card.selected {
    border-color: var(--primary-pink);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(255, 168, 209, 0.5);
    transform: scale(1.05);
}

.pricing-card.selected::after {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-pink);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-pink);
    color: white;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.plan-name {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.plan-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.plan-original-price {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.plan-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-pink);
}

.plan-period {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===========================
   Sample Section
   =========================== */
#section_sample {
    background: linear-gradient(135deg, #FFF5E8 0%, #FFF8F0 100%);
    position: relative;
    overflow: hidden;
}

.sample-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.sample-text-area {
    text-align: center;
    margin-bottom: 40px;
}

.sample-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--text-dark), var(--accent-pink));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sample-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
}

.phone-mockup {
    background: #fff;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 8px solid #333;
    max-width: 350px;
    width: 100%;
    position: relative;
    margin: 0 auto;
}

.phone-screen {
    background: #f5f5f5;
    /* Email App Background */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.email-header {
    background: #fff;
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.email-from {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.email-sender {
    font-size: 0.85rem;
    font-weight: bold;
    color: #2C3E50;
}

.email-address {
    font-size: 0.7rem;
    color: #7f8c8d;
}

.email-time {
    font-size: 0.7rem;
    color: #95a5a6;
}

.email-subject {
    background: #fff;
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subject-icon {
    font-size: 1rem;
}

.subject-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2C3E50;
}

.email-content-area {
    padding: 15px;
    background: #fff;
    max-height: 400px;
    overflow-y: auto;
}

.email-body {
    background: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #2C3E50;
}

.sample-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}


/* Responsive adjustments */
@media (min-width: 768px) {
    .sample-content {
        flex-direction: row;
        gap: 60px;
        text-align: right;
    }

    .sample-text-area {
        text-align: right;
        margin-bottom: 0;
        max-width: 400px;
    }
}

/* ===========================
   Footer Styles
   =========================== */
footer {
    background: linear-gradient(135deg, #C41E3A 0%, #8B0000 100%);
    padding: 25px 20px 15px;
    color: #fff;
    font-size: 0.85rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-info {
    text-align: center;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.footer-info p {
    margin: 3px 0;
    font-size: 0.8rem;
}

.footer-company {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.footer-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 12px 0;
}

.footer-copyright {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

@media (max-width: 576px) {
    footer {
        padding: 20px 15px 12px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-info {
        font-size: 0.75rem;
    }

    .footer-info p {
        font-size: 0.75rem;
    }
}

/* ===========================
   KakaoTalk Floating Button
   =========================== */
.kakaoChat {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.kakaoChat:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.2));
}

/* Simple fade up animation if AOS is not present */
.fadeUp {
    animation: fadeUpAnimation 1s ease-out forwards;
}

@keyframes fadeUpAnimation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .kakaoChat {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* ===========================
   Section Pricing
   =========================== */
#section_pricing {
    background: linear-gradient(135deg, #FFF5E8 0%, #FFE8D0 100%);
}

/* ===========================
   Family Sites Section
   =========================== */
.family-sites-section {
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--primary-pink) 100%);
    padding: 40px 20px;
}

.family-sites-title {
    text-align: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.family-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.family-site-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.family-site-item:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.family-site-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.family-site-name {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 576px) {
    .family-sites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .family-site-item {
        padding: 12px 8px;
    }

    .family-site-icon {
        font-size: 1.5rem;
    }

    .family-site-name {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .kakaoChat {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}


.hanja-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    max-height: 260px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    margin-top: 4px;
}

.hanja-suggest .item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: background 0.2s ease;
}

.hanja-suggest .item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.hanja-suggest .item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.hanja-suggest .item:hover,
.hanja-suggest .item.active {
    background: #f0f8ff;
}

.hanja-char {
    font-size: 20px;
    width: 38px;
    text-align: center;
    font-weight: 600;
}

.kor {
    color: #d6336c;
    margin-right: 6px;
    font-weight: 600;
}

.no-result {
    padding: 12px 16px;
    color: #666;
    text-align: center;
}

#hanja_name {
    position: relative;
}

/* Hanja name input parent container */
#hanjaName {
    position: relative;
}

.form-floating:has(.hanja-name) {
    position: relative;
    z-index: 1000;
}

/* Ensure hanja suggest dropdown appears above all other form elements */
.col-md-6:has(.hanja-name),
.col-12:has(.hanja-name) {
    position: relative;
    z-index: 100;
}