:root {
    /* --travel-blue: #1976d2; */

    --travel-blue: #159c98;
    --travel-blue-light: rgba(25, 118, 210, 0.1);
    --travel-teal: #20c997;
    --travel-teal-light: rgba(32, 201, 151, 0.1);
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
}

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

body {
    background-color: #f5f7fb;
    color: var(--gray-800);
    line-height: 1.5;
}

/* Layout */
.travel-app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 350px;
    background: linear-gradient(to bottom right, rgba(25, 118, 210, 0.1), rgba(32, 201, 151, 0.1));
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.6s ease-out;
}

.sidebar-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--travel-blue);
    margin-bottom: 0.5rem;
}

.sidebar-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-600);
}

.sidebar-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.sidebar-step {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar-step.current {
    background-color: white;
    box-shadow: var(--shadow-md);
    /* border-left: 4px solid var(--travel-teal); */
    border-left: 4px solid #6447d1;
    /* color: var(--travel-blue); */
    color: #6447d1;
}

.sidebar-step.completed {
    background-color: var(--travel-blue-light);
    color: var(--gray-600);
}

.sidebar-step.upcoming {
    color: var(--gray-400);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.sidebar-step.current .step-number,
.sidebar-step.completed .step-number {
    /* background-color: var(--travel-blue); */
    /* background-color: #ff9248; */
    background-color: black;
    color: white;
}

.sidebar-step.upcoming .step-number {
    background-color: var(--gray-200);
    color: var(--gray-500);
}

.step-checkmark {
    width: 1rem;
    height: 1rem;
}

.step-icon {
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
}

.step-text {
    font-weight: 500;
}

.sidebar-help {
    margin-top: 2.5rem;
    background-color: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.help-header {
    display: flex;
    align-items: center;
    /* color: var(--travel-blue); */
    color: #6447d1;
    margin-bottom: 0.75rem;
}

.help-header .icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

.help-header h3 {
    font-weight: 500;
}

.sidebar-help p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.help-phone {
    display: block;
    /* color: var(--travel-blue); */
    color: #6447d1;
    font-weight: 500;
    text-decoration: none;
}

.help-phone:hover {
    text-decoration: underline;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1rem;
    margin-left: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(/static/web/images/bg.png);

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

}

.card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 800px;
    overflow: hidden;
}

/* Progress Bar */
.progress-container {
    height: 0.5rem;
    background-color: var(--gray-200);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    /* background: linear-gradient(to right, var(--travel-blue), var(--travel-teal)); */
    background: #6447d1;
    transition: width 0.3s ease;
}

/* Steps Container */
.steps-container {
    padding: 2rem;
    position: relative;
}

/* Step Styles */
.step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step.active {
    display: block;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-header .icon {
    width: 1.5rem;
    height: 1.5rem;
    /* color: var(--travel-blue); */
    color: #6447d1;
    margin-right: 0.75rem;
}

.step-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    /* color: var(--travel-blue); */
    color: #6447d1;
}

/* Country Grid */
.country-grid,
.destination-grid,
.travel-mode-grid,
.travel-companion-grid,
.experience-grid,
.accommodation-grid,
.travel-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.country-card,
.destination-card,
.travel-mode-card,
.travel-companion-card,
.experience-card,
.accommodation-card,
.travel-type-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow);
    animation: scaleIn 0.5s ease;
}

.country-card:hover,
.destination-card:hover,
.travel-mode-card:hover,
.travel-companion-card:hover,
.experience-card:hover,
.accommodation-card:hover,
.travel-type-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 160px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-content {
    padding: 1rem;
    background-color: white;
    text-align: center;
}

.card-content h3 {
    font-weight: 500;
    font-size: 1.125rem;
}

.selected-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--travel-blue-light);
    /* color: var(--travel-blue); */
    color: #6447d1;
    font-size: 0.75rem;
    border-radius: var(--radius-full);
    padding: 0.25rem 0.75rem;
    margin-top: 0.5rem;
}

.selected-badge svg {
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.25rem;
}

