/**
 * Pro Clean Quotation - Frontend Styles
 * 
 * @package ProClean\Quotation
 * @since 1.0.0
 */

/* ==========================================================================
   Quote Form Container
   ========================================================================== */

.pcq-quote-form-container {
    max-width: 1140px;
    margin: auto;
    margin-top: 2rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e8ebed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.pcq-quote-form-container.default {
    border: 1px solid #e8ebed;
}

.pcq-form-title {
    text-align: center;
    color: #1a1a1a;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    padding: 2rem 2rem 1rem;
    line-height: 1.3;
}

.pcq-form-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    padding: 0 2rem 1.5rem;
    line-height: 1.5;
}

/* ==========================================================================
   Form Layout
   ========================================================================== */

.pcq-quote-form {
    display: block;
    padding: 0;
}

.pcq-quote-form.pcq-two-columns .pcq-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.pcq-quote-form.pcq-two-columns .pcq-form-row:last-child {
    margin-bottom: 0;
}

.pcq-quote-form.pcq-single-column .pcq-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* ==========================================================================
   Form Sections
   ========================================================================== */

.pcq-form-section {
    padding: 2rem 2rem;
    background: #ffffff;
    border-radius: 0;
    border-left: none;
    border-bottom: 1px solid #f3f4f6;
    margin: 0;
}

.pcq-form-section:last-of-type {
    border-bottom: none;
}

.pcq-form-section h4,
.pcq-form-section p[style*="font-weight: 600"] {
    color: #111827;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: none;
    letter-spacing: 0;
}

.pcq-form-section h4::before,
.pcq-form-section p[style*="font-weight: 600"]::before {
    content: '•';
    color: #111827;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */

.pcq-form-field {
    margin-bottom: 0;
}

.pcq-form-field:last-child {
    margin-bottom: 0;
}

.pcq-form-field label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.pcq-form-field input,
.pcq-form-field select,
.pcq-form-field textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.9375rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: #ffffff;
    box-sizing: border-box;
    color: #111827;
    line-height: 1.5;
}

.pcq-form-field input:focus,
.pcq-form-field select:focus,
.pcq-form-field textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.pcq-form-field input:invalid,
.pcq-form-field select:invalid,
.pcq-form-field textarea:invalid {
    border-color: #ef4444;
}

.pcq-form-field input::placeholder,
.pcq-form-field textarea::placeholder {
    color: #9ca3af;
}

.pcq-form-field small {
    display: block;
    color: #6b7280;
    font-size: 0.8125rem;
    margin-top: 0.4rem;
    line-height: 1.4;
}

.required {
    color: #ef4444;
    font-weight: 600;
    margin-left: 2px;
}

/* ==========================================================================
   Radio Groups
   ========================================================================== */

.pcq-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.875rem;
    margin-top: 0;
}

/* Horizontal scrolling for 3+ services */
.pcq-radio-group.pcq-scrollable {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f3f4f6;
    padding-bottom: 0.5rem;
}

.pcq-radio-group.pcq-scrollable::-webkit-scrollbar {
    height: 6px;
}

.pcq-radio-group.pcq-scrollable::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.pcq-radio-group.pcq-scrollable::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
    transition: background 0.15s ease;
}

.pcq-radio-group.pcq-scrollable::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.pcq-radio-group.pcq-scrollable .pcq-radio-label {
    flex: 0 0 auto;
    width: calc(33.333% - 0.875rem);
    min-width: 240px;
    max-width: 280px;
}

/* Scroll indicators for horizontal scrolling */
.pcq-radio-group-wrapper {
    position: relative;
}

.pcq-scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.pcq-scroll-indicator.pcq-scroll-right {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0.98) 40%, transparent 100%);
}

.pcq-scroll-indicator.pcq-scroll-left {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.98) 40%, transparent 100%);
}

.pcq-scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
}

.pcq-scroll-indicator svg {
    width: 28px;
    height: 28px;
    color: #60a5fa;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
    display: block;
}

.pcq-scroll-indicator.pcq-scroll-right svg {
    animation: scrollPulseRight 2s ease-in-out infinite !important;
}

.pcq-scroll-indicator.pcq-scroll-left svg {
    animation: scrollPulseLeft 2s ease-in-out infinite !important;
}

