:root {
    --primary: #015f80;       /* Deep Ocean Blue */
    --secondary: #028090;     /* Teal Blue */
    --accent: #00a896;        /* Fresh Aqua */
    --gold: #f4c542;          /* Warm Golden Yellow */
    --light-gold: #ffd166;    /* Soft Sunlit Gold */
    --dark-gold: #c59b20;     /* Rich Deep Gold */
    --light: #f9fafc;         /* Clean Light Background */
    --dark: #2b2b2b;          /* Charcoal for Text */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --border-radius-sm: 6px;
    --border-radius-lg: 14px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
    color: var(--dark);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="rgba(1, 95, 128, 0.03)" d="M10,10 C20,30 40,30 50,10 C60,30 80,30 90,10 C80,30 80,50 90,70 C80,50 60,50 50,70 C40,50 20,50 10,70 C20,50 20,30 10,10 Z"/></svg>');
    background-size: 200px;
    background-repeat: repeat;
    pointer-events: none;
    z-index: -1;
}

.booking-container {
    display: flex;
    max-width: 1150px;
    width: 100%;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 95vh;
    max-height: 800px;
    position: relative;
    border: 1px solid rgba(1, 95, 128, 0.1);
}

.booking-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--gold));
    z-index: 10;
}

.form-section {
    flex: 3;
    padding: 1.8rem;
    overflow-y: auto;
    position: relative;
}

.form-section::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(1, 95, 128, 0.2), transparent);
}

.summary-section {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    color: white;
    position: relative;
    overflow-y: auto;
}

.summary-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="rgba(255,255,255,0.05)" d="M0 0h100v100H0z"/><path fill="rgba(255,255,255,0.07)" d="M0 0h50v50H0z"/></svg>');
    background-size: 30px;
    opacity: 0.3;
}

.form-header {
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.form-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.4rem;
    position: relative;
    display: inline-block;
}

.form-header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.form-header p {
    color: var(--secondary);
    font-size: 0.9rem;
}

.progress-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 1.5rem 0;
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: var(--light);
    width: 100%;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: var(--gold);
    width: 12.5%;
    transition: width 0.3s ease;
}

.progress-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    font-weight: 600;
    font-size: 0.8rem;
    color: white;
    transition: var(--transition);
}

.progress-step.active {
    background: var(--dark-gold);
    border-color: var(--dark-gold);
    color: white;
    box-shadow: 0 0 0 4px rgba(244, 197, 66, 0.2);
}

.progress-step.completed {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.step-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    color: var(--secondary);
    font-weight: 500;
}

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.4rem;
    text-align: center;
}

.step-subtitle {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
    margin-top: 50px;
}

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

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.excursions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.option-card {
    background: white;
    border: 1px solid var(--light);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
}

.option-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.option-card.selected {
    border-color: var(--primary);
    background: rgba(1, 95, 128, 0.03);
}

