/* FloorFlow Booking System - Brand Matched Styles with 2px Radius */

.floorflow-booking-container {
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 2px;  /* Changed from 4px to 2px */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Header Section - Updated with FloorFlow Brand Colors */
.floorflow-header {
    text-align: center;
    padding: 32px 24px 24px;
    background: linear-gradient(135deg, #30373F 0%, #495057 100%);
    color: white;
}

.floorflow-logo-img {
    max-height: 48px;
    width: auto;
    margin-bottom: 16px;
}

.floorflow-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.floorflow-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
    color: #ffffff !important;
}

/* Form Section */
.floorflow-form-section {
    padding: 32px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.floorflow-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #30373F;
    margin-bottom: 20px;
    line-height: 1.4;
}

.floorflow-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.floorflow-postcode-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 2px;  /* Changed from 4px to 2px */
    font-size: 14px;
    color: #30373F;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.floorflow-postcode-input:focus {
    outline: none;
    border-color: #E6AF5D;
    background: white;
    box-shadow: 0 0 0 3px rgba(230, 175, 93, 0.1);
}

.floorflow-postcode-input::placeholder {
    color: #9ca3af;
}

/* Submit Button - FloorFlow Brand Style */
.floorflow-postcode-submit {
    background: linear-gradient(135deg, #E6AF5D 0%, #d49d4a 100%);
    color: #30373F;
    border: none;
    padding: 10px 20px !important;
    border-radius: 4px !important;  /* Changed from 8px to 2px */
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 90px !important;
    min-height: 42px !important;
}

.floorflow-postcode-submit:hover {
    background: linear-gradient(135deg, #d49d4a 0%, #c8913e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 175, 93, 0.3);
}

.floorflow-postcode-submit:active {
    transform: translateY(0);
}

.floorflow-postcode-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.floorflow-button-icon {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.floorflow-postcode-submit:hover .floorflow-button-icon {
    transform: translateX(2px);
}

/* Error Messages */
.floorflow-error-message {
    background: #fef2f2;
    border: 2px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 2px;  /* Changed from 8px to 2px */
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
}

/* Footer Section */
.floorflow-footer {
    padding: 0 24px 32px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.floorflow-contact-text {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.floorflow-contact-link {
    color: #E6AF5D;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: color 0.2s ease;
}

.floorflow-contact-link:hover {
    color: #d49d4a;
    text-decoration: underline;
}

/* Calendar Container - Matching Brand Style */
.floorflow-calendar-container {
    min-height: 600px;
    background: #ffffff;
    border-radius: 2px;  /* Changed from 4px to 2px */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.floorflow-calendar-header {
    padding: 32px 24px 24px;
    background: linear-gradient(135deg, #30373F 0%, #495057 100%);
    color: white;
    text-align: center;
}

.floorflow-calendar-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.floorflow-calendar-subtitle {
    font-size: 14px;
    color: #ffffff !important;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

.floorflow-calendar-content {
    padding: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Non-Serviced Area */
.floorflow-nonserviced-container {
    padding: 48px 24px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.floorflow-nonserviced-title {
    font-size: 24px;
    color: #30373F;
    margin: 0 0 16px 0;
    font-weight: 700;
}

.floorflow-nonserviced-message {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 32px 0;
}

.floorflow-nonserviced-postcode {
    color: #E6AF5D;
    font-weight: 600;
}

.floorflow-nonserviced-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.floorflow-contact-button,
.floorflow-phone-button {
    padding: 12px 24px;
    border-radius: 2px;  /* Changed from 8px to 2px */
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 48px;
}

.floorflow-contact-button {
    background: linear-gradient(135deg, #E6AF5D 0%, #d49d4a 100%);
    color: #30373F;
}

.floorflow-contact-button:hover {
    background: linear-gradient(135deg, #d49d4a 0%, #c8913e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 175, 93, 0.3);
}

.floorflow-phone-button {
    background: white;
    color: #E6AF5D;
    border: 2px solid #E6AF5D;
}

.floorflow-phone-button:hover {
    background: #E6AF5D;
    color: #30373F;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 175, 93, 0.3);
}

/* Back Button - Brand Matching */
.floorflow-calendar-back {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #E6AF5D 0%, #d49d4a 100%);
    border: none;
    color: #30373F !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0 0 2px 2px;  /* Changed from 12px to 2px */
}

.floorflow-calendar-back:hover {
    background: linear-gradient(135deg, #d49d4a 0%, #c8913e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 175, 93, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .floorflow-booking-container {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .floorflow-input-group {
        flex-direction: column;
    }
    
    .floorflow-postcode-submit {
        justify-content: center;
        width: 100%;
    }
    
    .floorflow-nonserviced-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .floorflow-contact-button,
    .floorflow-phone-button {
        width: 100%;
        justify-content: center;
    }
}

/* Loading States */
.floorflow-postcode-submit.loading {
    opacity: 0.7;
    pointer-events: none;
}

.floorflow-postcode-submit.loading .floorflow-button-text::after {
    content: '...';
    animation: floorflow-dots 1.5s steps(4, end) infinite;
}

@keyframes floorflow-dots {
    0%, 20% { 
        color: rgba(48, 55, 63, 0.4);
        text-shadow: .25em 0 0 rgba(48, 55, 63, 0.4),
                     .5em 0 0 rgba(48, 55, 63, 0.4);
    }
    40% { 
        color: #30373F;
        text-shadow: .25em 0 0 rgba(48, 55, 63, 0.4),
                     .5em 0 0 rgba(48, 55, 63, 0.4);
    }
    60% { 
        text-shadow: .25em 0 0 #30373F,
                     .5em 0 0 rgba(48, 55, 63, 0.4);
    }
    80%, 100% { 
        text-shadow: .25em 0 0 #30373F,
                     .5em 0 0 #30373F;
    }
}

/* Calendly Integration Overrides */
.calendly-inline-widget {
    border-radius: 0 0 2px 2px !important;  /* Changed from 12px to 2px */
    overflow: hidden !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .floorflow-postcode-submit {
        border: 2px solid #30373F;
    }
    
    .floorflow-postcode-input {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .floorflow-postcode-submit,
    .floorflow-contact-button,
    .floorflow-phone-button,
    .floorflow-calendar-back {
        transition: none;
    }
}