:root {
    --primary-color: #008080;
    /* Teal for Travel */
    --accent-blue: #005a5a;
    /* Darker Teal */
    --header-bg: #e0f2f1;
    /* Light Teal for Header */
    --card-bg: #ffffff;
    /* Clean white for Cards */
    --bg-light: #f4f7f6;
    /* Soft Gray-Green background */
    --text-main: #2c3e50;
    /* Dark Blue-Gray for text */
    --text-dim: #7f8c8d;
    /* Medium Gray for descriptions */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --border-radius: 16px;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

.background-overlay {
    background: radial-gradient(circle at top right, rgba(0, 128, 128, 0.05) 0%, transparent 70%);
    position: fixed;
    inset: 0;
    z-index: -1;
}

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

header {
    background-color: var(--header-bg);
    padding: 60px 0;
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.subtitle {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dim);
    letter-spacing: 2px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 128, 128, 0.05);
}

.intro-card {
    border-left: 8px solid var(--primary-color);
    font-size: 1.1rem;
    color: var(--text-dim);
    background: linear-gradient(to right, #ffffff, #f0fdfa);
}

/* Form Styles */
.form-group-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

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

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 14px;
    background: #fdfdfd;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.1);
    background: #ffffff;
}

/* Radio Group */
.mode-selection {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #edf2f7;
}

.radio-group {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 14px 22px;
    border-radius: 14px;
    cursor: pointer;
    border: 2px solid #edf2f7;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
    user-select: none;
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: var(--primary-color);
    background: #f0fdfa;
}

.radio-label:has(input:checked),
.checkbox-label:has(input:checked) {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
}

.radio-label input,
.checkbox-label input {
    display: none;
}

/* Checkbox specific spacing */
.checkbox-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.checkbox-label {
    padding: 10px 18px;
    /* Slightly smaller for checkboxes */
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 20px 60px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.2);
    width: 100%;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 128, 128, 0.3);
    background: var(--accent-blue);
}

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

.result-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #edf2f7;
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-dim);
    border: 2px solid #edf2f7;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Result Card */
.result-header {
    border-bottom: 4px solid var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.result-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-family: 'Outfit', sans-serif;
}

.result-content {
    background: #f8fafc;
    padding: 35px;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.8;
}

.result-content strong {
    color: var(--primary-color);
}

/* Loading Section */
.loading-card {
    text-align: center;
    padding: 60px 20px;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader {
    width: 60px;
    height: 60px;
    border: 6px solid #edf2f7;
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.typing-text {
    font-style: italic;
    color: var(--text-dim);
    min-height: 24px;
}

/* Sidebar Menu Tweaks */
#menu-btn {
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 40px 0;
    background: #fff;
    border-top: 1px solid #edf2f7;
}

.hidden {
    display: none !important;
}

/* Utility for Geo button */
#geoBtn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 25px 20px;
    }

    .btn-primary {
        padding: 16px 30px;
        font-size: 1.1rem;
    }

    .result-content {
        padding: 20px;
        font-size: 1rem;
    }
}

/* Carousel Utilities */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.animate-fade-in {
    animation: fade-in 0.5s ease-out forwards;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    /* Increased z-index */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    opacity: 0.8;
    /* Make them visible by default for now */
    color: var(--primary-color);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.hotel-carousel-wrapper:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn.prev {
    left: 4px;
}

/* Move inside slightly */
.carousel-btn.next {
    right: 4px;
}

/* Move inside slightly */

@media (max-width: 768px) {
    .carousel-btn {
        width: 28px;
        height: 28px;
        border-width: 1px;
        opacity: 0.95;
    }
    .carousel-btn.prev { left: 4px; }
    .carousel-btn.next { right: 4px; }
}

/* Agent Help Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.agent-desc-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f4f8;
}

.agent-desc-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.agent-name-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.tag-luxury { background: #fee2e2; color: #ef4444; }
.tag-adventure { background: #ffedd5; color: #f59e0b; }
.tag-local { background: #dcfce7; color: #10b981; }
.tag-go { background: #e0f2fe; color: #0ea5e9; }