/**
 * /public/tipi-house-prices-public.css
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

 .form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.form-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.form-title:after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: black;
    margin: 15px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
textarea {
    width: calc(100% - 22px);
    padding: 10px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 12px;
    background-color: #fefefe;
}

textarea {
    resize: vertical;
}

input[type='checkbox'] {
    margin-right: 6px;
}

.checkbox-label {
    margin-right: 10px;
    display: inline-block;
}
button#confirm-selection{
    padding: 20px;
}

button {
    padding: 10px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #005177;
}

.price-quote {
    /* margin-top: 20px; */
    margin-bottom: 15px;
    border: 1px solid black;
    border-radius: 9px;
}

.loader {
    text-align: center;
}

.price-content {
    text-align: center;
    font-weight: bold;
}

.house-prices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;

}
.house-prices-table th{
    color:black;
    background-color: white;
}
.house-prices-table td{
    color:white;
    background-color: black;
}

.house-prices-table th,
.house-prices-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.house-prices-table th {
    background-color: #f2f2f2;
}

.current-season {
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
}

.calculation-details {
    text-align: left;
    margin: 15px 0;
}

.price-quote li {
    text-align: left;
}

.content .price-quote ul {
    margin: 0 10px;
    padding: 0 20px 10px;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s linear infinite;
}

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

.path {
    stroke: #333;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
}

.wrapped-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wrapped-group label {
    margin: 0;
    display: inline;
    align-items: center;
}

.wrapped-group input[type='checkbox'] {
    margin-right: 5px;
}

.booking-form-area form{
    font-weight: 500;
}

.currentpricesummary{
    margin-bottom:10px;
}

div#booking-form-area {
    font-weight: 500;
    color: black;
}
div#booking-form-area h2{
    color: black;
}
/* Position tooltip above the calendar day */
.flatpickr-day.flatpickr-disabled[data-tooltip]:hover{
background-color: gray;
}

.flatpickr-day.flatpickr-disabled[data-tooltip] {
    color: #cccccc;
    position: relative;
    background-color: gray;
    border-radius: 0;
}

.flatpickr-day.flatpickr-disabled[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -25px; /* Adjust this value to position tooltip above */
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    color: white;
    padding: 5px;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 1000; /* Ensure tooltip appears above other elements */
    width: max-content; /* Adjust width to fit content */
}

.flatpickr-day.flatpickr-disabled[data-tooltip]:hover::after,
.flatpickr-day.flatpickr-disabled.hover-simulated::after {
    opacity: 1;
}

.flatpickr-day.nextMonthDay {
    color: #888888 !important;
}

span.flatpickr-day.inRange{
    background-color: rgba(86, 159, 247, .5);
}

.dayContainer .flatpickr-day.flatpickr-disabled {
    position: relative;
    border-radius:0;
    background: #aaaaaa!important; 
    color: black!important;
    opacity: 1;
}

.dayContainer .flatpickr-day.flatpickr-disabled.secondary-calendar {
    background: rgb(172, 175, 154)!important; 
}



.dayContainer .flatpickr-day.flatpickr-disabled span{
    color:black;
}

.flatpickr-day.flatpickr-disabled::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%; /* Adjust to control the line length */
    height: 2px; /* Thickness of the line */
    background-color: #a0a0a0; /* Color of the diagonal line */
    transform: translate(-50%, -50%) rotate(45deg); /* 45-degree rotation for diagonal */
    opacity: 0.8;
    pointer-events: none; /* Prevents the pseudo-element from interfering with hover */
}

/* Disabled field and label style */
.disabled-label {
    color: #999;
    pointer-events: none;
    opacity: 0.6;
}

.loading-label::after {
    content: 'Loading...';
    font-size: 0.9em;
    color: #999;
    margin-left: 8px;
    animation: blink 1s infinite;
}

/* Blink animation for loader text */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
/* Add this CSS */
.flatpickr-day.flatpickr-disabled[title]:hover:after {
    content: attr(title);
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    position: absolute;
    bottom: 20px;
    left: 0;
    white-space: nowrap;
    z-index: 10;
}

.price-quote, .price-content {
    display: block;
    font-size: 18px; /* Adjust font size as needed */
    color: #333; /* Text color */
    padding: 15px;
    background-color: #f1f1f1; /* Background color to distinguish area */
    border-radius: 5px;
    margin-top: 15px;
}

/* Optional full border styling for overlapping start and end */
.startdate.enddate {
    border: 3px solid #569ff7; /* Complete border if it's both start and end */
}

span.flatpickr-day.startdate, span.flatpickr-day.enddate{
    /* border: 1px solid green; */
    border-radius: 0;
    /* border: 3px solid #569ff7; Complete border if it's both start and end */
}
/* 
span.flatpickr-day.startdate{
    border-left: 3px solid #569ff7; 
    border-top: 3px solid #569ff7;
}
span.flatpickr-day.enddate{
    border-right: 3px solid #569ff7;
    border-bottom: 3px solid #569ff7;
} */

.house-calendar-grid td.unavailable i {
    color: red;
}
.house-calendar-grid td.available i{
    color: green;
}
.house-calendar-container {
    overflow-x: auto;
}

.house-calendar-grid {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 0;
}

.house-calendar-grid th,
.house-calendar-grid td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

/* Styling for the first column to keep it sticky */
.house-calendar-grid th:first-child,
.house-calendar-grid td:first-child {
    position: sticky;
    left: 0;
    background-color: #f2f2f2; /* Adjust the background color to match the table header */
    z-index: 1; /* Ensures the first column appears above other table cells when scrolling */
    box-shadow: 1px 0 5px rgba(0, 0, 0, 0.1); /* Optional shadow to distinguish */
}

/* Additional styling for header row */
.house-calendar-grid th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.house-calendar-grid td.unavailable i {
    color: red;
}
.house-calendar-grid td.available i {
    color: green;
}

.selected-house {
    background-color: #e0f7fa;
}

.date-cell.selected-start,
.date-cell.selected-end {
    background-color: #4caf50;
    color: white;
}

.date-cell.selected-range {
    background-color: #a5d6a7;
}
.date-cell.available::before {
    content: "\f00c"; /* Font Awesome check icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: green;
    margin-right: 5px;
}

.date-cell.unavailable::before {
    content: "\f00d"; /* Font Awesome times icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: red;
    margin-right: 5px;
}


.house-calendar-grid tbody tr:nth-child(odd) {
    background-color: #c5c4c4; /* Light gray for odd rows */
}

.house-calendar-grid tbody tr:nth-child(even) {
    background-color: #ffffff; /* White for even rows */
}

/* Optional: Add a hover effect for better user experience */
.house-calendar-grid tbody tr:hover {
    background-color: rgb(46, 216, 246);/* Light blue for hover */
}

div#house-calendar-container {
    color: black;
    margin-bottom:30px;
}

#submit-booking {
    padding: 20px;
    margin: 16px 0;
}

.booking-form-table, .booking-form-table th, .booking-form-table td, .booking-form-table tr{
    border: 0;
}

.booking-form-table input, .booking-form-table select{
    width: 100%;
}