/* Time slot chip price (scoped so theme button/span rules do not override) */
.gic-booking-wrapper button.gic-time-slot-button span.gic-price {
    display: block;
    margin: 0;
    padding: 5px;
    background-color: rgb(242 250 240);
    border-radius: 6px;
    border: 1px solid #c4c4c4;
}

.gic-booking-wrapper button.gic-time-slot-button.gic-selected span.gic-price {
    mix-blend-mode: lighten;
    color: black;
}

/* Account Section */

#gic-account-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 10px;
}

.gic-account-choice {
    text-align: center;
}

.gic-account-choice h3 {
    margin-bottom: 15px;
    font-size: 2rem;
}

.gic-account-choice .gic-button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    font-size: 16px;
}

.gic-login-section,
.gic-register-section {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gic-login-section h3,
.gic-register-section h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 2rem;
}

.gic-form-group {
    margin-bottom: 0;
}

.gic-form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.gic-form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem !important;
}

.gic-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 1.5rem;
}

.gic-form-actions .gic-button {
    flex: 1;
    padding: 10px;
}

.gic-back-to-choice {
    background-color: #6c757d !important;
}

.gic-step-hidden {
    display: none;
}

.gic-email-requirements,
.gic-password-requirements {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.gic-hp-field {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Add these styles for the booking summary section */
#gic-payment-summary {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.gic-booking-details {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.gic-booking-details h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 2rem;
}

.gic-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.gic-summary-label {
    font-weight: 500;
    color: #666;
}

.gic-free-booking-notice {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
}

/* Update button styles */
#gic-free-booking-submit,
#gic-payment-submit {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    text-align: center;
}

/* Calendar and New Booking Button Styles */
.gic-calendar-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 10px 0;
}

.gic-calendar-button,
.gic-new-booking {
    width: 100%;
    padding: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gic-calendar-button i,
.gic-new-booking i {
    margin-right: 4px;
}

/* Optional: Add some hover effects */
.gic-calendar-button:hover,
.gic-new-booking:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.gic-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.gic-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    font-size: 16px;
}

.gic-stripe-element {
    padding: 0;
    border: none;
    background: none;
}

.gic-stripe-focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.gic-stripe-complete {
    border-color: #28a745;
}

.gic-stripe-invalid {
    border-color: #dc3545;
}

.gic-stripe-empty {
    background-color: #fafafa;
}

.gic-stripe-autofill {
    background-color: #fefde5 !important;
}

.gic-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
}

#gic-payment-submit {
    margin-top: 20px;
    width: 100%;
}

/* Stripe Element Styles */
.gic-stripe-field {
    margin-bottom: 20px;
}

.gic-stripe-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #32325d;
}

.gic-stripe-row {
    display: flex;
    gap: 20px;
}

.gic-stripe-row .gic-stripe-field {
    flex: 1;
}

/* Style the Stripe Elements 
.StripeElement {
    background-color: white;
    padding: 12px 15px;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    box-shadow: 0 1px 3px 0 #e6ebf1;
    -webkit-transition: box-shadow 150ms ease;
    transition: box-shadow 150ms ease;
    height: 40px !important;
}*/

.StripeElement--focus {
    box-shadow: 0 1px 3px 0 #cfd7df;
    border-color: #80bdff;
}

.StripeElement--invalid {
    border-color: #dc3545;
}

.StripeElement--webkit-autofill {
    background-color: #fefde5 !important;
}

#gic-card-errors {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    text-align: left;
}

/* Container styles */
#gic-card-element {
    padding: 0 20px 20px 20px;
    border-radius: 10px;
    max-width: 500px;
    margin: auto;
}

/* Payment Summary Styles */
.gic-payment-details {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
}

.gic-summary-header h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    font-size: 1.8rem;
    border-bottom: 1px solid #e0e0e0;
}

.gic-summary-content {
    padding: 10px 0;
}

.gic-stripe-field {
    margin-bottom: 15px;
}

.gic-stripe-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #32325d;
}

.gic-stripe-row {
    display: flex;
    gap: 20px;
}

.gic-stripe-row .gic-stripe-field {
    flex: 1;
}

#gic-card-errors {
    color: #dc3545;
    margin-top: 10px;
    font-size: 14px;
}

/* Style the Stripe Elements containers 
#card-number-element,
#card-expiry-element,
#card-cvc-element,
#postal-code-element {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f8f9fa;
    transition: border-color 0.15s ease;
} */

#card-number-element:focus,
#card-expiry-element:focus,
#card-cvc-element:focus,
#postal-code-element:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.stripe-element-container {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f8f9fa;
    transition: border-color 0.15s ease;
    min-height: 40px;
}