.option-card.selected::before {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: var(--gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.option-icon {
    font-size: 1.7rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.option-icon img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Specific styling for Step 5 excursion cards */
.excursion-card {
    /* Ensure consistent styling with other option cards */
    background: white;
    border: 1px solid var(--light);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.excursion-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.excursion-card.selected {
    border-color: var(--primary);
    background: rgba(1, 95, 128, 0.03);
}

.excursion-card.selected::before {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: var(--gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Make option-img behave like option-icon for consistency */
.option-img {
    margin-bottom: 0.8rem;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.option-img img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.option-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.option-description {
    font-size: 0.8rem;
    color: var(--secondary);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.option-price {
    font-weight: 700;
    color: var(--dark-gold);
    font-size: 0.9rem;
    margin-top: auto; 
}

.price-tag {
    color: var(--dark-gold);
    font-weight: 700;
    font-size: 0.9rem;
}

.counter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.counter-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: white;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.counter-btn:hover {
    background: var(--primary);
    color: white;
}

.counter-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 50px;
    text-align: center;
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--light);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(1, 95, 128, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border: 1px solid var(--light);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.6rem;
    transition: var(--transition);
    background: white;
}

.checkbox-group:hover {
    border-color: var(--accent);
    background: rgba(0, 168, 150, 0.03);
}

.checkbox-group input {
    margin-right: 0.8rem;
    accent-color: var(--primary);
}

.checkbox-group label {
    flex: 1;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark);
}

.summary-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.summary-subtotal {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0.4rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.summary-item.discount,
.summary-item.tax {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
}

.summary-item.summary-total {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-top: 0.6rem;
    padding: 0.6rem 0;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.3px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--light);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-prev {
    background: var(--light);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-prev:hover {
    background: var(--light);
}

.btn-next {
    background: var(--primary);
    color: white;
}

.btn-confirm {
    background: var(--dark-gold);
    color: white;
}

.days-display {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--border-radius);
    margin-top: 0.8rem;
    position: relative;
    overflow: hidden;
}

.days-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="rgba(1, 95, 128, 0.05)" d="M0 0h20v20H0z"/></svg>');
    background-size: 20px;
    opacity: 0.5;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    color: var(--gold);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-item:hover i {
    color: var(--light-gold);
    transform: scale(1.1);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    body {
        padding: 10px;
        min-height: 100vh;
        height: auto;
    }
    
    .booking-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        max-height: none;
        border-radius: var(--border-radius);
    }
    
    .form-section {
        flex: none;
        padding: 1.2rem;
        overflow-y: visible;
        order: 1; /* Form comes first */
    }
    
    .form-section::after {
        display: none;
    }
    
    .summary-section {
        flex: none;
        order: 2; /* Summary comes second */
        padding: 1.2rem;
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    }
    
    .form-header h1 {
        font-size: 1.4rem;
    }
    
    .form-header p {
        font-size: 0.85rem;
    }
    
    .progress-container {
        margin: 1rem 0;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .progress-step {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .step-label {
        font-size: 0.6rem;
        margin-top: 4px;
    }
    
    .progress-bar {
        display: none;
    }
    
    .form-step.active {
        margin-top: 30px;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .step-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        margin-bottom: 1rem;
    }
    
    .excursions-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        margin-bottom: 1rem;
    }
    
    .option-card {
        padding: 1rem;
    }
    
    .option-icon {
        margin-bottom: 0.6rem;
    }
    
    .option-icon img {
        height: 120px;
    }
    
    .option-title {
        font-size: 0.95rem;
    }
    
    .option-description {
        font-size: 0.75rem;
    }
    
    .option-price {
        font-size: 0.85rem;
    }
    
    .date-inputs {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .counter-container {
        margin: 1rem 0;
    }
    
    .counter-btn {
        width: 36px;
        height: 36px;
    }
    
    .counter-display {
        font-size: 1.3rem;
        min-width: 45px;
    }
    
    .days-display {
        font-size: 1rem;
        padding: 0.8rem;
        margin-top: 0.6rem;
    }
    
    .form-footer {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1.2rem;
        padding-top: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
    }
    
    .summary-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .summary-card h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .summary-item {
        font-size: 0.75rem;
        padding: 0.3rem 0;
    }
    
    .summary-item.summary-subtotal {
        font-size: 0.85rem;
    }
    
    .summary-item.discount,
    .summary-item.tax {
        font-size: 0.7rem;
    }
    
    .summary-item.summary-total {
        font-size: 0.9rem;
    }
    
    .contact-info {
        gap: 0.5rem;
    }
    
    .contact-item {
        font-size: 0.8rem;
    }
    
    .contact-item i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .booking-container {
        border-radius: 8px;
    }
    
    .form-section,
    .summary-section {
        padding: 1rem;
    }
    
    .form-header h1 {
        font-size: 1.2rem;
    }
    
    .progress-step {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
    
    .step-label {
        font-size: 0.55rem;
    }
    
    .option-card {
        padding: 0.8rem;
    }
    
    .option-icon img {
        height: 100px;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .summary-card {
        padding: 0.8rem;
    }
}

/* Landscape mode optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .booking-container {
        max-height: 90vh;
        overflow: hidden;
    }
    
    .form-section {
        overflow-y: auto;
        max-height: 60vh;
        order: 1; /* Ensure form stays first in landscape */
    }
    
    .summary-section {
        max-height: 30vh;
        overflow-y: auto;
        order: 2; /* Ensure summary stays second in landscape */
    }
    
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .excursions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Very small devices */
@media (max-width: 320px) {
    .progress-step {
        width: 22px;
        height: 22px;
    }
    
    .step-label {
        display: none;
    }
    
    .option-card {
        padding: 0.6rem;
    }
    
    .option-icon img {
        height: 80px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .option-card:hover {
        transform: none;
        border-color: var(--light);
    }
    
    .option-card:active {
        transform: scale(0.98);
        border-color: var(--accent);
    }
    
    .counter-btn:active {
        background: var(--primary);
        color: white;
        transform: scale(0.95);
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}