/* Enhanced Booking Tabs and Forms Layout */

/* Booking Page Container - Full Width */
.booking.booking-page {
    padding: 1rem 0;
    min-height: 100vh;
    background: #f8fafc;
    width: 100%;
}

.booking .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 2rem;
}

/* Form Booking Container - Full Width */
.form-booking {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 1300px;
    width: 100%;
    margin: 0;
}

/* Tabs Container - Centered */
.tabs-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.tabs-booking {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    width: auto;
    max-width: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tabs-booking li {
    flex: 1;
    text-align: center;
    cursor: pointer;
    padding: 1.5rem 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 70px;
    white-space: nowrap;
}

.tabs-booking li:last-child {
    border-right: none;
}

.tabs-booking li:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tabs-booking li.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-weight: 700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.tabs-booking li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: white;
    border-radius: 2px 2px 0 0;
}

.tabs-booking li i {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Tab Content - Full Width */
.tab-content-booking {
    position: relative;
    min-height: 600px;
    width: 100%;
    padding: 0;
}

.tab-pane {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
    padding: 0;
}

.tab-pane.active {
    display: block !important;
    opacity: 1;
}

/* Professional Form Container - Full Width */
.professional-form-container {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.form-wrapper {
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.form-header {
    display: none; /* Hide duplicate header */
}

.professional-form {
    padding: 3rem 4rem !important;
    background: transparent !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Form Sections - Full Width */
.form-section {
    width: 100% !important;
    max-width: none !important;
    margin-bottom: 2rem;
    box-sizing: border-box !important;
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 0 0 3rem 0 !important;
    padding-bottom: 1.5rem !important;
    border-bottom: 4px solid #667eea !important;
    text-align: center;
    letter-spacing: -0.025em;
}

/* Form Rows - Full Width */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: none;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* Form Labels */
.form-label {
    font-weight: 700 !important;
    color: #374151 !important;
    margin-bottom: 1rem !important;
    font-size: 1.1rem !important;
    text-align: right;
    letter-spacing: 0.025em;
}

/* Form Inputs - Full Width */
.form-input,
.form-select,
.form-textarea {
    width: 100% !important;
    padding: 1.25rem 1.5rem !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 16px !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
    color: #374151 !important;
    box-sizing: border-box;
    min-height: 60px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1) !important;
    transform: translateY(-1px);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
}

/* Radio Groups - Full Width */
.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    width: 100%;
    max-width: none;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    width: 100%;
    min-height: 120px;
}

.radio-option:hover {
    border-color: #667eea;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 3px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    margin-top: 0.125rem;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #667eea;
    background: #667eea;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.radio-content strong {
    display: block;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.radio-content small {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Error Messages */
.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fef2f2;
    border-radius: 8px;
    border-right: 3px solid #ef4444;
}

/* Submit Button - Full Width */
.form-actions {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 3px solid #e5e7eb;
    width: 100%;
}

.submit-btn {
    width: 100% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 1.5rem 3rem !important;
    border-radius: 16px !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    min-height: 70px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4) !important;
}

.submit-btn:active {
    transform: translateY(0) !important;
}

.submit-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Alert Styles - Full Width */
.alert {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.alert-success {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border: 2px solid #fecaca;
    color: #dc2626;
}

.alert ul {
    margin: 0;
    padding-right: 1rem;
}

/* Contact Info - Full Width */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h4 {
    margin: 0 0 0.75rem 0;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 700;
}

.info-content p {
    margin: 0.5rem 0;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.info-content a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.info-content a:hover {
    text-decoration: underline;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.char-count {
    font-weight: 700;
    color: #667eea;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.submit-btn[wire\:loading] {
    position: relative;
}

.submit-btn[wire\:loading]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid transparent;
    border-top: 3px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking.booking-page {
        padding: 0.5rem 0;
    }
    
    .booking .container {
        padding: 0 1rem;
    }

    .form-booking {
        border-radius: 16px;
        margin: 0;
        min-height: auto;
    }

    .tabs-container {
        padding: 1rem 1.5rem;
    }

    .tabs-booking {
        max-width: 500px;
        border-radius: 12px;
    }

    .tabs-booking li {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        min-height: 90px;
    }

    .tabs-booking li i {
        font-size: 1.8rem;
    }

    .professional-form {
        padding: 2rem !important;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .radio-group {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .radio-option {
        padding: 1.5rem;
        min-height: 100px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 1.5rem;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem !important;
        text-align: center;
        margin-bottom: 2rem !important;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 1rem 1.25rem !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
        min-height: 55px;
    }

    .form-label {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .submit-btn {
        padding: 1.25rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 60px;
    }

    .form-actions {
        margin-top: 3rem;
        padding-top: 2rem;
    }
}

@media (max-width: 480px) {
    .booking .container {
        padding: 0 0.5rem;
    }

    .tabs-container {
        padding: 0.75rem 1rem;
    }

    .tabs-booking {
        max-width: 400px;
        border-radius: 10px;
    }

    .tabs-booking li {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
        min-height: 75px;
    }

    .tabs-booking li i {
        font-size: 1.5rem;
    }

    .professional-form {
        padding: 1.5rem !important;
    }

    .form-row {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.875rem 1rem !important;
        min-height: 50px;
    }

    .radio-option {
        padding: 1rem;
        min-height: 80px;
    }

    .radio-group {
        gap: 1rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem !important;
        margin-bottom: 1.5rem !important;
    }

    .submit-btn {
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        min-height: 55px;
    }

    .form-actions {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

/* RTL Support */
[dir="rtl"] .error-message {
    border-right: none;
    border-left: 3px solid #ef4444;
}

/* Force Full Width - Override any conflicting styles */
.professional-form-container *,
.form-wrapper *,
.professional-form * {
    box-sizing: border-box !important;
}

.professional-form-container,
.form-wrapper,
.professional-form,
.form-section,
.form-row,
.form-group {
    width: 100% !important;
    max-width: none !important;
}

/* Ensure Livewire components take full width */
[wire\:id] {
    width: 100% !important;
    max-width: none !important;
}

/* Override any container constraints */
.container {
    max-width: none !important;
    width: 100% !important;
}

/* Ensure tab content takes full width */
.tab-content-booking,
.tab-pane {
    width: 100% !important;
    max-width: none !important;
}

/* Force tab visibility when active */
.tab-pane.active[style*="display: block"] {
    display: block !important;
}

.tab-pane[style*="display: none"] {
    display: none !important;
}

/* Ensure proper tab switching */
.tab-pane:not(.active) {
    display: none !important;
}

.tab-pane.active {
    display: block !important;
}

[dir="rtl"] .char-counter {
    text-align: right;
}

[dir="rtl"] .form-label {
    text-align: right;
}

/* Focus States for Accessibility */
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.submit-btn:focus,
.radio-option:focus-within {
    outline: 2px solid #667eea !important;
    outline-offset: 2px !important;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .form-input,
    .form-select,
    .form-textarea {
        border-width: 3px !important;
    }
    
    .submit-btn {
        border: 2px solid #000 !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .form-input,
    .form-select,
    .form-textarea,
    .submit-btn,
    .radio-option,
    .tab-pane {
        transition: none !important;
    }
}
