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

:root {
    --primary-red: #C1272D;
    --primary-dark: #8B1A1F;
    --accent-red: #E63946;
    --dark-bg: #1A1A1A;
    --dark-gray: #2D2D2D;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #1F1F1F;
    --text-light: #666666;
    --gold-accent: #D4AF37;
    --border-light: #E0E0E0;
    --shadow-sm: 0 2px 8px rgba(193, 39, 45, 0.1);
    --shadow-md: 0 4px 16px rgba(193, 39, 45, 0.15);
    --shadow-lg: 0 8px 32px rgba(193, 39, 45, 0.2);
    --shadow-xl: 0 16px 48px rgba(193, 39, 45, 0.25);
}

body {
    font-family: 'Segoe UI', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header - Premium Design */
.header {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(26, 26, 26, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(193, 39, 45, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-red);
    filter: drop-shadow(0 0 8px rgba(193, 39, 45, 0.5));
}

.nav-menu ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 0;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--white);
    cursor: pointer;
}

/* Hero Section - Premium Full Screen */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    filter: grayscale(20%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--dark-bg), transparent);
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Buttons - Premium Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-red) 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(193, 39, 45, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(193, 39, 45, 0.4);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Search Section - Booking Style */
.search-section {
    background: var(--white);
    padding: 0;
    margin-top: -80px;
    position: relative;
    z-index: 100;
}

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

.search-box {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    border: 1px solid var(--border-light);
}

.search-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.search-title-text {
    display: inline;
}

.search-title-break {
    display: inline;
}

.search-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

.search-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.search-tab.active {
    color: var(--primary-red);
}

.search-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-red);
}

.search-form {
    display: grid;
    grid-template-columns: 0.7fr 0.8fr 2.2fr auto;
    gap: 1.5rem;
    align-items: end;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-field input,
.form-field select {
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--white);
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(193, 39, 45, 0.1);
}

.search-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-red) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

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

/* Quick Links - Icon Cards */
.quick-links {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.quick-link-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--accent-red) 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-link-card:hover::before {
    transform: scaleX(1);
}

.quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(193, 39, 45, 0.1);
}

.icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-red) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 8px 24px rgba(193, 39, 45, 0.25);
    transition: all 0.4s;
}

.quick-link-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(193, 39, 45, 0.35);
}

.quick-link-card h3 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
}

.quick-link-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Section Header - Premium */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--accent-red) 100%);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* Popular Destinations - Premium Cards */
.popular-destinations {
    padding: 6rem 0;
    background: var(--white);
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.destination-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    position: relative;
    cursor: pointer;
}

.destination-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.destination-card:hover::before {
    opacity: 0.15;
}

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.destination-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.destination-card:hover img {
    transform: scale(1.1);
}

.destination-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.destination-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.destination-info p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.destination-info .price {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-red) 100%);
    color: var(--white);
    padding: 0.625rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(193, 39, 45, 0.25);
}

/* Why Us - Feature Cards */
.why-us {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(193, 39, 45, 0.1);
}

.feature-card i {
    font-size: 3.5rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: all 0.4s;
}

.feature-card:hover i {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.9375rem;
}

/* CTA Section - Premium */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.cta-content h2 br {
    display: none;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-content p br {
    display: none;
}

/* Footer - Premium Dark */
.footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(193, 39, 45, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
}

.footer-section h3 {
    font-size: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Modal - Premium */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    position: relative;
    margin: 2rem auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

/* 모달 스크롤바 빨간색으로 */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-red) 100%);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-red) 0%, #a21d23 100%);
}

.modal-close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-gray);
}

.modal-close:hover {
    color: var(--primary-red);
    background: rgba(193, 39, 45, 0.1);
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 800;
}

/* Form Styles - Premium */
.consult-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--white);
}

.form-group select:not(.custom-select) {
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:not(.custom-select):focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(193, 39, 45, 0.1);
}

.checkbox-group label {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-red);
}

/* Custom Select Styles */
.custom-select-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

/* 커스텀 select wrapper 안의 원본 select 숨기기 */
.custom-select-wrapper select {
    display: none !important;
}

