/**
 * Tour Booking System - Frontend Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --tbs-primary: #CC171D;
    --tbs-primary-dark: #9A1116;
    --tbs-primary-light: #E01D23;
    --tbs-success: #28a745;
    --tbs-error: #dc3545;
    --tbs-text: #333;
    --tbs-text-light: #666;
    --tbs-border: #ddd;
    --tbs-bg: #f9f9f9;
    --tbs-white: #fff;
    --tbs-shadow: rgba(0, 0, 0, 0.1);
    --tbs-shadow-lg: rgba(0, 0, 0, 0.2);
    --tbs-transition: all 0.3s ease;
}

/* Global font for all plugin elements */
.tbs-modal,
.tbs-modal *,
.tbs-booking-button,
[class*="tbs-"] {
    font-family: "Open Sans", sans-serif;
}

/* Booking Button */
button.tbs-booking-button,
.tbs-booking-button,
[data-tbs-trigger="booking-modal"].tbs-booking-button,
button[data-tbs-trigger="booking-modal"],
.tbs-booking-button[data-tbs-trigger="booking-modal"] {
    background-color: #CC171D !important;
    font-family: "Open Sans", Sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    fill: #FFFFFF !important;
    color: #FFFFFF !important;
    border-radius: 30px !important;
    padding: 15px 50px !important;
    border: none !important;
    cursor: pointer !important;
    transition: var(--tbs-transition);
    box-shadow: 0 2px 8px var(--tbs-shadow);
    text-decoration: none !important;
    display: inline-block !important;
    line-height: 1.5 !important;
}

button.tbs-booking-button:hover,
.tbs-booking-button:hover,
[data-tbs-trigger="booking-modal"].tbs-booking-button:hover,
button[data-tbs-trigger="booking-modal"]:hover,
.tbs-booking-button[data-tbs-trigger="booking-modal"]:hover {
    background-color: #CC171D !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--tbs-shadow-lg);
}

button.tbs-booking-button:active,
.tbs-booking-button:active,
[data-tbs-trigger="booking-modal"].tbs-booking-button:active,
button[data-tbs-trigger="booking-modal"]:active,
.tbs-booking-button[data-tbs-trigger="booking-modal"]:active {
    transform: translateY(0);
}

/* Modal Overlay */
.tbs-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    overflow-y: auto;
}

.tbs-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tbsFadeIn 0.3s ease;
}

.tbs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
    animation: tbsFadeIn 0.3s ease;
}

.tbs-modal-container {
    position: relative;
    background: var(--tbs-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--tbs-shadow-lg);
    max-width: 800px !important;
    width: 90%;
    max-height: 90vh;
    margin: 20px auto;
    overflow: hidden;
    animation: tbsSlideUp 0.4s ease;
    cursor: default;
}

/* Modal Header */
.tbs-modal-header {
    background: #fff !important;
    background-color: #fff !important;
    color: #CC171D;
    padding: 24px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.tbs-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #CC171D;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    text-transform: uppercase;
}

.tbs-modal-close {
    background: transparent;
    border: none;
    color: #CC171D !important;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--tbs-transition);
    opacity: 0.9;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    visibility: visible !important;
}

.tbs-modal-close:hover {
    opacity: 1;
    background-color: rgba(204, 23, 29, 0.1);
    transform: translateY(-50%) rotate(90deg);
    color: #CC171D !important;
}

.tbs-modal-close-icon {
    display: block;
    color: #CC171D !important;
}

/* Modal Body */
.tbs-modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* Progress Indicator */
.tbs-progress-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.tbs-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.tbs-progress-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--tbs-border);
    color: var(--tbs-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: var(--tbs-transition);
    margin-bottom: 8px;
}

.tbs-progress-step.active .tbs-progress-number,
.tbs-progress-step.completed .tbs-progress-number {
    background-color: #CC171D;
    color: var(--tbs-white);
    transform: scale(1.1);
}

.tbs-progress-step.completed .tbs-progress-number::before {
    content: '✓';
}

.tbs-progress-label {
    font-size: 12px;
    color: var(--tbs-text-light);
    text-align: center;
    transition: var(--tbs-transition);
}