.stripe-element-container:focus-within {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.gic-payment-separator {
    display: none;
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.gic-payment-separator::before,
.gic-payment-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 50px);
    height: 1px;
    background-color: #e0e0e0;
}

.gic-payment-separator::before {
    left: 0;
}

.gic-payment-separator::after {
    right: 0;
}

.gic-payment-separator span {
    background: #fff;
    padding: 0 15px;
    color: #6b7280;
    font-size: 14px;
}

#payment-request-button {
    margin-bottom: 20px;
}

.gic-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.gic-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gic-step-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 20px;
}

.gic-step-loading .gic-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.gic-step-loading p {
    color: #666;
    font-size: 16px;
    margin-top: 20px;
}

/* Add this to handle mobile layout */
@media screen and (max-width: 768px) {
    .gic-form-actions {
        display: flex;
        flex-direction: column-reverse;
        gap: 10px;
    }

    .gic-form-actions button {
        width: 100%;
    }
}

.gic-guest-count-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.gic-guest-count-controls button {
    padding: 5px 15px;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #f7f7f7;
    border-radius: 4px;
}

.gic-guest-count-controls button:hover {
    background: #e7e7e7;
}

.gic-guest-count-controls input {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.gic-guest-fee-info {
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

/* Guest Count Styles */
.gic-guest-count-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin: 5px 0;
}

.gic-guest-count-wrapper button {
    flex: 1;
    background-color: var(--gic-primary-color, #007bff);
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 16px;
    min-width: 0;
    width: calc(100% / 6);
}

.gic-guest-count-wrapper input {
    flex: 4;
    text-align: center;
    margin: 0 1px !important;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 0px !important;
    width: calc(100% * 4/6);
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    line-height: normal;
}

.gic-guest-count-wrapper button:first-child {
    border-radius: 4px 0 0 4px;
}

.gic-guest-count-wrapper button:last-child {
    border-radius: 0 4px 4px 0;
}

.gic-guest-count-wrapper button:hover {
    background-color: var(--gic-hover-color, #0056b3);
}

.gic-guest-count-wrapper button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.gic-guest-fee-note {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}




.gic-pricing-breakdown {
    margin: 12px 0;
    padding: 6px 16px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 0.7em;
}

.gic-price-item {
    color: #666;
    padding: 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gic-price-item .gic-summary-value {
    font-size: 0.95em;
}

.gic-discount .gic-summary-value {
    color: #28a745;
}

.gic-total {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.gic-total .gic-summary-value {
    color: #000;
}

/* Add new booking success styling */
.gic-booking-info {
    margin-bottom: 20px;
}

.gic-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.gic-pricing-details h3 {
    margin: 0 0 15px 0;
    padding: 0;
    font-size: 1.1em;
    color: #333;
    font-weight: normal;
}

/* Update existing pricing breakdown styles */
.gic-pricing-breakdown {
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 0.8em;
    margin-bottom: 15px;
}

.gic-price-item {
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gic-discount .gic-summary-value {
    color: #28a745;
}

.gic-total {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 15px;
}

.gic-total .gic-summary-value {
    color: #000;
}

/* Custom SVG icon styling */
.gic-step-icon .gic-custom-icon,
.gic-step-icon svg {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    color: #666; /* Default grey color */
}

/* Active state - uses primary color */
.gic-progress-step.gic-active .gic-step-icon .gic-custom-icon,
.gic-progress-step.gic-active .gic-step-icon svg {
    color: var(--gic-primary-color);
}

/* Adjust icon size on mobile */
@media screen and (max-width: 768px) {
    .gic-step-icon .gic-custom-icon,
    .gic-step-icon svg {
        width: 16px;
        height: 16px;
    }
}


.gic-premium-notice {
    margin-top: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
}

.gic-premium-notice p {
    margin: 0;
    color: #6c757d;
}

/* ==========================================
   Documenso Waiver Lightbox Styles
   ========================================== */

.gic-documenso-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: gicDocumensoFadeIn 0.3s ease;
}

@keyframes gicDocumensoFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gic-documenso-lightbox {
    background: #fff;
    border-radius: 12px;
    width: 90vw;
    max-width: 900px;
    height: 85vh;
    max-height: 850px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: gicDocumensoSlideUp 0.3s ease;
}

@keyframes gicDocumensoSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gic-documenso-header {
    position: relative;
    padding: 20px 50px 16px 24px;
    background: linear-gradient(135deg, #f0f4ff 0%, #fef3f2 100%);
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.gic-documenso-header h3 {
    margin: 0 0 6px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gic-documenso-header h3 i {
    color: #6366f1;
    font-size: 1.2rem;
}

.gic-documenso-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
}

.gic-documenso-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
    line-height: 1;
}

.gic-documenso-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #1f2937;
}

.gic-documenso-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.gic-documenso-iframe {
    flex: 1;
    width: 100%;
    border: none;
    min-height: 0;
}

/* Manual completion button */
.gic-documenso-manual-complete {
    padding: 12px 24px 16px;
    text-align: center;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.gic-documenso-confirm-signed {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gic-documenso-confirm-signed:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.gic-documenso-confirm-signed:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gic-documenso-manual-note {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .gic-documenso-lightbox {
        width: 100vw;
        height: 100vh;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .gic-documenso-header {
        padding: 16px 44px 12px 16px;
    }

    .gic-documenso-header h3 {
        font-size: 1.1rem;
    }

    .gic-documenso-header p {
        font-size: 0.8rem;
    }
}

/* Fallback if booking-form.css load order changes (also defined there) */
@keyframes gic-skeleton-shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Step 3: bay grid skeleton + smooth reveal (Step 2 → Step 3 transition) */
.gic-booking-wrapper #gic-bays-container {
    position: relative;
}

.gic-booking-wrapper #gic-bays-container.gic-bays-container--loading {
    min-height: min(280px, 45vh);
    transition: min-height 0.35s ease;
}

.gic-booking-wrapper .gic-bays-skeleton {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0;
}

.gic-booking-wrapper .gic-bays-skeleton-header {
    height: 18px;
    width: 55%;
    max-width: 240px;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.06) 0%,
        rgba(0, 0, 0, 0.09) 45%,
        rgba(0, 0, 0, 0.06) 90%
    );
    background-size: 200% 100%;
    animation: gic-skeleton-shimmer 1.35s ease-in-out infinite;
}

/* Grid: use class `gic-bay-grid` on the skeleton wrapper (same columns/gaps/margins as real Step 3). */

/* Mirror .gic-bay-card + label + .gic-bay-image + .gic-bay-info structure */
.gic-booking-wrapper .gic-bays-skeleton-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    max-width: 100%;
    display: flex;
    flex-shrink: 0;
}

.gic-booking-wrapper .gic-bays-skeleton-card-inner {
    display: flex;
    flex-direction: column;
    padding: 10px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.gic-booking-wrapper .gic-bays-skeleton-image {
    width: 100%;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.06) 0%,
        rgba(0, 0, 0, 0.1) 45%,
        rgba(0, 0, 0, 0.06) 90%
    );
    background-size: 200% 100%;
    animation: gic-skeleton-shimmer 1.35s ease-in-out infinite;
    animation-delay: 0.05s;
}

.gic-booking-wrapper .gic-bays-skeleton-body {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gic-booking-wrapper .gic-bays-skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.06) 0%,
        rgba(0, 0, 0, 0.09) 45%,
        rgba(0, 0, 0, 0.06) 90%
    );
    background-size: 200% 100%;
    animation: gic-skeleton-shimmer 1.35s ease-in-out infinite;
}

