/**
 * OSQ Booking - Frontend Form Styles
 *
 * @package OSQ_Booking
 * @since 1.0.0
 */

/* Booking form container */
.osq-booking-form {
    max-width: 1000px;
    margin: 0 auto;
    font-family: inherit;
}

/* Step Indicator */
.osq-step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    padding: 0 10px;
}

.osq-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    max-width: 100px;
    position: relative;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.osq-step-dot::after {
    content: '';
    position: absolute;
    top: 14px;
    left: calc(50% + 16px);
    width: calc(100% - 32px);
    height: 2px;
    background: #e0e0e0;
}

.osq-step-dot:last-child::after {
    display: none;
}

.osq-step-dot.osq-step-active {
    opacity: 1;
}

.osq-step-dot.osq-step-completed {
    opacity: 0.7;
}

.osq-step-dot.osq-step-completed::after {
    background: #d4af56;
}

.osq-step-dot.osq-step-clickable {
    cursor: pointer;
}

.osq-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.osq-step-active .osq-step-number {
    background: #d4af56;
    color: #fff;
}

.osq-step-completed .osq-step-number {
    background: #d4af56;
    color: #fff;
}

.osq-step-label {
    font-size: 11px;
    color: #888;
    text-align: center;
    white-space: nowrap;
}

.osq-step-active .osq-step-label {
    color: #333;
    font-weight: 600;
}

/* Step Content Layout */
.osq-step-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.osq-steps-container {
    flex: 1;
    min-width: 0;
}

/* Steps */
.osq-step {
    display: none;
}

/* Step Context Header (shows variant info on date step for single-variant tours) */
.osq-step-context {
    padding: 12px 16px;
    background: #f9f7f3;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.osq-step-context-label {
    color: #888;
    margin-right: 6px;
}

.osq-step-context-value {
    font-weight: 600;
    color: #333;
}

/* Step Navigation */
.osq-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    gap: 12px;
}

body .osq-btn-primary,
body .osq-btn-secondary {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    border: none;
}

body .osq-btn-primary {
    background: #d4af56;
    color: #fff;
    margin-left: auto;
    border: none;
}

body .osq-btn-primary:hover {
    background: #c49e45;
    border: none;
}

body .osq-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: none;
}

body .osq-btn-secondary:hover {
    background: #e8e8e8;
    border: none;
}

body .osq-btn-primary:active,
body .osq-btn-secondary:active {
    transform: scale(0.98);
}
.osq-booking-form [type=button]:hover{
    color: #333;
}

/* Price Sidebar */
.osq-price-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.osq-price-sidebar-inner {
    background: #faf9f7;
    border: 1px solid #e8e5e1;
    border-radius: 12px;
    padding: 20px;
}

.osq-price-sidebar-inner h4 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
}

.osq-sidebar-summary {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e5e1;
    font-size: 14px;
    line-height: 1.6;
}

.osq-sidebar-summary > div:empty {
    display: none;
}

.osq-sidebar-price .osq-price-breakdown {
    font-size: 13px;
}

.osq-sidebar-price .osq-price-row {
    padding: 4px 0;
}

.osq-sidebar-price .osq-total {
    font-size: 15px;
    margin-top: 8px;
    padding-top: 10px;
}

/* Summary Section (Step 5) */
.osq-summary-details {
    margin-bottom: 24px;
}

.osq-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.osq-summary-row:last-child {
    border-bottom: none;
}

.osq-summary-label {
    color: #888;
    flex-shrink: 0;
    margin-right: 16px;
}

.osq-summary-value {
    text-align: right;
    font-weight: 500;
    color: #333;
}

