/* ===========================
   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 {
    /* Pastel Pink Color Palette */
    --primary-pink: #FFB6D9;
    --secondary-pink: #FFC9E3;
    --light-pink: #FFE5F1;
    --ultra-light-pink: #FFF5FA;
    --accent-pink: #FFA8D1;
    --dark-pink: #FF8DC7;

    /* Neutral Colors */
    --text-primary: #4A4A4A;
    --text-secondary: #7A7A7A;
    --text-light: #A0A0A0;
    --white: #FFFFFF;
    --shadow-color: rgba(255, 182, 217, 0.3);

    /* 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%, var(--secondary-pink) 100%);
}

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

#section2 {
    background: linear-gradient(135deg, #FFF0F6 0%, #FFC9E3 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.7);
    backdrop-filter: blur(10px);
    padding: 25px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(255, 182, 217, 0.2);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255, 182, 217, 0.4);
}

.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.9);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(255, 182, 217, 0.3);
    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);
}

.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;
    }
}



/* ===========================
   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: '...';
    }
}

/* ===========================
   Pricing Options
   =========================== */
.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, #FFE5F1 0%, #FFF0F6 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: #FBE64D;
    /* KakaoTalk Yellow */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.kakao-header {
    background: rgba(0, 0, 0, 0.05);
    padding: 10px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #3b1e1e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kakao-chat-area {
    padding: 15px;
    background: #bacee0;
    /* KakaoTalk Chat BG */
}

.chat-bubble {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
}

.chat-bubble::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -8px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #fff;
}

.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, #FFB6D9 0%, #FFA8D1 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, #FFF0F6 0%, #FFE5F1 100%);
}