﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --primary-bg-color: lightcyan;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42N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Zlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.reset-container {
    margin: 0 auto;
    padding: 20px 0px 0px;
}

.control-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 0px 0px 0px;
}

/* ✅ Apply background color to all major sections */
.control-wrapper, .reset-container, .step-content {
    background: var(--primary-bg-color) !important;
    padding: 10px;
    border-radius: 8px;
}

.control-header {
    text-align: center;
}

.form-group {
    margin-bottom: 1em;
}

.form-section {
    margin-top: 20px;
}

.sf-icon-shopping-cart_01-:before {
    content: "\e710";
}

.sf-icon-check:before {
    content: "\e715";
}

@font-face {
    font-family: 'Default';
    font-weight: normal;
    font-style: normal;
}

[class^="sf-icon-"], [class*=" sf-icon-"] {
    font-family: 'Default' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ✅ Apply background color to stepper */
#linear-stepper {
    background: var(--primary-bg-color) !important;
    border-radius: 8px;
    width: 100%
}

#backToTopFab {
    display: none;
}

#backToSearchFab {
    display: none;
}

/* ✅ Apply background color to all major sections */
#MyForm,
.control-wrapper,
.reset-container,
.e-list-template,
.clickable-card,
.cabin-card {
    background: var(--primary-bg-color) !important;
    border-radius: 8px;
}

#MyForm {
    background: var(--primary-bg-color) !important;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ✅ Apply background to labels */
.example-label {
    display: inline-block;
    background: var(--primary-bg-color) !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* ✅ Ensure consistent background for ListView */
.e-list-template {
    background-color: var(--primary-bg-color) !important;
    border-radius: 8px;
    padding: 10px;
}

/* ✅ Apply background color inside cards */
.clickable-card .e-card-header,
.clickable-card .e-card-content {
    background: var(--primary-bg-color) !important;
}

/* ✅ Keep ListView header styling */
.e-listview .e-list-header {
    font-size: 18px;
}

/* ✅ Keep form styling */
/* ✅ Apply background to input fields */
.sf-numerictextbox,
.sf-daterangepicker,
.clickable-card .sf-datepicker,
.clickable-card .sf-numerictextbox {
    width: 100% !important;
    background: var(--primary-bg-color) !important;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 2fr; /* First column (label) is smaller */
    gap: 10px 15px;
    align-items: center;
    padding: 10px;
}

/* ✅ Labels: Right-aligned */
.grid-item.label {
    text-align: right;
    font-weight: bold;
}

/* ✅ Values: Left-aligned */
.grid-item.value {
    text-align: left;
}

/* ✅ Side-by-Side Inputs */
.input-row {
    display: flex;
    gap: 10px; /* Space between input fields */
    justify-content: center; /* Center horizontally */
    width: 100%;
}

.grid-heading {
    font-size: 1.2rem; /* Slightly larger text */
    font-weight: bold; /* Make it stand out */
    padding: 8px 12px; /* Proper spacing */
    border-radius: 6px; /* Soft edges */
    text-align: center; /* Center the header text */
    border-bottom: 2px solid rgba(0, 123, 255, 0.3); /* Subtle underline */
}


/* ✅ Ensure Back & Continue buttons are aligned properly */
.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px;
}

/* ✅ Keep button styling */
.back-button,
.submit-btn {
    background-color: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #007bff;
}

    .back-button:hover,
    .submit-btn:hover {
        text-decoration: underline;
    }

