/**
 * Booking Picker Styles
 * 
 * Styling for the service/location picker shortcode
 */

.wcs-picker-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--global-body-font-family, inherit);
}

.wcs-picker-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.wcs-picker-step {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wcs-picker-title {
    margin: 0 0 10px 0;
}

/* Location Grid */
.wcs-location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.wcs-location-option {
    cursor: pointer;
    display: block;
}

.wcs-location-input {
    margin-right: 10px;
}

.wcs-location-option {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid #d9dfe8;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 12px;
}

.wcs-location-option:hover {
    border-color: var(--global-palette1);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.1);
}

.wcs-location-option:has(.wcs-location-input:checked) {
    border-color: var(--global-palette3, #007cba);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15);
    background: #e5ebff;
}


.wcs-location-card {
    border: none !important;
}

.wcs-location-name {
    font-weight: bold;
}

.wcs-location-address {
    font-size: 0.9rem;
    color: var(--global-palette4, #666);
    line-height: 1.4;
}

/* Service Grid */
.wcs-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.wcs-service-option {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid #d9dfe8;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px;
}

.wcs-service-card {
    flex: 1;
    border: none !important;
}

.wcs-service-input {
    margin-right: 10px;
}

.wcs-service-card {
    text-align: left;
    position: relative;
    border: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.wcs-service-option:hover {
    border-color: var(--global-palette1);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.1);
}

.wcs-service-option:has(.wcs-service-input:checked) {
    border-color: var(--global-palette3, #007cba);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15);
    background: #e5ebff;
}


.wcs-service-name {
    font-weight: bold;
    font-size: 1.4rem;
    color: var(--global-palette1, #333);
    margin: 0;
    font-family: var(--global-heading-font-family, inherit);
    flex: 1;
}

.wcs-service-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--global-palette4, #666);
    margin: 0;
    white-space: nowrap;
}

/* Actions */
.wcs-picker-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.wcs-continue-btn {
    background: var(--global-palette1, #333);
    color: var(--global-palette8, #fff);
    border: none;
    border-radius: 100px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--global-heading-font-family, inherit);
    min-width: 200px;
}

.wcs-continue-btn:hover:not(:disabled) {
    background: var(--global-palette2, #005a87);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.3);
}

.wcs-continue-btn:disabled {
    background: var(--global-palette6, #e0e0e0);
    color: var(--global-palette4, #666);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Error Messages */
.wcs-error-message {
    color: var(--global-palette5, #d32f2f);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 5px;
    min-height: 1.2em;
}

/* Link Styles */
.wcs-booking-link {
    display: inline-block;
    background: var(--global-palette3, #007cba);
    color: var(--global-palette8, #fff);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--global-heading-font-family, inherit);
}

.wcs-booking-link:hover {
    background: var(--global-palette2, #005a87);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.wcs-link-error {
    color: var(--global-palette5, #d32f2f);
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcs-picker-container {
        padding: 15px;
    }
    
    .wcs-location-grid,
    .wcs-service-grid {
        grid-template-columns: 1fr;
    }
    
    .wcs-location-card,
    .wcs-service-card {
        padding: 15px;
    }
    
    .wcs-picker-title {
        font-size: 1.1rem;
    }
    
    .wcs-continue-btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .wcs-picker-container {
        padding: 10px;
    }
    
    .wcs-location-name,
    .wcs-service-name {
        font-size: 1rem;
    }
    
    .wcs-service-price {
        font-size: 1.2rem;
    }
}

/* Focus States for Accessibility */
.wcs-location-input:focus,
.wcs-service-input:focus {
    outline: 2px solid var(--global-palette3, #007cba);
    outline-offset: 2px;
}

.wcs-continue-btn:focus {
    outline: 2px solid var(--global-palette3, #007cba);
    outline-offset: 2px;
}

.wcs-booking-link:focus {
    outline: 2px solid var(--global-palette3, #007cba);
    outline-offset: 2px;
}