.tbs-progress-step.active .tbs-progress-label,
.tbs-progress-step.completed .tbs-progress-label {
    color: #CC171D;
    font-weight: 600;
}

.tbs-progress-line {
    flex: 1;
    height: 3px;
    background-color: var(--tbs-border);
    margin: 0 10px;
    margin-top: -30px;
    position: relative;
    z-index: 1;
}

.tbs-progress-step.active ~ .tbs-progress-line,
.tbs-progress-step.completed ~ .tbs-progress-line {
    background-color: #CC171D;
}

/* Steps */
.tbs-step {
    display: none;
    animation: tbsFadeIn 0.4s ease;
}

.tbs-step.active {
    display: block;
}

.tbs-step h3 {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--tbs-text);
    font-size: 20px;
    font-weight: 600;
}

.tbs-step-header {
    margin-bottom: 24px;
}

.tbs-step-subtitle {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--tbs-text-light);
    margin-bottom: 6px;
}

.tbs-step-helper {
    margin-top: 10px;
    color: var(--tbs-text-light);
    font-size: 14px;
    line-height: 1.5;
}

/* Form Elements */
.tbs-form-group {
    margin-bottom: 24px;
    position: relative;
}

.tbs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 12px;
}

.tbs-form-row .tbs-form-group {
    margin-bottom: 0;
}

.tbs-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--tbs-text);
    font-size: 14px;
}

.tbs-required {
    color: var(--tbs-error);
}

.tbs-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--tbs-border);
    border-radius: 6px;
    font-size: 15px;
    transition: var(--tbs-transition);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

#tbs-location-search {
    padding: 12px 16px 12px 48px;
    cursor: text;
    flex: 1;
    min-width: 0; /* Allow flex item to shrink below its content size */
}

.tbs-location-search-wrapper {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.tbs-location-search-wrapper::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6 6 0 1 0 14 15.5l.27.28v.79l5 4.99L20.49 19l-4.99-5zM6 10a4 4 0 1 1 8 0 4 4 0 0 1-8 0z' fill='%2390A3AE'/%3E%3C/svg%3E");
    background-size: contain;
    pointer-events: none;
    opacity: 0.8;
    z-index: 1;
}

.tbs-radius-filter {
    padding: 12px 40px 12px 16px;
    background-color: #FFFFFF;
    color: #333333;
    border: 2px solid var(--tbs-border);
    border-radius: 0;
    font-size: 15px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 100px;
    max-width: 120px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    flex-shrink: 0;
    height: auto;
    line-height: 1.5;
    box-sizing: border-box;
}

.tbs-radius-filter:hover {
    border-color: #CC171D;
    background-color: #FFF5F5;
}

.tbs-radius-filter:focus {
    outline: none;
    border-color: #CC171D;
    box-shadow: 0 0 0 3px rgba(204, 23, 29, 0.1);
}

.tbs-form-input:focus {
    outline: none;
    border-color: #CC171D;
    box-shadow: 0 0 0 3px rgba(204, 23, 29, 0.1);
}

.tbs-form-input:invalid {
    border-color: var(--tbs-error);
}

/* Location Search */
.tbs-location-meta {
    margin-top: 12px;
    font-size: 14px;
    color: var(--tbs-text-light);
}

.tbs-location-results {
    margin-top: 20px;
    display: none;
    flex-direction: column;
    gap: 18px;
}

.tbs-location-results.active {
    display: flex;
}