.form-group .custom-select-wrapper select.custom-select,
.custom-select-wrapper select.custom-select,
select.custom-select {
    width: 100% !important;
    min-height: 50px !important;
    padding: 1rem 3.5rem 1rem 1rem !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c1272d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.25rem center !important;
    background-size: 20px !important;
    cursor: pointer !important;
    display: block !important;
    line-height: 1.5 !important;
}

.form-group .custom-select-wrapper select.custom-select:hover,
.custom-select-wrapper select.custom-select:hover,
select.custom-select:hover {
    border-color: #c1272d !important;
    transform: translateY(-2px);
}

.form-group .custom-select-wrapper select.custom-select:focus,
.custom-select-wrapper select.custom-select:focus,
select.custom-select:focus {
    outline: none !important;
    border-color: #c1272d !important;
    box-shadow: 0 0 0 4px rgba(193, 39, 45, 0.08) !important;
    transform: translateY(-2px);
}

select.custom-select option {
    padding: 0.75rem;
    background: #ffffff;
    color: #1f2937;
}

.select-arrow {
    display: none !important;
}

.custom-select:focus + .select-arrow {
    color: var(--primary-red);
    transform: translateY(-50%) rotate(180deg);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .destinations-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-form {
        grid-template-columns: 0.7fr 0.8fr 2.2fr auto;
    }

    .search-btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 85px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 85px);
        background: var(--dark-bg);
        transition: left 0.3s;
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 2rem;
        gap: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 1.25rem 0;
    }

    .hero {
        height: 80vh;
        min-height: 600px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .quick-links-grid,
    .destinations-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        padding: 2rem 1.5rem;
    }

    .search-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .search-title i {
        margin-bottom: 0.5rem;
    }

    .search-title-break {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
    }

    .container {
        padding: 0 20px;
    }
}

/* Floating Kakao Button */
.floating-kakao {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #FEE500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
}

.floating-kakao:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.floating-kakao svg {
    width: 32px;
    height: 32px;
}

.floating-kakao::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: #FEE500;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: kakao-pulse 2s infinite;
    z-index: -1;
}

@keyframes kakao-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Responsive line breaks */
.mobile-br {
    display: none;
}