/* Confirmation checkbox */
.osq-confirm-booking {
    margin-top: 20px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.osq-confirm-booking .osq-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

/* Form sections */
.osq-form-section {
    margin-bottom: 30px;
    margin-top: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.osq-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.osq-form-section h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
}
.osq-form-section.osq-aeldresagen-section{
    padding-bottom: 0px;
}

/* Variant cards */
.osq-variant-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.osq-variant-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.osq-variant-card:hover {
    border-color: #999;
}

.osq-variant-card.selected {
    border-color: #d4af56;
    box-shadow: 0 0 0 4px rgba(212, 175, 86, 0.2);
}

.osq-variant-card input[type="radio"] {
    display: none;
}

/* Single variant: display-only card (no hover/selection UI) */
.osq-variant-card.osq-variant-single {
    cursor: default;
    border-color: #e0e0e0;
    box-shadow: none;
}

.osq-variant-card.osq-variant-single:hover {
    border-color: #e0e0e0;
}

.osq-variant-image-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 15px;
}

.osq-variant-image-wrapper:hover .osq-variant-image {
    transform: scale(1.05);
}

.osq-variant-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

/* Image count badge */
.osq-image-count-badge {
    position: absolute;
    bottom: 14px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.osq-image-count-badge svg {
    opacity: 0.9;
}

/* Full-width header so the image and calendar columns below it line up at the top */
.osq-variant-header {
    flex: 0 0 100%;
}

.osq-variant-header .osq-variant-name {
    margin-bottom: 4px;
    float: left;
}

.osq-variant-header .osq-variant-period {
    margin-bottom: 0;
    padding-left: 10px;
}

.osq-variant-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.osq-variant-meta, .osq-variant-period {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.osq-variant-difficulty {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e8f5e9;
    color: #2e7d32;
}

.osq-variant-difficulty.osq-difficulty-moderat {
    background: #fff3e0;
    color: #e65100;
}

.osq-variant-difficulty.osq-difficulty-svaer {
    background: #fce4ec;
    color: #c62828;
}

.osq-variant-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.osq-facility-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
}

.osq-facility-badge.osq-highlight {
    background: #e8f5e9;
    color: #2e7d32;
}

.osq-variant-price-modifier {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.osq-variant-price-modifier.positive {
    color: #d32f2f;
}

.osq-variant-price-modifier.negative {
    color: #2e7d32;
}

/* Variant + Calendar Row Layout (merged step 1) */
.osq-variant-calendar-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.osq-variant-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    padding: 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    transition: border-color 0.2s, background-color 0.2s;
}

.osq-variant-row.osq-variant-selected {
    border-color: #d4af56;
    background: #fdf8ec;
}

.osq-variant-info {
    flex: 0 0 400px;
}

/* Variant Image Carousel */
.osq-variant-carousel {
    position: relative;
    width: 100%;
    height: 304px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    cursor: pointer;
}

.osq-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.osq-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.osq-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.osq-carousel-image {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
}

body .osq-carousel-prev,
body .osq-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 0;
}

body .osq-variant-carousel:hover .osq-carousel-prev,
body .osq-variant-carousel:hover .osq-carousel-next {
    opacity: 1;
}

body .osq-carousel-prev { left: 6px; }
body .osq-carousel-next { right: 6px; }

body .osq-carousel-prev:hover,
body .osq-carousel-next:hover {
    background: rgba(0, 0, 0, 0.75);
}

.osq-carousel-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 2;
}

.osq-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s ease;
}

.osq-carousel-dot.active {
    background: #fff;
}

@media (hover: none) {
    .osq-carousel-prev,
    .osq-carousel-next {
        opacity: 0.7;
    }
}

.osq-variant-calendar {
    flex: 1;
    min-width: 280px;
}

/* Inline datepicker inside variant row */
.osq-variant-calendar .ui-datepicker {
    box-shadow: none;
    border: 1px solid #e8e5e1;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    min-width: auto;
}

.osq-variant-calendar .ui-datepicker-inline {
    width: 100%;
    max-width: 380px;
}

/* Variant details toggle */
body .osq-variant-details-toggle {
    display: inline-block;
    background: none;
    border: none;
    color: #d4af56;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 0;
    transition: color 0.2s;
    text-transform: inherit;
}

body .osq-variant-details-toggle:hover,
body .osq-variant-details-toggle:focus,
body .osq-variant-details-toggle:active {
    color: #c49e45;
    background: none;
    border: none;
    box-shadow: none;
    outline: none;
    text-transform: inherit;
}

.osq-variant-details-toggle.osq-details-open {
    color: #b08d3e;
}

