/* InnSync Booking Widget Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

.innsync-widget-container {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    box-sizing: border-box;
    background: rgba(15, 20, 32, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Optional Light Mode / Theme adaptability */
.innsync-widget-container.light-theme {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.innsync-booking-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.innsync-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.25rem;
    width: 100%;
}

.innsync-field-group {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.innsync-field-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.innsync-widget-container.light-theme .innsync-field-group label {
    color: #475569;
}

.innsync-field-group input[type="date"],
.innsync-field-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(22, 28, 44, 0.6);
    color: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: all 0.25s ease;
    height: 48px;
}

.innsync-widget-container.light-theme .innsync-field-group input[type="date"],
.innsync-widget-container.light-theme .innsync-field-group select {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
}

.innsync-field-group input[type="date"]:hover,
.innsync-field-group select:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(22, 28, 44, 0.8);
}

.innsync-widget-container.light-theme .innsync-field-group input[type="date"]:hover,
.innsync-widget-container.light-theme .innsync-field-group select:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.innsync-field-group input[type="date"]:focus,
.innsync-field-group select:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
    background: rgba(22, 28, 44, 0.9);
}

.innsync-widget-container.light-theme .innsync-field-group input[type="date"]:focus,
.innsync-widget-container.light-theme .innsync-field-group select:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
    background: #ffffff;
}

.innsync-submit-group {
    flex: 1 2 240px;
}

.innsync-search-btn {
    width: 100%;
    height: 48px;
    padding: 0 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(90deg, #06b6d4 0%, #3b82f6 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.innsync-search-btn:hover {
    background: linear-gradient(90deg, #0891b2 0%, #2563eb 100%);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
    transform: translateY(-1px);
}

.innsync-search-btn:active {
    transform: translateY(1px);
}

/* Adjust for responsive layout on smaller screens */
@media (max-width: 768px) {
    .innsync-widget-container {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .innsync-form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .innsync-field-group {
        flex: 1 1 auto;
    }
    
    .innsync-submit-group {
        margin-top: 0.5rem;
    }
}