.gic-booking-wrapper .gic-bays-skeleton-line--title {
    width: 58%;
}

.gic-booking-wrapper .gic-bays-skeleton-line--muted {
    width: 92%;
    height: 11px;
    opacity: 0.92;
}

/* Match .gic-bay-grid responsive rules in booking-form.css (768px / 480px) */
@media (max-width: 480px) {
    .gic-booking-wrapper .gic-bays-skeleton-card-inner {
        padding: 8px;
    }

    .gic-booking-wrapper .gic-bays-skeleton-image {
        height: 90px;
    }

    .gic-booking-wrapper .gic-bays-skeleton-body {
        padding: 8px;
    }

    .gic-booking-wrapper .gic-bays-skeleton-line--title {
        height: 13px;
    }

    .gic-booking-wrapper .gic-bays-skeleton-line--muted {
        height: 10px;
    }
}

.gic-booking-wrapper .gic-bays-panel {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.42s ease,
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.gic-booking-wrapper .gic-bays-panel--visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .gic-booking-wrapper .gic-bays-skeleton-header,
    .gic-booking-wrapper .gic-bays-skeleton-image,
    .gic-booking-wrapper .gic-bays-skeleton-line {
        animation: none;
        background: rgba(0, 0, 0, 0.07);
    }

    .gic-booking-wrapper .gic-bays-panel {
        opacity: 1;
        transform: none;
        transition: none;
    }
}