/* ✅ Maintain correct ListView item height */
.clickable-card {
    height: 380px; /* 🔥 This was mistakenly removed before, now it stays */
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* ✅ Ensure hover effect remains */
    .clickable-card:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

.card-image {
    width: 100%; /* Take up full width of parent */
    height: auto; /* Keep image aspect ratio intact */
    max-height: 200px; /* Set a sensible max height */
    object-fit: contain; /* Fit image nicely without cropping */
    margin: 0 auto; /* Center horizontally */
}

.from-to-card,
.cabin-num-card {
    position: relative; /* keep text above image */
    z-index: 2;
}

/* ✅ Keep styling for card title links */
.card-title-link {
    text-decoration: none;
    color: inherit;
    font-size: 1.25rem;
    font-weight: bold;
}

    .card-title-link:hover {
        text-decoration: underline;
        color: #007bff;
    }

/* ✅ Keep Cabin Grid layout (2-column on large, 1-column on mobile) */
.cabin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 15px;
    padding: 10px;
}

/* ✅ Maintain styling for cabin cards */
.cabin-card {
    background: var(--primary-bg-color) !important;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* ✅ Keep checkboxes properly aligned */
.checkbox-container {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px;
}

#payment-element {
    width: 400px;
    max-width: 100%;
    height: 50px;
    padding: 10px;
    border: 2px solid #007bff; /* ✅ Blue border */
    border-radius: 8px;
    background-color: #eef5ff; /* ✅ Light blue background */
    transition: border-color 0.3s;
}

/* ✅ Highlight on focus */
#payment-element:focus, #payment-element:hover {
    border-color: #0056b3;
    background-color: #ddeeff;
}

.payment-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
}

.payment-grid-item {
    padding: 8px;
    border-radius: 4px;
    background: lightcyan;
}

#DiscountFld {
    text-decoration: line-through;
    color: red; /* Optional: Change color to red for more visibility */
}

.payment-header {
    text-align: center;
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.coupon-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.apply-coupon-btn {
    background: #4CAF50;
    color: white;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 14px;
}

.apply-coupon-btn:hover {
    background: #45a049;
}

.confirmation-container {
    text-align: center;
    padding: 20px;
    border: 2px solid #4CAF50;
    background-color: #e8f5e9;
    border-radius: 8px;
    margin-top: 20px;
    max-width: 600px;
    margin: auto;
}

    .confirmation-container h2 {
        color: #2E7D32;
    }

.confirmation-details {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .confirmation-details p {
        font-size: 16px;
        margin: 5px 0;
    }

.info-link {
    color: #007bff;
    font-weight: bold;
    text-decoration: underline;
}

    .info-link:hover {
        color: #0056b3;
    }

@media (max-width: 768px) {
    /* Limit popup dimensions */
    body .e-daterangepicker.e-popup {
        width: 90% !important; /* Slight margin from edges */
        max-width: 340px !important; /* Optimal width for single calendar */
        max-height: 90vh !important; /* Limit height to viewport height */
        box-sizing: border-box;
        overflow-y: auto !important; /* Allow vertical scroll if needed */
        overflow-x: hidden;
        top: 5% !important;
        left: 5% !important;
        right: 5% !important;
        margin: auto !important;
    }

    /* Hide second calendar explicitly */
    body .e-daterangepicker .e-right-container {
        display: none !important;
    }

    /* Expand first calendar to take full available space */
    body .e-daterangepicker .e-left-container,
    body .e-daterangepicker .e-left-container .e-calendar {
        width: 100% !important;
    }

    /* Ensure footer buttons remain visible and properly positioned */
    body .e-daterangepicker .e-footer {
        position: sticky;
        bottom: 0;
        background-color: white; /* ensure readability */
        z-index: 10;
        padding: 8px 0;
    }

    /* Prevent calendar days from overflowing horizontally */
    body .e-daterangepicker .e-calendar {
        max-width: 100%;
        box-sizing: border-box;
    }

    body .e-dropdownbase {
        display: block;
        height: 100% !important;
        min-height: 36px;
        position: relative;
        width: 100%;
        margin-left: 1rem;
        max-width: 100% !important; /* Optimal width for single calendar */
        max-height: 100% !important; /* Limit height to viewport height */
    }

    .cabin-grid {
        grid-template-columns: 1fr;
    }

    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
}