@keyframes scrollPulseRight {
    0% {
        transform: translateX(0);
        opacity: 0.7;
    }
    50% {
        transform: translateX(8px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 0.7;
    }
}

@keyframes scrollPulseLeft {
    0% {
        transform: translateX(0);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-8px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 0.7;
    }
}

/* Service card layout - Full title, 1-line description */
.pcq-radio-label .pcq-radio-text {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.pcq-radio-label .pcq-radio-text strong {
    display: block;
    max-width: 100%;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.3;
    word-wrap: break-word;
}

.pcq-radio-label .pcq-radio-text small {
    display: block;
    display: -webkit-box;
    max-width: 100%;
    height: 1.4em;
    max-height: 1.4em;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* Empty state for no services */
.pcq-no-services {
    padding: 2rem;
    text-align: center;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 4px;
}

.pcq-no-services p {
    margin: 0;
    color: #92400e;
    font-weight: 500;
}

.pcq-radio-group label {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 500;
    font-size: 0.9375rem;
    color: #374151;
}

.pcq-radio-group label:hover {
    border-color: #60a5fa;
    background: #f9fafb;
}

.pcq-radio-group input[type="radio"] {
    width: auto;
    margin-right: 0.625rem;
    margin-bottom: 0;
    accent-color: #60a5fa;
}

.pcq-radio-group label:has(input[type="radio"]:checked) {
    border-color: #60a5fa;
    background: #eff6ff;
    color: #1e40af;
}

/* ==========================================================================
   Checkbox Fields
   ========================================================================== */

.pcq-checkbox-field {
    margin-bottom: 0.75rem;
}

.pcq-checkbox-field label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
    font-weight: 400;
}

.pcq-checkbox-field input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    margin-top: 0.15rem;
    accent-color: #60a5fa;
}

.pcq-checkbox-field a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.pcq-checkbox-field a:hover {
    text-decoration: underline;
    color: #3b82f6;
}

/* ==========================================================================
   Price Display
   ========================================================================== */

.pcq-price-display {
    background: #ffffff;
    color: #111827;
    padding: 2rem;
    border-radius: 4px;
    margin: 0 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pcq-price-display h4,
.pcq-price-display p[style*="font-weight: 600"] {
    color: #111827;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
}

.pcq-price-breakdown {
    background: #f9fafb;
    border-radius: 4px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.pcq-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 0.9375rem;
}

.pcq-price-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.125rem;
    padding-top: 0.875rem;
    border-top: 2px solid #60a5fa;
    color: #60a5fa;
    margin-top: 0.5rem;
}

.pcq-price-label {
    font-weight: 500;
}

.pcq-price-amount {
    font-weight: 600;
    font-size: 1rem;
}

.pcq-price-disclaimer {
    margin-top: 1.25rem;
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.pcq-price-disclaimer small {
    color: #6b7280;
    font-size: 0.8125rem;
    line-height: 1.5;
    display: block;
}

/* ==========================================================================
   Form Actions
   ========================================================================== */

.pcq-form-actions {
    text-align: center;
}

[type=button], [type=submit], button {
    border-radius: 4px;
    display: inline-block;
    font-size: 1rem;
    padding: .625rem 1.25rem;
    text-align: center;
    transition: all .2s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    white-space: nowrap;
    line-height: 1.5;
}

/* ==========================================================================
   Unified Button System - High Specificity to Override Theme Styles
   ========================================================================== */

/* Primary Button (Green) - Main CTAs and Submit Actions */
.pcq-quote-form-container .pcq-form-actions .pcq-submit-btn,
.pcq-quote-form .pcq-form-actions .pcq-submit-btn,
button.pcq-submit-btn,
.pcq-quote-form-container .pcq-btn-primary,
.pcq-success-actions .pcq-btn-primary,
.pcq-form-actions .pcq-btn-primary,
a.pcq-btn-primary,
button.pcq-btn-primary {
    background: #5a8f3a !important;
    background-color: #5a8f3a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    position: relative;
    overflow: hidden;
    padding: 0.75rem 2.5rem !important;
    font-size: 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    box-shadow: 0 2px 4px rgba(90, 143, 58, 0.2) !important;
    text-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.pcq-quote-form-container .pcq-form-actions .pcq-submit-btn:hover,
.pcq-quote-form .pcq-form-actions .pcq-submit-btn:hover,
button.pcq-submit-btn:hover,
.pcq-btn-primary:hover,
a.pcq-btn-primary:hover,
button.pcq-btn-primary:hover {
    background: #4a7a2e !important;
    background-color: #4a7a2e !important;
    color: #ffffff !important;
    border: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(90, 143, 58, 0.3) !important;
    text-decoration: none !important;
}

.pcq-submit-btn:active,
.pcq-btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(90, 143, 58, 0.2) !important;
}

.pcq-submit-btn:disabled,
.pcq-btn-primary:disabled,
.pcq-btn-primary.disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Large Button Variant */
.pcq-btn-large,
.pcq-btn-primary.pcq-btn-large {
    font-size: 1.0625rem !important;
}

/* Secondary Button (White/Gray) - Alternative Actions */
.pcq-quote-form-container .pcq-btn-secondary,
.pcq-form-actions .pcq-btn-secondary,
a.pcq-btn-secondary,
button.pcq-btn-secondary {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #374151 !important;
    border: 2px solid #d1d5db !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 0.75rem 2.5rem !important;
    font-size: 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    text-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.pcq-btn-secondary:hover,
a.pcq-btn-secondary:hover,
button.pcq-btn-secondary:hover {
    background: #f9fafb !important;
    background-color: #f9fafb !important;
    border-color: #9ca3af !important;
    color: #374151 !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.pcq-btn-secondary:active {
    transform: translateY(0) !important;
    box-shadow: none !important;
}

.pcq-btn-secondary:disabled,
.pcq-btn-secondary.disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.pcq-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pcq-btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: pcq-spin 1s linear infinite;
}

@keyframes pcq-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Messages
   ========================================================================== */

.pcq-form-messages {
    margin: 1.5rem 2rem;
}

.pcq-message {
    padding: 0;
    border-radius: 4px;
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9375rem;
    border: none;
    background: none;
}

.pcq-message:last-child {
    margin-bottom: 0;
}

.pcq-message.success {
    background: #ffffff;
    color: #111827;
    border: none;
}

.pcq-message.success h3,
.pcq-message.success h4 {
    color: #111827;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.pcq-message.success .pcq-success-content {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.pcq-message.success .pcq-success-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 0.9375rem;
}

.pcq-message.success .pcq-success-row:last-child {
    border-bottom: none;
}

.pcq-message.success .pcq-success-label {
    font-weight: 600;
    color: #111827;
}

.pcq-message.success .pcq-success-value {
    font-weight: 600;
    color: #374151;
}

.pcq-message.success .pcq-booking-link {
    display: inline-block;
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
}

.pcq-message.success .pcq-booking-link:hover {
    text-decoration: underline;
    color: #3b82f6;
}

.pcq-message.success .pcq-confirmation-note {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1rem;
    line-height: 1.5;
}

.pcq-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 4px;
    padding: 1rem 1.25rem;
    border-left: 3px solid #ef4444;
}

.pcq-message.info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
    border-radius: 4px;
    padding: 1rem 1.25rem;
    border-left: 3px solid #60a5fa;
}