/* Suburb list styling - simple dropdown list */
.tbs-suburb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: var(--tbs-white);
    border: 1px solid var(--tbs-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tbs-suburb-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.tbs-suburb-result-item:last-child {
    border-bottom: none;
}

.tbs-suburb-result-item:hover {
    background-color: #f8f8f8;
}

.tbs-suburb-icon {
    margin-right: 12px;
    font-size: 16px;
    color: #999;
    flex-shrink: 0;
}

.tbs-suburb-text {
    flex: 1;
    font-size: 15px;
    color: var(--tbs-text);
    line-height: 1.5;
}

.tbs-location-results .tbs-loading {
    width: 100%;
    padding: 24px;
    border: 1px dashed var(--tbs-border);
    border-radius: 12px;
    margin: 0;
}

.tbs-location-result-item {
    cursor: pointer;
}

.tbs-location-card {
    width: 100%;
    display: flex;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--tbs-border);
    border-radius: 16px;
    background-color: var(--tbs-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tbs-location-result-item.selected .tbs-location-card,
.tbs-location-card:hover {
    border-color: #CC171D;
    box-shadow: 0 16px 40px rgba(204, 23, 29, 0.12);
}

.tbs-location-card-media {
    flex: 0 0 120px;
}

.tbs-location-card-media img {
    width: 120px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.tbs-location-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tbs-location-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.tbs-location-result-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--tbs-text);
}

.tbs-location-result-address {
    font-size: 14px;
    color: var(--tbs-text-light);
}

.tbs-location-card-excerpt {
    margin: 0;
    color: var(--tbs-text-light);
    font-size: 14px;
    line-height: 1.5;
}

.tbs-location-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.tbs-location-badge {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: rgba(204, 23, 29, 0.12);
    color: #9A1116;
    font-weight: 600;
    font-size: 13px;
}

.tbs-selected-location,
.tbs-step-selected-location {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--tbs-border);
    border-radius: 14px;
    background-color: #fef5f5;
    display: flex;
    gap: 12px;
    align-items: center;
}

.tbs-step-selected-location {
    margin-bottom: 24px;
    display: none;
}

.tbs-step-location-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--tbs-white);
    border: 1px solid rgba(204, 23, 29, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #CC171D;
    font-size: 18px;
    position: relative;
}

.tbs-step-location-icon::before {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5S10.62 6.5 12 6.5s2.5 1.12 2.5 2.5S13.38 11.5 12 11.5z' fill='%23CC171D'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.tbs-selected-location-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.tbs-selected-location-address {
    font-size: 13px;
    color: var(--tbs-text-light);
}

.tbs-step-selected-location strong {
    display: block;
    margin-bottom: 4px;
}

.tbs-step-selected-location span {
    display: block;
    font-size: 13px;
    color: var(--tbs-text-light);
}

/* Date & Time */
.tbs-date-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: flex-start;
}

.tbs-calendar-wrapper {
    position: relative;
}

.tbs-calendar {
    background: var(--tbs-white);
    border: 1px solid var(--tbs-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tbs-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--tbs-border);
}

.tbs-calendar-nav {
    background: transparent;
    border: 1px solid var(--tbs-border);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--tbs-transition);
    color: var(--tbs-text);
    font-size: 18px;
    padding: 0;
}

.tbs-calendar-nav:hover {
    background: rgba(204, 23, 29, 0.1);
    border-color: #CC171D;
    color: #CC171D;
}

.tbs-calendar-month-year {
    flex: 1;
    text-align: center;
}

.tbs-calendar-month {
    font-size: 18px;
    font-weight: 700;
    color: var(--tbs-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tbs-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.tbs-calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #CC171D;
    text-transform: uppercase;
    padding: 8px 0;
}

.tbs-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.tbs-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--tbs-text);
    transition: var(--tbs-transition);
    background: transparent;
    border: 2px solid transparent;
    position: relative;
}

.tbs-calendar-day:hover:not(.disabled):not(.other-month) {
    background: rgba(204, 23, 29, 0.1);
    border-color: rgba(204, 23, 29, 0.3);
}

.tbs-calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    color: var(--tbs-text-light);
}

.tbs-calendar-day.other-month {
    opacity: 0.3;
    color: var(--tbs-text-light);
}

.tbs-calendar-day.today {
    border-color: #CC171D;
    font-weight: 600;
}

.tbs-calendar-day.selected {
    background: #CC171D;
    color: #FFFFFF;
    border-color: #CC171D;
    font-weight: 700;
}

.tbs-calendar-day.selected:hover {
    background: #9A1116;
    border-color: #9A1116;
}

.tbs-calendar-day.available {
    color: var(--tbs-text);
}

.tbs-calendar-day.unavailable {
    opacity: 0.3;
    cursor: not-allowed;
}

.tbs-time-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.tbs-time-slot {
    padding: 14px 18px;
    border: 2px solid var(--tbs-border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--tbs-transition);
    background-color: var(--tbs-white);
    font-weight: 600;
    font-size: 15px;
}