.card.selected {
    border: 2px solid var(--travel-blue);
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

/* Notice Box */
.notice-box {
    background-color: var(--gray-100);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    color: var(--gray-500);
    grid-column: 1 / -1;
}

/* Form Styles */
.date-select-container,
.travelers-container,
.personal-details-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    background-color: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    animation: fadeInUp 0.5s ease;
}

.form-section label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--travel-blue);
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-with-icon .form-input {
    padding-left: 2.25rem;
}

.form-note {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.duration-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Counter Input */
.counter-input {
    display: flex;
    align-items: center;
}

.counter-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-300);
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.minus-btn {
    border-radius: var(--radius) 0 0 var(--radius);
}

.plus-btn {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.counter-btn:hover {
    background-color: var(--gray-100);
}

.counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.counter-btn svg {
    width: 1rem;
    height: 1rem;
    stroke: var(--gray-500);
}

.counter-value {
    width: 4rem;
    height: 2.5rem;
    border-top: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.125rem;
}

/* Guide Preference */
.guide-preference {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.guide-option {
    position: relative;
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.guide-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.guide-option .option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.guide-option:hover {
    border-color: var(--gray-300);
}

.guide-option input:checked+.option-content {
    background-color: var(--travel-blue-light);
}

.guide-option input:checked+.option-content+.option-content {
    color: var(--travel-blue);
}

.guide-option input:checked~.option-content {
    border-color: var(--travel-blue);
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    background-color: var(--travel-blue-light);
    border: 1px solid rgba(25, 118, 210, 0.2);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
}

.info-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
    margin-right: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--travel-blue);
}

.info-box p {
    font-size: 0.875rem;
    color: var(--gray-700);
}

/* Navigation Buttons */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.prev-btn,
.next-btn,
.submit-btn {
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.prev-btn {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.prev-btn:hover:not(:disabled) {
    background-color: var(--gray-300);
}

.next-btn,
.submit-btn {
    /* background: linear-gradient(to right, var(--travel-blue), var(--travel-teal)); */
    color: white;
    background: #6447d1;
}

.next-btn:hover,
.submit-btn:hover {
    opacity: 0.9;
}

.prev-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.toast {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 0.5rem;
    display: flex;
    min-width: 250px;
    max-width: 350px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    padding: 1rem;
    display: flex;
    align-items: center;
}

.toast-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4caf50;
    margin-right: 0.75rem;
}

.checkmark {
    width: 1rem;
    height: 1rem;
    stroke: white;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--gray-700);
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .travel-app {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem;
        max-height: 300px;

    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .sidebar-steps {
        display: none;
    }

    .sidebar-help {
        display: none;
    }
}

@media (max-width: 768px) {

    .country-grid,
    .destination-grid,
    .travel-mode-grid,
    .travel-companion-grid,
    .experience-grid,
    .accommodation-grid,
    .travel-type-grid {
        grid-template-columns: 1fr;
    }

    .duration-inputs {
        grid-template-columns: 1fr;
    }

    .guide-preference {
        grid-template-columns: 1fr;
    }

    .step-header h2 {
        font-size: 1.25rem;
    }

    .steps-container {
        padding: 1rem;
    }

    .sidebar-title {
        font-size: 1.5rem;
    }
}


/* Custom styling for the date input */
.date-input-container {
    position: relative;
    width: 100%;
}

.date-picker {
    padding-right: 30px;
    /* Make room for the calendar icon */
    width: 100%;
    box-sizing: border-box;
}

.calendar-trigger {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1;
}

/* Ensure the flatpickr calendar is visible on mobile */
.flatpickr-calendar {
    box-shadow: 0 3px 13px rgba(0, 0, 0, 0.08);
}

/* Add these styles to your existing CSS */
.date-picker::placeholder {
    opacity: 1 !important;
    color: #757575;
}

/* Fix for some mobile browsers */
.date-picker::-webkit-input-placeholder {
    opacity: 1 !important;
    color: #757575;
}

.date-picker:-moz-placeholder {
    opacity: 1 !important;
    color: #757575;
}