/* "Se detaljer" sits on the same line as guests/difficulty, pushed to the right */
.osq-variant-meta .osq-variant-details-toggle {
    margin-left: auto;
    padding: 0;
    white-space: nowrap;
}

.osq-variant-details-panel {
    flex: 0 0 100%;
    margin-top: 0;
    padding: 12px;
    background: none;
    border-radius: 6px;
    font-size: 13px;
}

.osq-detail-accom {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e5e1;
}

.osq-detail-accom:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.osq-detail-accom p {
    margin: 4px 0;
    color: #666;
}

.osq-detail-address {
    font-style: italic;
}

.osq-detail-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.osq-variant-badges {
    margin-top: 6px;
    margin-bottom: 4px;
}

/* Modern jQuery UI Datepicker Override */
body .ui-datepicker {
    font-family: inherit;
    padding: 16px;
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: auto;
    min-width: 300px;
}

body .ui-datepicker-header {
    background: none;
    border: none;
    padding: 0 0 12px 0;
    margin-bottom: 8px;
    border-bottom: 0px solid #eee;
}

body .ui-datepicker-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

body .ui-datepicker .ui-datepicker-prev,
body .ui-datepicker .ui-datepicker-next {
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
}

body .ui-datepicker .ui-datepicker-prev:hover,
body .ui-datepicker .ui-datepicker-next:hover {
    background: #e0e0e0;
}

body .ui-datepicker .ui-datepicker-prev {
    left: 0;
}

body .ui-datepicker .ui-datepicker-next {
    right: 0;
}

body .ui-datepicker .ui-datepicker-prev span,
body .ui-datepicker .ui-datepicker-next span {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -4px;
    margin-top: -4px;
    background: none;
    text-indent: 0;
    width: 8px;
    height: 8px;
    border: solid #666;
    border-width: 0 2px 2px 0;
    color: transparent !important;
}

body .ui-datepicker .ui-datepicker-prev span {
    transform: rotate(135deg);
    margin-left: -2px;
}

body .ui-datepicker .ui-datepicker-next span {
    transform: rotate(-45deg);
    margin-left: -6px;
}
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus, .ui-button:hover, .ui-button:focus {
    border: 0px solid #cccccc !important;
}

.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus, .ui-button:hover, .ui-button:focus{
    color: rgba(255,255,255,0);
}

body .ui-datepicker table {
    font-size: 14px;
    margin: 0;
}

body .ui-datepicker th {
    padding: 8px 4px;
    font-weight: 500;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
}

body .ui-datepicker td {
    padding: 0px;
}

body .ui-datepicker td span,
body .ui-datepicker td a {
    padding: 10px;
    text-align: center;
    border-radius: 40px;
    transition: all 0.15s;
    display: block;
    border: none;
    background: none;
    width: 40px;
    height: 40px;
    border: none !important;
}

body .ui-datepicker td a:hover {
    background: #f0f0f0;
}

body .ui-datepicker td a.ui-state-active {
    background: #d4af56 !important;
    color: #fff;
    font-weight: 600;
}

body .ui-datepicker td a.ui-state-highlight {
    background: #e8f5e9;
    color: #2e7d32;
}
body .ui-widget-content td a.ui-state-default{
    background: transparent;
}

body .ui-datepicker td.ui-state-disabled span {
    color: #ccc;
    z-index: 999;
    position: inherit;
    background: transparent;
}

body .ui-datepicker td.osq-blocked span,
body .ui-datepicker body td.ui-datepicker-unselectable span {
    color: #ccc;
    text-decoration: line-through;
}

body .ui-datepicker-today a {
    background: #fff3e0 !important;
    color: #e65100 !important;
}

body .ui-datepicker-today a.ui-state-active {
    background: #2e7d32 !important;
    color: #fff !important;
}