.tbs-time-slot:hover {
    border-color: #CC171D;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.tbs-time-slot.selected {
    background-color: #CC171D;
    color: var(--tbs-white);
    border-color: #CC171D;
}

.tbs-time-slot.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--tbs-bg);
}

.tbs-time-slot.unavailable:hover {
    box-shadow: none;
    border-color: var(--tbs-border);
}

.tbs-loading {
    text-align: center;
    color: var(--tbs-text-light);
    padding: 20px;
}

/* Booking Summary */
.tbs-booking-summary {
    background-color: var(--tbs-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    border-left: 4px solid #CC171D;
}

.tbs-booking-summary h4 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #CC171D;
    font-size: 18px;
}

.tbs-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--tbs-border);
}

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

.tbs-summary-label {
    font-weight: 600;
    color: var(--tbs-text-light);
}

.tbs-summary-value {
    color: var(--tbs-text);
}

/* Form Actions */
.tbs-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px solid var(--tbs-border);
}

/* Buttons */
button.tbs-btn,
.tbs-btn,
button[type="button"].tbs-btn,
button[type="submit"].tbs-btn,
.tbs-btn-primary,
.tbs-btn-secondary,
.tbs-btn-outline,
.tbs-btn-prev,
.tbs-btn-next {
    padding: 12px 24px;
    border: none;
    border-radius: 30px !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tbs-transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.tbs-btn-primary {
    background-color: #CC171D;
    color: var(--tbs-white);
}

.tbs-btn-outline {
    background-color: transparent;
    color: #CC171D;
    border: 2px solid #CC171D;
}

.tbs-btn-outline:hover {
    background-color: #CC171D;
    color: var(--tbs-white);
}

/* Location Select Button */
.tbs-location-select,
.tbs-location-card-actions .tbs-btn-outline,
.tbs-location-card .tbs-btn-outline {
    background-color: #CC171D !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 30px !important;
}

.tbs-location-select:hover,
.tbs-location-card-actions .tbs-btn-outline:hover,
.tbs-location-card .tbs-btn-outline:hover {
    background-color: #CC171D !important;
    color: #FFFFFF !important;
}

.tbs-btn-primary:hover:not(:disabled) {
    background-color: #CC171D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--tbs-shadow);
}

.tbs-btn-secondary {
    background-color: var(--tbs-border);
    color: var(--tbs-text);
}

.tbs-btn-secondary:hover {
    background-color: #ccc;
}

.tbs-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Success Message */
.tbs-success-message {
    text-align: center;
    padding: 40px 20px;
}

.tbs-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--tbs-success);
    color: var(--tbs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: tbsScaleIn 0.5s ease;
}

.tbs-success-message h3 {
    color: var(--tbs-success);
    margin-bottom: 12px;
}

.tbs-success-message p {
    color: var(--tbs-text-light);
    margin-bottom: 24px;
}

/* Animations */
@keyframes tbsFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes tbsSlideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes tbsScaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tbs-modal-container {
        width: 95%;
        margin: 10px auto;
        max-height: 95vh;
    }

    .tbs-modal-header {
        padding: 20px;
    }

    .tbs-modal-title {
        font-size: 20px;
    }

    .tbs-modal-body {
        padding: 20px;
    }

    .tbs-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tbs-progress-indicator {
        margin-bottom: 30px;
    }

    .tbs-progress-label {
        font-size: 10px;
    }

    .tbs-progress-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .tbs-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .tbs-location-card {
        flex-direction: column;
    }

    .tbs-location-card-media {
        display: none !important;
    }

    .tbs-form-actions {
        flex-direction: column-reverse;
    }

    .tbs-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tbs-progress-indicator {
        gap: 5px;
    }

    .tbs-progress-line {
        margin: 0 5px;
    }

    .tbs-time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading Spinner */
.tbs-spinner {
    border: 3px solid var(--tbs-border);
    border-top: 3px solid #CC171D;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: tbsSpin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Override theme CSS for buttons - must be at the end to override theme styles */
button[type="button"].tbs-btn,
button[type="submit"].tbs-btn,
button.tbs-btn-primary,
button.tbs-btn-secondary,
button.tbs-btn-prev,
button.tbs-btn-next,
[type="button"].tbs-btn,
[type="submit"].tbs-btn {
    border-radius: 30px !important;
}