/* ==========================================================================
   Field Errors
   ========================================================================== */

.pcq-field-error {
    color: #dc2626;
    font-size: 0.8125rem;
    margin-top: 0.35rem;
    display: block;
    font-weight: 500;
}

.pcq-form-field.has-error input,
.pcq-form-field.has-error select,
.pcq-form-field.has-error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   Maintenance Notice
   ========================================================================== */

.pcq-maintenance-notice {
    background: #fef3c7;
    color: #92400e;
    padding: 1.25rem;
    border: 1px solid #fcd34d;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9375rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .pcq-quote-form-container {
        margin: 1rem;
        border-radius: 4px;
    }
    
    .pcq-form-title {
        font-size: 1.5rem;
        padding: 1.5rem 1.5rem 0.75rem;
    }
    
    .pcq-form-subtitle {
        padding: 0 1.5rem 1.25rem;
    }
    
    .pcq-form-section {
        padding: 1.5rem 1.5rem;
    }
    
    .pcq-quote-form.pcq-two-columns .pcq-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pcq-radio-group {
        grid-template-columns: 1fr;
    }
    
    .pcq-form-actions {
        padding: 1.5rem;
    }
    
    /* Responsive Button Styles */
    .pcq-submit-btn,
    .pcq-btn-primary,
    .pcq-btn-secondary {
        width: 100% !important;
        padding: 0.875rem 2rem !important;
        justify-content: center !important;
    }
    
    .pcq-price-display {
        padding: 1.5rem;
        margin: 1.5rem 1.5rem 0;
    }
    
    .pcq-form-messages {
        margin: 1.25rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .pcq-quote-form-container {
        margin: 0.5rem;
        border-radius: 4px;
    }
    
    .pcq-form-title {
        font-size: 1.375rem;
    }
    
    .pcq-form-section {
        padding: 1.25rem;
    }
    
    .pcq-form-field input,
    .pcq-form-field select,
    .pcq-form-field textarea {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .pcq-quote-form-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .pcq-submit-btn,
    .pcq-form-actions {
        display: none;
    }
    
    .pcq-price-display {
        background: #f5f5f5 !important;
        color: #333 !important;
        box-shadow: none;
    }
}

/* ==========================================================================
   Accessibility Enhancements
   ========================================================================== */

.pcq-form-field input:focus,
.pcq-form-field select:focus,
.pcq-form-field textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.pcq-submit-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   High Contrast Mode
   ========================================================================== */

@media (prefers-contrast: high) {
    .pcq-form-field input,
    .pcq-form-field select,
    .pcq-form-field textarea {
        border-width: 3px;
    }
    
    .pcq-submit-btn {
        border: 3px solid #ffffff;
    }
}

/* ==========================================================================
   Booking Calendar Styles
   ========================================================================== */

.pcq-booking-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.pcq-quote-summary {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.pcq-quote-summary h4,
.pcq-quote-summary p[style*="font-weight: 600"] {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
}

.pcq-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.pcq-summary-table tr {
    border-bottom: 1px solid #e1e5e9;
}

.pcq-summary-table tr:last-child {
    border-bottom: none;
}

.pcq-summary-table td {
    padding: 0.75rem 0;
}

.pcq-summary-table td:first-child {
    color: #7f8c8d;
    font-weight: 500;
}

.pcq-summary-table td:last-child {
    text-align: right;
}

.pcq-price-highlight {
    color: #2196F3;
    font-size: 1.5rem;
    font-weight: 700;
}

.pcq-date-input {
    width: 100%;
    max-width: 400px;
    padding: 0.875rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pcq-date-input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.pcq-date-input:hover {
    border-color: #2196F3;
}

.pcq-time-slots-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.pcq-time-slots-container h5,
.pcq-time-slots-container p[style*="font-weight: 600"] {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0 0 1.25rem 0;
    font-weight: 600;
    text-align: center;
}

.pcq-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

/* Override grid for no-slots message */
.pcq-time-slots-container .pcq-no-slots-container,
.pcq-no-slots-container {
    display: block !important;
    grid-template-columns: none !important;
}

.pcq-time-slot {
    padding: 0.875rem 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
    font-size: 0.875rem;
    color: #2c3e50;
    line-height: 1.3;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    word-wrap: break-word;
    hyphens: auto;
}

.pcq-slot-available {
    border-color: #60a5fa;
    background: #eff6ff;
    color: #1e40af;
    font-weight: 600;
}

.pcq-slot-available:hover {
    border-color: #3b82f6;
    background: #dbeafe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
    color: #1e3a8a;
}

.pcq-slot-unavailable {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #e0e0e0;
}

.pcq-time-slots-container .pcq-no-slots,
.pcq-no-slots-container .pcq-no-slots,
.pcq-no-slots {
    text-align: center;
    color: #7f8c8d;
    padding: 2rem;
    font-style: italic;
    white-space: normal !important;
    display: block !important;
    width: 100% !important;
    line-height: 1.6;
    word-wrap: break-word;
    max-width: 100%;
    /* Override any button-like styles */
    border: none !important;
    background: transparent !important;
    cursor: default !important;
    min-height: auto !important;
    flex-direction: column !important;
}

.pcq-loading {
    text-align: center;
    padding: 2rem;
    color: #2196F3;
}

.pcq-error {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.pcq-info {
    background: #e3f2fd;
    border: 2px solid #2196F3;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    color: #1976d2;
    line-height: 1.6;
}

.pcq-info p {
    margin: 0;
}

.pcq-info p + p {
    margin-top: 0.75rem;
    font-size: 0.9em;
    color: #1565c0;
}

.pcq-info strong {
    font-weight: 600;
    color: #0d47a1;
}

.pcq-booking-confirmation {
    background: #f8f9fa;
    border: 2px solid #2196F3;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.pcq-booking-confirmation h5,
.pcq-booking-confirmation p[style*="font-weight: 600"] {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
}

#pcq-selected-datetime {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Button styles moved to unified button system above (lines 356-450) */

.pcq-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.pcq-no-quote-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.pcq-no-quote-notice p {
    color: #856404;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .pcq-booking-form-container {
        padding: 1rem;
    }
    
    .pcq-quote-summary {
        padding: 1rem !important;
    }
    
    .pcq-booking-calendar-wrapper {
        padding: 1rem !important;
    }
    
    .pcq-date-input {
        max-width: 100%;
    }
    
    .pcq-time-slots-container {
        padding: 1rem;
    }

    .pcq-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .pcq-time-slot {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        min-height: 50px;
        line-height: 1.2;
    }

    .pcq-form-actions {
        flex-direction: column;
    }

    .pcq-btn-primary,
    .pcq-btn-secondary {
        width: 100%;
    }
}

/* ==========================================================================
   Live Price Display (Duplicate removed - styles consolidated above)
   ========================================================================== */

.pcq-price-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #60a5fa;
    font-size: 0.95rem;
}

.pcq-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e3e8f7;
    border-top: 4px solid #60a5fa;
    border-radius: 50%;
    animation: pcq-spin 0.8s linear infinite;
}

@keyframes pcq-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Price Items - Styles consolidated with main price display section above */

/* Responsive */
@media (max-width: 768px) {
    .pcq-price-display {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .pcq-price-display h4,
    .pcq-price-display p[style*="font-weight: 600"] {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .pcq-price-breakdown {
        padding: 1rem;
    }

    .pcq-price-final {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .pcq-price-final-amount {
        font-size: 1.75rem;
    }

    .pcq-price-item,
    .pcq-price-total {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Booking Confirmation Page
   ========================================================================== */

/* Outer wrapper for proper spacing and containment */
.pcq-confirmation-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 2rem 1rem;
    margin: 0 auto;
    min-height: 400px;
    position: relative;
    z-index: 1;
    clear: both;
    overflow: visible;
}

.pcq-quote-success-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e8ebed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.pcq-success-header {
    text-align: left;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.pcq-success-title {
    color: #111827;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    text-align: left;
}

.pcq-success-message {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
    text-align: left;
}

.pcq-quote-details-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 1.5rem;
    margin: 2rem;
}

.pcq-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.pcq-detail-row:first-child {
    padding-top: 0;
}

.pcq-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pcq-detail-label {
    color: #111827;
    font-size: 0.9375rem;
    font-weight: 600;
}

.pcq-detail-value {
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 600;
}

.pcq-price-row {
    background: transparent;
    margin: 0;
    padding: 0.75rem 0;
    border-top: none;
    border-bottom: none;
}

.pcq-price-row:last-child {
    border-bottom: none;
    padding-top: 0.875rem;
    padding-bottom: 0;
    border-top: 2px solid #60a5fa;
    margin-top: 0.5rem;
}

.pcq-price-highlight {
    color: #60a5fa;
    font-size: 1.125rem;
    font-weight: 600;
}

.pcq-quote-reference {
    margin: 0;
    padding: 1.5rem 2rem;
    border-top: 1px solid #f3f4f6;
}

.pcq-small-text {
    color: #6b7280;
    font-size: 0.8125rem;
    margin: 0;
    line-height: 1.5;
}

/* Responsive Confirmation Page */
@media (max-width: 768px) {
    .pcq-confirmation-wrapper {
        padding: 1rem 0.5rem;
    }

    .pcq-quote-success-container {
        padding: 0;
        margin: 0;
    }

    .pcq-success-header {
        padding: 1.5rem;
    }

    .pcq-quote-details-card {
        margin: 1.5rem;
    }

    .pcq-quote-reference {
        padding: 1.25rem 1.5rem;
    }

    .pcq-success-title {
        font-size: 1.25rem;
    }

    .pcq-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}