/* Date range highlighting - Selected range */
body .ui-datepicker td.osq-range-start a,
body .ui-datepicker td.osq-range-start a:hover {
    background: #d4af56 !important;
    color: #fff !important;
    border-radius: 40px !important;
    font-weight: 600;
    z-index: 10;
    position: relative;
}
td.osq-range-middle{
    position: relative;
}
body .ui-datepicker td.osq-range-middle a,
body .ui-datepicker td.osq-range-middle a:hover {
    background: rgba(212, 175, 86, 0) !important;
    color: #1a1a1a !important;
    border-radius: 0 !important;
    z-index: 10;
    position: relative;
}
body .ui-datepicker td.osq-range-middle:after {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    content: "";
    height: 100%;
    position: absolute;
    top: 0;
    z-index: 0;
    background: #f4ebd5;
    left: calc(100% * -0.5);
    width: 200%;
    left: -50%;
}
body .ui-datepicker td.osq-range-middle:last-child:after {
    right: 0;
    width: calc(100% + 100% * 0.5);
}

body .ui-datepicker td.osq-range-middle:first-child:after {
    left: 0;
    width: calc(100% + 100% * 0.45);
}
body .ui-datepicker td.osq-range-end a,
body .ui-datepicker td.osq-range-end a:hover, body .ui-datepicker td.osq-range-end span, body .ui-datepicker td.osq-range-end span:hover {
    background: rgb(238 223 187) !important;
    color: #1a1a1a !important;
    border-radius: 40px !important;
    font-weight: 500;
    z-index: 10;
    position: relative;
}

/* Date range highlighting - Hover preview */
body .ui-datepicker td.osq-hover-start a {
    background: rgba(212, 175, 86, 0.6) !important;
    color: #1a1a1a !important;
    border-radius: 40px 0 0 40px !important;
}

body .ui-datepicker td.osq-hover-middle a {
    background: rgba(212, 175, 86, 0.15) !important;
    color: #1a1a1a !important;
    border-radius: 0 !important;
}

body .ui-datepicker td.osq-hover-end a {
    background: rgba(212, 175, 86, 0.3) !important;
    color: #1a1a1a !important;
    border-radius: 0 40px 40px 0 !important;
}

/* Blocked dates - stay would overlap blocked period */
body .ui-datepicker td.osq-stay-blocked span,
body .ui-datepicker td.osq-stay-blocked a {
    color: #bbb !important;
    cursor: not-allowed;
}

.osq-date-range-display {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
    border-radius: 10px;
    border: 1px solid #e8e5e1;
}

.osq-date-range-variant {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e5e1;
}

.osq-date-range-dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.osq-date-arrival,
.osq-date-departure {
    text-align: center;
}

.osq-date-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 4px;
}