@media (max-width: 768px) {
    .mobile-br {
        display: block;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Alert */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.custom-alert-overlay.active {
    display: flex;
}

.custom-alert {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: alertPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes alertPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.custom-alert-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.custom-alert-icon.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.custom-alert-icon.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.custom-alert-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.custom-alert-message {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.custom-alert-info {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.custom-alert-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.custom-alert-info-row:last-child {
    border-bottom: none;
}

.custom-alert-info-label {
    font-weight: 600;
    color: #6b7280;
}

.custom-alert-info-value {
    font-weight: 600;
    color: #1f2937;
}

.custom-alert-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.custom-alert-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    max-width: 150px;
}

.custom-alert-btn.primary {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.custom-alert-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.custom-alert-btn.secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.custom-alert-btn.secondary:hover {
    background: #e5e7eb;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: #4b5563;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Form Select & Date Input Customization */
.form-group select:not(.custom-select) {
    accent-color: #ef4444;
}

/* 모든 브라우저에서 option 스타일링 시도 */
.form-group select:not(.custom-select) option {
    padding: 10px;
    background-color: white;
    color: #1f2937;
}

.form-group select:not(.custom-select) option:checked,
.form-group select:not(.custom-select) option:checked:hover,
.form-group select:not(.custom-select) option[selected] {
    background: #ef4444 !important;
    background-color: #ef4444 !important;
    background-image: none !important;
    color: white !important;
    box-shadow: 0 0 10px 100px #ef4444 inset !important;
}

.form-group select:not(.custom-select) option:hover {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    box-shadow: 0 0 10px 100px #fee2e2 inset !important;
}

/* Firefox 전용 */
@supports (-moz-appearance: none) {
    .form-group select:not(.custom-select) option:checked {
        background: #ef4444 !important;
        color: white !important;
    }
}

/* Chrome/Edge 전용 - datalist 스타일 차용 */
@supports selector(::-webkit-calendar-picker-indicator) {
    .form-group select:not(.custom-select) option:checked {
        background: linear-gradient(#ef4444, #ef4444) !important;
        color: white !important;
    }
}

/* Date input customization */
.form-group input[type="date"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    accent-color: #ef4444;
    color-scheme: light;
    display: block;
}

.form-group input[type="date"]:hover {
    border-color: #c1272d;
}

.form-group input[type="date"]:focus {
    outline: none;
    border-color: #c1272d;
    box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.1);
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(27%) sepia(85%) saturate(3151%) hue-rotate(346deg) brightness(92%) contrast(93%);
}

.form-group input[type="date"]::-webkit-datetime-edit {
    color: #1f2937;
}

.form-group input[type="date"]:focus::-webkit-datetime-edit {
    color: #ef4444;
}

/* Webkit scrollbar for select dropdown */
.form-group select:not(.custom-select)::-webkit-scrollbar {
    width: 8px;
}

.form-group select:not(.custom-select)::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.form-group select:not(.custom-select)::-webkit-scrollbar-thumb {
    background: #ef4444;
    border-radius: 4px;
}

.form-group select:not(.custom-select)::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

/* Custom Select Dropdown - 홈 검색창 스타일 적용 */
.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.custom-select-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.custom-select-trigger.placeholder {
    color: #9ca3af;
}

.custom-select-trigger:hover {
    border-color: var(--primary-red);
}

.custom-select-trigger.active {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(193, 39, 45, 0.08);
}

.custom-select-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #6b7280;
    transition: transform 0.3s;
    margin-left: 10px;
}

.custom-select-trigger.active .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    max-height: 320px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.custom-select-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dark);
    font-size: 1rem;
}

.custom-select-option:first-child {
    border-radius: 8px 8px 0 0;
}

.custom-select-option:last-child {
    border-radius: 0 0 8px 8px;
}

.custom-select-option:hover {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    color: var(--primary-red);
    font-weight: 600;
}

.custom-select-option.selected {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    font-weight: 700;
}

.custom-select-options::-webkit-scrollbar {
    width: 8px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}


/* 일반 select 스타일 */
select.custom-select,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c1272d' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

select.custom-select:hover,
.form-group select:hover {
    border-color: #c1272d;
}

select.custom-select:focus,
.form-group select:focus {
    outline: none;
    border-color: #c1272d;
    box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.1);
}

/* Legal Modal (Privacy Policy & Terms) */
.legal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.legal-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.legal-modal {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: all 0.3s;
}

.legal-modal-overlay.active .legal-modal {
    transform: scale(1);
}

.legal-modal-header {
    padding: 2rem;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-modal-header h2 {
    font-size: 2rem;
    color: var(--primary-red);
    margin: 0;
}

.legal-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: all 0.3s;
}

.legal-modal-close:hover {
    color: var(--primary-red);
    transform: rotate(90deg);
}

.legal-modal-content {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.legal-modal-content h1 {
    display: none;
}

.legal-modal-content h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-red);
}

.legal-modal-content h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.legal-modal-content p,
.legal-modal-content li {
    line-height: 1.8;
    color: #555;
    margin-bottom: 0.8rem;
}

.legal-modal-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-modal-content::-webkit-scrollbar {
    width: 8px;
}

.legal-modal-content::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.legal-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .legal-modal-header {
        padding: 1.5rem;
    }

    .legal-modal-header h2 {
        font-size: 1.5rem;
    }

    .legal-modal-content {
        padding: 1.5rem;
    }

    .legal-modal-content h2 {
        font-size: 1.25rem;
    }

    .legal-modal-content h3 {
        font-size: 1.1rem;
    }

    /* CTA 섹션 텍스트 줄바꿈 */
    .cta-content h2 br {
        display: block;
    }

    .cta-content p br {
        display: block;
    }

    /* 플로팅 카카오톡 버튼 모바일 */
    .floating-kakao {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .floating-kakao svg {
        width: 28px;
        height: 28px;
    }
}

