/* Main form container */
.gic-booking-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--gic-background-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333 !important;
}

/* Form groups */
.gic-booking-form .form-group {
    margin-bottom: 1.5rem;
}

.gic-booking-form label {
    display: block;
    margin-bottom: 0rem;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

/* Form inputs */
.gic-booking-form select,
.gic-booking-form input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
	border-radius: 6px;
	min-height: 62px;
	font-size: 1rem;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Custom select arrow */
.gic-booking-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5rem;
    padding-right: 2.5rem;
}

/* Focus states */
.gic-booking-form select:focus,
.gic-booking-form input[type="date"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Disabled states */
.gic-booking-form select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Submit button */
.gic-submit-booking {
    width: 100%;
    padding: 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gic-submit-booking:hover {
    background-color: #45a049;
    transform: translateY(-1px);
}

.gic-submit-booking:active {
    transform: translateY(0);
}

/* Loading state for selects */
.gic-booking-form select.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M12 4V2A10 10 0 0 0 2 12h2a8 8 0 0 1 8-8z'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
}

/* Error state */
.gic-booking-form .error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success message */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gic-booking-form {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gic-booking-form {
        margin: 0.5rem;
        padding: 1rem;
    }

    .gic-booking-form label {
        font-size: 0.9rem;
    }

    .gic-booking-form select,
    .gic-booking-form input[type="date"] {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .gic-submit-booking {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bay Selection Styles */
.bay-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 15px 0;
}

.bay-option {
    position: relative;
}

.bay-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.bay-card {
    display: block;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bay-option input[type="radio"]:checked + .bay-card {
    border-color: var(--primary-color, #F44336);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bay-option input[type="radio"]:focus + .bay-card {
    outline: 2px solid var(--primary-color, #F44336);
    outline-offset: 2px;
}

.bay-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.bay-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bay-details {
    padding: 15px;
}

.bay-name {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #333;
}

.bay-description {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Hover Effects */
.bay-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* No Bays Message */
.no-bays-message {
    text-align: center;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    color: #666;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .bay-selection-grid {
        grid-template-columns: 1fr;
    }

    .bay-image {
        height: 150px;
    }

    .bay-details {
        padding: 12px;
    }

    .bay-name {
        font-size: 1.1rem;
    }
}

/* Loading State */
.bay-selection-loading {
    text-align: center;
    padding: 20px;
}

/* Animation for loading state */
@keyframes bayLoadingPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.bay-selection-loading {
    animation: bayLoadingPulse 1.5s infinite;
}

.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #fff !important;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.booking-steps .step {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    color: #6c757d !important;
    position: relative;
    font-weight: 500;
    background: transparent !important;
}

.booking-steps .step.active {
    color: var(--gic-primary-color) !important;
}

.booking-steps .step:not(:last-child):after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: #dee2e6;
}

.booking-step {
    display: none;
    background: #fff !important;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.booking-step.active {
    display: block;
}

.form-group,
.gic-form-group {
    margin-bottom: 1rem;
}

.form-group label,
.gic-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333 !important;
}

.form-group select,
.form-group input[type="date"],
.gic-form-group select,
.gic-form-group input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fff !important;
    color: #333 !important;
    transition: all 0.15s ease-in-out;
    margin-bottom: 1rem !important;
    font-family: var(--gic-font-family);
    text-align: left;
}

.form-group select:focus,
.form-group input[type="date"]:focus {
    border-color: var(--gic-primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem var(--gic-focus-color);
}

.form-group select:hover,
.form-group input[type="date"]:hover {
    border-color: var(--gic-primary-color);
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

button.next-step {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    background-color: var(--gic-primary-color);
    color: #fff;
    transition: background-color 0.15s ease-in-out;
}

button.next-step:hover:not(:disabled) {
    background-color: var(--gic-hover-color);
}

button.next-step:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .gic-booking-form {
        margin: 1rem;
        padding: 1rem;
    }

    .booking-steps {
        flex-direction: column;
        padding: 0.5rem;
    }

    .booking-steps .step {
        padding: 0.5rem 0;
    }

    .booking-steps .step:not(:last-child):after {
        display: none;
    }

    .booking-step {
        padding: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    button.next-step {
        width: 100%;
    }
}

/* Progress Steps Base Styles - Desktop */
.gic-booking-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.gic-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    position: relative;
}

.gic-progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -50%;
    top: 32px;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.gic-step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.gic-step-text {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Active step styling */
.gic-progress-step.gic-active .gic-step-icon {
    border-color: var(--gic-primary-color);
    color: var(--gic-primary-color);
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .gic-booking-wrapper {
        padding: 10px !important;
        width: 100%;
        max-width: 100%;
    }

    .gic-booking-form {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .gic-form-group {
        margin: 0 0 15px 0;
        padding: 0;
        width: 100%;
    }

    .gic-booking-progress {
        display: flex;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        margin: 0;
        width: 100%;
        flex-wrap: nowrap;
        border: none;
    }

    .gic-progress-step {
        flex: 0 0 auto;
        width: auto;
        margin: 0;
        padding: 0;
        display: inline-flex;
        flex-direction: column;
        position: static;
        border: none !important;
        border-bottom: none !important;
        background: none;
    }

    /* Remove divider lines and active state styling */
    .gic-progress-step::after,
    .gic-progress-step:not(:last-child)::after,
    .gic-progress-step::before {
        display: none !important;
    }

    .gic-progress-step.gic-active {
        background: none;
        border: none;
    }

    .gic-step-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
        margin: 0;
        border: 1px solid #ccc;
    }

    /* Maintain active state only for the icon */
    .gic-progress-step.gic-active .gic-step-icon {
        border-color: var(--gic-primary-color);
        color: var(--gic-primary-color);
    }

    .gic-step-text {
        display: none;
    }

    /* Show step numbers */
    .gic-step-icon::before {
        content: attr(data-step);
        font-size: 11px;
        font-weight: 500;
    }

    /* Show short labels below */
    .gic-step-icon::after {
        content: attr(data-short);
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 9px;
        white-space: nowrap;
        color: #666;
    }
}

/* Bay Selection Grid - Updated Styles */
.gic-bay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.gic-bay-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    max-width: 100%;
    display: flex;
}

.gic-bay-card input[type="radio"] {
    display: none;
}

.gic-bay-card label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    height: 100%;
}

.gic-bay-card input[type="radio"]:checked + label {
	outline: 5px solid var(--gic-primary-color);	
	outline-offset: -5px;	
}

.gic-bay-image {
    width: 100%;
    height: 100px;
    overflow: hidden;
    flex-shrink: 0;
}

.gic-bay-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gic-bay-info {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gic-bay-info h4 {
    margin: 0 0 5px 0;
    font-size: 1em;
    color: #333;
}

.gic-bay-info p {
    margin: 0;
    color: #666;
    font-size: 0.8em;
    line-height: 1.3;
}

.gic-booking-time {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.gic-step-header {
    margin-bottom: 20px;
}

/* Hover effects for bay cards */
.gic-bay-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Focus state for accessibility */
.gic-bay-card input[type="radio"]:focus + label {
    outline: 2px solid var(--gic-primary-color);
    outline-offset: 2px;
}

/* Responsive adjustments for bay grid */
@media (max-width: 768px) {
    .gic-bay-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .gic-bay-info h4 {
        font-size: 0.95em;
    }
    
    .gic-bay-info p {
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {
    .gic-bay-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gic-bay-image {
        height: 90px;
    }
    
    .gic-bay-card label {
        padding: 8px;
    }
    
    .gic-bay-info {
        padding: 8px;
    }
    
    .gic-bay-info h4 {
        font-size: 0.9em;
        margin-bottom: 3px;
    }
    
    .gic-bay-info p {
        font-size: 0.7em;
        line-height: 1.2;
    }
}

/* Form Navigation Buttons */
.gic-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.gic-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    flex: 1; /* Makes buttons equal width */
    text-align: center;
}

.gic-prev-step {
    background-color: #f5f5f5 !important;
    color: #333 !important;
}

.gic-next-step {
    background-color: var(--gic-primary-color) !important;
    color: #ffffff !important;
}

.gic-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.gic-prev-step:hover:not(:disabled) {
    background-color: #e5e5e5 !important;
}

.gic-next-step:hover:not(:disabled) {
    background-color: var(--gic-hover-color) !important;
}

.gic-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .gic-form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .gic-button {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
}

/* Booking Summary Styles */
.gic-booking-summary {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.gic-booking-summary h3 {
    margin: 0 0 20px 0;
    color: #333;
}

.gic-summary-details {
    display: grid;
    gap: 15px;
}

.gic-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.gic-summary-item:last-child {
    border-bottom: none;
}

.gic-summary-label {
    font-weight: 600;
    color: #666;
}

.gic-summary-date,
.gic-summary-time,
.gic-summary-duration,
.gic-summary-bay {
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .gic-booking-summary {
        padding: 15px;
    }

    .gic-summary-item {
        flex-direction: column;
        gap: 5px;
    }

    .gic-summary-label {
        font-size: 0.9em;
    }
}

/* Progress Steps Styling */
.gic-progress {
    margin-bottom: 30px;
}

.gic-progress-bar {
    height: 4px;
    background: #e0e0e0;
    margin: 20px 0;
    position: relative;
}

.gic-progress-fill {
    height: 100%;
    background: var(--gic-primary-color, #2196f3);
    width: 0;
    transition: width 0.3s ease;
}

.gic-progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.gic-progress-step {
    text-align: center;
    flex: 1;
    position: relative;
}

.gic-step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.gic-progress-step.gic-active .gic-step-number {
    background: var(--gic-primary-color, #2196f3);
    color: white;
}

.gic-step-label {
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.gic-progress-step.gic-active .gic-step-label {
    color: var(--gic-primary-color, #2196f3);
    font-weight: bold;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .gic-progress {
        margin: 15px 0 25px 0;
    }

    .gic-progress-bar {
        margin: 30px 0;
        height: 6px; /* Slightly thicker bar */
    }

    .gic-progress-step {
        padding: 0 5px;
    }

    .gic-step-number {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-bottom: 12px;
    }

    .gic-step-label {
        font-size: 13px;
        line-height: 1.3;
        padding: 0 4px;
    }
}

/* Even smaller screens */
@media screen and (max-width: 480px) {
    .gic-progress-steps {
        gap: 8px;
    }

    .gic-step-number {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .gic-step-label {
        font-size: 12px;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Remove bottom margin from first form group */
.gic-form-step .gic-form-group:first-child {
    margin-bottom: 0;
}


/* 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;
    display: block;
}

.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%;
}