.osq-date-arrival,
.osq-date-departure {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.osq-date-arrow {
    font-size: 20px;
    color: #d4af56;
    font-weight: 300;
}

.osq-nights-count {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8e5e1;
    font-size: 14px;
    color: #666;
}

.osq-extra-night-toggle {
    margin-top: 15px;
}

.osq-extra-night-toggle label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.osq-extra-night-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Guest selector */
.osq-guest-selectors {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.osq-guest-selector {
    flex: 1;
    min-width: 150px;
}

.osq-guest-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.osq-number-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.osq-number-input button {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.osq-number-input button:hover {
    background: #f5f5f5;
}

.osq-number-input button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.osq-number-input input {
    width: 60px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
}

.osq-guest-help {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* Extras selector */
.osq-extras-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.osq-extra-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.osq-extra-item:hover {
    border-color: #999;
}

.osq-extra-item.selected {
    border-color: #2e7d32;
    background: #f9fff9;
}
:where(.wp-site-blocks :focus) {
    outline-width: 0px !important;
}
.osq-extra-item input[type="checkbox"] {
    margin-top: 3px;
}

.osq-extra-content {
    flex: 1;
}

.osq-extra-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.osq-extra-description {
    font-size: 13px;
    color: #666;
}

.osq-extra-price {
    font-weight: 500;
    white-space: break-spaces;
    font-size: 16px;
    padding-top: 6px;
}

/* Price summary */
.osq-price-summary {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}

.osq-price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 0px solid #eee;
}

.osq-price-row:last-child {
    border-bottom: none;
}

.osq-price-row.osq-discount {
    color: #2e7d32;
}

.osq-price-row.osq-total {
    font-size: 18px;
    font-weight: 600;
    border-top: 2px solid #ddd;
    padding-top: 15px;
    margin-top: 10px;
}

.osq-price-loading {
    text-align: center;
    padding: 20px;
    color: #888;
}

/* Customer form */
.osq-customer-form {
    display: grid;
    gap: 20px;
}

.osq-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.osq-form-field label {
    font-weight: 500;
    font-size: 16px;
}

.osq-form-field label .required {
    color: #d32f2f;
}

.osq-form-field input,
.osq-form-field textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.osq-form-field input:focus,
.osq-form-field textarea:focus {
    outline: none;
    border-color: #d4af56;
    box-shadow: 0 0 0 3px rgba(212, 175, 86, 0.1);
}

/* Submit button */
.osq-submit-section {
    text-align: center;
    padding-top: 20px;
}

.osq-submit-button {
    display: inline-block;
    padding: 16px 48px;
    background: #d4af56;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.osq-submit-button:hover {
    background: #1b5e20;
}

.osq-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Error/success messages */
.osq-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
    animation: osq-message-appear 0.3s ease;
}

@keyframes osq-message-appear {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.osq-message-icon {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1.4;
}

.osq-message-text {
    flex: 1;
}

.osq-message-error {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    color: #c41e3a;
    border: 1px solid #f5c6cb;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.1);
}

.osq-message-success {
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
    color: #1a7f37;
    border: 1px solid #a7f3d0;
    box-shadow: 0 2px 8px rgba(26, 127, 55, 0.1);
}

/* Legacy class support */
.osq-message.error {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    color: #c41e3a;
    border: 1px solid #f5c6cb;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.1);
}

.osq-message.success {
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
    color: #1a7f37;
    border: 1px solid #a7f3d0;
    box-shadow: 0 2px 8px rgba(26, 127, 55, 0.1);
}

/* Loading state */
.osq-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Participants section */
.osq-participants-section {
    margin-top: 20px;
}

.osq-participants-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

#osq-participants-container {
    display: grid;
    gap: 20px;
}

.osq-participant-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.osq-participant-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.osq-participant-label {
    font-weight: 600;
    font-size: 15px;
}

.osq-booker-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.osq-participant-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.osq-participant-fields .osq-form-field input {
    padding: 10px 12px;
    font-size: 14px;
}

.osq-participant-fields .osq-checkbox-field {
    grid-column: 1 / -1;
}

.osq-participant-fields .osq-checkbox-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.osq-participant-fields .osq-checkbox-field input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Phone input with country code */
.osq-phone-input-wrapper {
    display: flex;
    gap: 8px;
}

.osq-phone-input-wrapper .osq-country-code {
    width: 80px;
    flex-shrink: 0;
    padding: 10px 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.osq-phone-input-wrapper .osq-participant-phone {
    flex: 1;
    min-width: 0;
}

/* Hide participant template */
#osq-participant-template {
    display: none;
}

/* Image Lightbox */
.osq-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.osq-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.osq-lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

body .osq-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}

body .osq-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

body .osq-lightbox-prev, body .osq-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}

body .osq-lightbox-prev:hover,
body .osq-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.osq-lightbox-prev {
    left: 20px;
}

.osq-lightbox-next {
    right: 20px;
}

.osq-lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.osq-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.osq-lightbox-counter {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 20px;
}

.osq-lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Prevent body scroll when lightbox is open */
body.osq-lightbox-open {
    overflow: hidden;
}

/* Alternative-routes modal */
.osq-alt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
}

.osq-alt-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.osq-alt-modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    max-width: 420px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    padding: 28px 24px;
}

body .osq-alt-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

body .osq-alt-modal-close:hover {
    background: rgba(0, 0, 0, 0.07);
}

