:root {
    --primary: #2196F3;
    --primary-light: #64B5F6;
    --primary-dark: #1976D2;
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-color: #E3F2FD;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Animated Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
}

.shape1 {
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    top: -100px;
    left: -100px;
}

.shape2 {
    width: 250px;
    height: 250px;
    background: #00BCD4;
    bottom: -50px;
    right: -50px;
    opacity: 0.6;
}

/* Header */
.glass-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: none !important;
    padding: 1.2rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative; /* For absolute centering of subtext */
    min-height: 24px;
}

.glass-header h1 {
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
    z-index: 2; /* Keep logo above subtext if they overlap on very small screens */
}

.header-sub {
    position: absolute;
    right: 1.5rem;
    font-family: 'NanumSquareNeo', sans-serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 700; /* Bold for NanumSquareNeo looks premium */
    white-space: nowrap;
    text-align: right;
}

/* Container */
main {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Glassmorphism Box */
.glass-box {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 1.5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 1.5rem;
}

.hero h2 {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.hero .highlight {
    color: var(--primary);
}

.hero p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Booking Section */
.booking-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.26rem; /* 1.2rem * 1.05 = 1.26rem */
    color: var(--primary-dark);
}

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

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group.half {
    flex: 1;
}

label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    font-weight: 800;
}

input, select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

/* Native Validation Styles - Show red border when invalid on submit attempt */
input:invalid, select:invalid, textarea:invalid {
    border-color: #ff4d4d;
}

/* Ensure the focus transition remains smooth even when invalid */
input:invalid:focus, select:invalid:focus, textarea:invalid:focus {
    border-color: #ff4d4d;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.2);
}

/* Button */
.submit-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1rem;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

#statusMessage {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.success-msg {
    background: #E8F5E9;
    color: #2E7D32;
}

.error-msg {
    background: #FFEBEE;
    color: #C62828;
}

/* Address Search Group */
.address-group {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

/* Address & Custom Modal Modals */
#addressLayer, #absentModal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: #ffffff;
    z-index: 1001 !important;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden;
}

#commonLayerBg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
}

/* Custom Modal Inner Styles */
.custom-modal {
    width: 90%;
    max-width: 400px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.modal-header {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center; /* Title centered */
}

.modal-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #1e293b;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.close-modal {
    position: absolute !important;
    right: 15px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    z-index: 99 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    padding: 0 !important;
}

.close-modal:hover {
    background: #f8fafc !important;
    color: #ef4444 !important;
    border-color: #fee2e2 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
}

.close-modal:active {
    transform: translateY(-80%) scale(0.95);
}

.notice-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
}

.notice-box p {
    margin: 4px 0;
}

.consent-area {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.container-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--primary-dark);
    font-weight: 600;
}

#absent_text {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    resize: none;
    font-size: 0.9rem;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

#absent_text:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.search-btn {
    flex-shrink: 0;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.2);
    height: 48px;
}

/* Hero / Sliding Banner */
/* Hero / Sliding Banner */
.banner-container, 
.banner-container div,
.banner-container section {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

.banner-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 25px auto;
    aspect-ratio: 16 / 9;
    border-radius: 0 !important;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 !important;
}

.banner-image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border: none !important;
    outline: none !important;
    z-index: 0;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1); /* Minimal overlay to keep it clean */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    width: 100%;
}

.banner-content h2 {
    font-size: 1.2rem;
    color: inherit !important;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 24px;
    border-radius: 10px;
    background: white;
}

.search-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(33, 150, 243, 0.2);
}

/* Category Selection Tabs */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
    width: 100%;
}

.category-btn {
    flex: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 5px !important;
    min-height: 48px !important;
    border: 1px solid rgba(255,255,255,0.8) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 12px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.category-btn.active {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3) !important;
}

.category-btn:active {
    transform: scale(0.96) !important;
}

/* --- Selected Services List Styles --- */
.selected-services-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selected-service-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    animation: slideIn 0.3s ease-out;
}

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

.service-card-info {
    flex: 1;
}

.service-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

.service-card-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-control {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-number {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    min-width: 20px;
    text-align: center;
}

.remove-svc-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 5px;
}

.remove-svc-btn:active {
    transform: scale(0.9);
}

/* Redundant manual error styles removed in favor of native validation feedback */

