/* Custom styles for the parking widget */
.gsp-parking-widget {
    max-width: 100%;
    padding: 1rem;
}

/* Form controls with improved touch targets for mobile */
.form-control,
.form-select {
    color: #333; /* Better contrast for WCAG */
    padding: 12px;
    min-height: 48px; /* Larger touch target for mobile */
    border: 2px solid #666; /* Darker border for better contrast */
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
    transition: all .2s linear;
    font-size: 16px; /* Prevent iOS zoom on focus */
}

/* Focus states for accessibility */
.form-control:focus,
.form-select:focus {
    border-color: #333;
    background: #fff;
    outline: 2px solid #0066CC;
    outline-offset: 2px;
    box-shadow: none;
}

/* Labels with improved contrast */
.form-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Custom button styles that override Elementor */
.gsp-parking-button {
    background-color: #FFD504 !important;
    color: #000 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    min-height: 48px !important;
    width: 100% !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
    text-transform: none !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.gsp-parking-button:hover {
    opacity: 0.9 !important;
    background-color: #FFD504 !important;
    color: #000 !important;
}

.gsp-parking-button:focus {
    outline: 2px solid #0066CC !important;
    outline-offset: 2px !important;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .form-label {
        font-size: 0.9375rem;
    }
    
    .col-md-6.mb-3 {
        margin-bottom: 1rem !important;
    }
}

/* Error states with proper contrast */
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #B50000; /* WCAG compliant red */
}

.invalid-feedback {
    font-size: 0.875rem;
    color: #B50000; /* WCAG compliant red */
    margin-top: 0.25rem;
}

/* Skip navigation for screen readers */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Forceful button override styles */
#gspParkingWidget button[type="submit"],
#gspParkingWidget .gsp-parking-button,
#gspParkingWidget button[type="submit"]:hover,
#gspParkingWidget button[type="submit"]:focus,
#gspParkingWidget button[type="submit"]:active {
    background-color: #FFD504 !important;
    color: #000 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    min-height: 48px !important;
    width: 100% !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
    text-transform: none !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    display: block !important;
    position: relative !important;
    text-align: center !important;
    font-family: inherit !important;
    outline: none !important;
}

#gspParkingWidget button[type="submit"]:hover {
    opacity: 0.9 !important;
    background-color: #FFD504 !important;
    color: #000 !important;
    text-decoration: none !important;
}