.osq-alt-modal-title {
    margin: 0 24px 8px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.osq-alt-modal-subtitle {
    margin: 0 0 16px;
    font-size: 15px;
    color: #555;
}

.osq-alt-modal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.osq-alt-modal-list li {
    margin: 0;
    border-top: 1px solid #eee;
}

.osq-alt-modal-list li:last-child {
    border-bottom: 1px solid #eee;
}

.osq-alt-modal-list a {
    display: block;
    padding: 12px 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: inherit;
}

.osq-alt-modal-list a:hover {
    color: #0073aa;
}

body.osq-alt-modal-open {
    overflow: hidden;
}

/* Keep the calendar month-navigation arrows interactive even when jQuery UI
   marks them disabled (route's open period starts/ends outside the shown
   month) so they can open the alternative-routes modal. */
.osq-inline-datepicker .ui-datepicker-next.ui-state-disabled,
.osq-inline-datepicker .ui-datepicker-prev.ui-state-disabled {
    pointer-events: auto;
    cursor: pointer;
    opacity: 1;
}

/* Hotel room configuration */
.osq-room-config {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.osq-room-config h4 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
}

.osq-room-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.osq-room-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.osq-room-option:hover {
    border-color: #999;
}

.osq-room-option.selected {
    border-color: #d4af56;
    box-shadow: 0 0 0 3px rgba(212, 175, 86, 0.15);
}

.osq-room-option input[type="radio"] {
    margin: 0;
    accent-color: #d4af56;
}

.osq-room-option-label {
    font-weight: 500;
    font-size: 14px;
}

.osq-room-supplement-note {
    margin-left: auto;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* Accommodations accordion (within variant card) */
.osq-accommodations {
    margin-top: 14px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.osq-accommodation-item {
    border: 1px solid #e8e5e1;
    border-radius: 6px;
    margin-bottom: 6px;
    overflow: hidden;
}

.osq-accommodation-item:last-child {
    margin-bottom: 0;
}

.osq-accommodation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: #faf9f7;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-align: left;
    transition: background 0.2s;
}

.osq-accommodation-header:hover {
    background: #f0ede8;
}

.osq-accommodation-toggle-icon {
    font-size: 11px;
    transition: transform 0.2s;
    color: #888;
}

.osq-accommodation-open .osq-accommodation-toggle-icon {
    transform: rotate(90deg);
}

.osq-accommodation-night {
    color: #888;
    font-weight: 400;
}

.osq-accommodation-name {
    font-weight: 600;
}

.osq-accommodation-body {
    padding: 12px;
    background: #fff;
}

.osq-accommodation-address,
.osq-accommodation-keycode {
    font-size: 13px;
    color: #444;
    margin: 0 0 8px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 2px;
}

.osq-accommodation-keycode {
    color: #b45309;
    font-weight: 500;
}

.osq-accommodation-description {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px;
    line-height: 1.5;
}

.osq-accommodation-gallery {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 10px;
}

.osq-accommodation-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.osq-accommodation-gallery:hover .osq-accommodation-thumb {
    transform: scale(1.05);
}

.osq-accommodation-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.osq-accommodation-facilities .osq-facility-badge {
    font-size: 11px;
    padding: 3px 6px;
}

/* Ældresagen discount section */
.osq-aeldresagen-section {
    border-bottom: none;
}

.osq-aeldresagen-toggle .osq-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
}

.osq-aeldresagen-toggle .osq-checkbox-text {
    font-weight: 500;
}

.osq-aeldresagen-note {
    margin-top: 8px;
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

.osq-aeldresagen-number-field {
    margin-top: 14px;
    padding: 14px 16px;
    background: #f9f7f3;
    border-radius: 8px;
    border: 1px solid #e8e5e1;
}

/* Submit note */
.osq-submit-note {
    font-size: 13px;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .osq-step-content-wrapper {
        flex-direction: column;
    }

    .osq-price-sidebar {
        width: 100%;
        position: static;
        order: -1;
    }

    .osq-price-sidebar-inner {
        border-radius: 8px;
    }

    .osq-step-indicator {
        gap: 4px;
    }

    .osq-step-label {
        font-size: 10px;
    }

    .osq-step-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    /* Stack variant rows vertically on mobile */
    .osq-variant-row {
        flex-direction: column;
    }

    .osq-variant-info {
        flex: none;
    }

    .osq-variant-calendar {
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .osq-variant-cards {
        grid-template-columns: 1fr;
    }

    .osq-guest-selectors {
        flex-direction: column;
        gap: 20px;
    }

    .osq-price-summary {
        padding: 20px 15px;
    }

    .osq-step-nav {
        flex-wrap: wrap;
    }

    body .osq-btn-primary,
    body .osq-btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .osq-lightbox-prev,
    .osq-lightbox-next {
        width: 40px;
        height: 40px;
    }

    .osq-lightbox-prev {
        left: 10px;
    }

    .osq-lightbox-next {
        right: 10px;
    }

    .osq-lightbox-close {
        top: 10px;
        right: 10px;
    }

    .osq-lightbox-content {
        max-width: 95vw;
    }
}

/* ===========================
   Admin booking mode
   =========================== */

.osq-admin-mode-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ff9800;
    color: #5d4a00;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.osq-admin-mode-banner .osq-admin-mode-icon {
    font-size: 18px;
    margin-right: 6px;
}

.osq-admin-mode-banner strong {
    color: #5d4a00;
    font-weight: 600;
}

.osq-form-section.osq-admin-panel {
    background: #fffbeb;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 20px 0;
}

.osq-form-section.osq-admin-panel h3 {
    color: #5d4a00;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 8px;
}

.osq-admin-panel-icon {
    margin-right: 6px;
}

.osq-admin-panel-intro {
    color: #5d4a00;
    font-size: 13px;
    margin: 0 0 14px 0;
    opacity: 0.85;
}

.osq-admin-panel .osq-form-field {
    margin-bottom: 12px;
}

.osq-admin-panel .osq-form-field label {
    display: block;
    font-weight: 600;
    color: #5d4a00;
    margin-bottom: 4px;
    font-size: 13px;
}

.osq-admin-panel .osq-form-field select,
.osq-admin-panel .osq-form-field textarea,
.osq-admin-panel .osq-form-field input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d4a76a;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

.osq-admin-panel .osq-form-field textarea {
    resize: vertical;
    min-height: 50px;
}

.osq-admin-toggles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #d4a76a;
}

.osq-admin-toggles .osq-checkbox-label {
    align-items: flex-start;
    cursor: pointer;
}

.osq-admin-toggles .osq-checkbox-text small {
    display: block;
    color: #7c6225;
    font-size: 12px;
    font-weight: 400;
    margin-top: 2px;
    line-height: 1.3;
}

/* Adjust submit button styling for admin mode */
.osq-booking-form.osq-admin-mode .osq-submit-button {
    background: #ff9800;
    border-color: #ff9800;
}

.osq-booking-form.osq-admin-mode .osq-submit-button:hover:not(:disabled) {
    background: #f57c00;
    border-color: #f57c00;
}


/* ==========================================================================
   Floating step navigation
   Sticks to the bottom of the viewport while the real .osq-step-nav is
   scrolled out of view, so "Næste" is always within reach on long steps.
   ========================================================================== */
.osq-floating-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999900000;
    background: #fff;
    border-top: 1px solid #e6e6e6;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    transform: translateY(120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
}

.osq-floating-nav.osq-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.osq-floating-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.osq-floating-summary {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #666;
}

.osq-floating-summary:empty {
    display: none;
}

.osq-floating-summary .osq-floating-summary-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.osq-floating-summary .osq-floating-summary-meta {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.osq-floating-nav .osq-floating-prev {
    flex: 0 0 auto;
    padding: 12px 16px;
}

.osq-floating-nav .osq-btn-primary,
.osq-floating-nav .osq-submit-button {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 13px 28px;
    font-size: 15px;
}

@media (max-width: 600px) {
    .osq-floating-nav {
        padding: 8px 12px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .osq-floating-summary .osq-floating-summary-title {
        font-size: 13px;
    }

    .osq-floating-summary .osq-floating-summary-meta {
        font-size: 12px;
    }

    .osq-floating-nav .osq-btn-primary,
    .osq-floating-nav .osq-submit-button {
        padding: 12px 18px;
        font-size: 14px;
    }
}

@media print {
    .osq-floating-nav {
        display: none;
    }
}
