/* Modern Landscape Cal.com Booking Page Styles */

/* Reset and base styles */
* {
    box-sizing: border-box;
}
/* Landscape Booking Container */
.landscape-booking-container {
    display: grid;
    grid-template-columns: minmax(480px, 1fr) 2fr;
    gap: 4rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 700px;
    align-items: start;
}

/* Hero Section */
.cal-hero {
    padding: 4rem 0 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    margin-top: 90px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.1;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Booking Section */
.booking-section {
    padding: 1rem 0 4rem 0;
    background: #fafbfc;
    min-height: 80vh;
}

/* Progress Indicator */
.progress-container {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    padding: 0 2rem;
}

.progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a1a1a 0%, #333333 100%);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 50%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.step-circle {
    width: 48px;
    height: 48px;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.2);
}

.progress-step span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

.progress-step.active span {
    color: #1a1a1a;
}

/* Landscape Booking Container */
.landscape-booking-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 700px;
}

.landscape-booking-container.step-2 {
    display: grid;
    grid-template-columns: 520px 1fr;
    max-width: 1600px;
    gap: 3rem;
    align-items: start;
    flex-direction: row;
    justify-content: flex-start;
}

/* Center form when calendar is hidden (step 1) */
.landscape-booking-container.step-1 {
    grid-template-columns: 1fr;
    justify-items: center;
}

.landscape-booking-container.step-1 .form-section {
    max-width: 600px;
    width: 100%;
}

.landscape-booking-container.step-1 .calendar-section {
    display: none;
}

/* Form Section */
.form-section {
    background: white;
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    height: fit-content;
    position: sticky;
    top: 2rem;
    min-width: 450px;
    width: 100%;
}

.form-header {
    margin-bottom: 3rem;
    text-align: left;
}

.form-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.form-header p {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Form Content */
.form-content {
    display: none;
}

.form-content.active {
    display: block;
}

/* Form Styling */
.booking-form {
    margin: 0;
}

.form-row {
    margin-bottom: 1.75rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafbfc;
    color: #1a1a1a;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:focus {
    outline: none;
    border-color: #1a1a1a;
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.08);
    transform: translateY(-1px);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    background: #fef2f2;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    min-height: 1.2rem;
    font-weight: 500;
}

/* Form Actions */
.form-actions {
    margin-top: 3rem;
}

.btn-primary {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(26, 26, 26, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: #1a1a1a;
    border: 2px solid #e5e7eb;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #1a1a1a;
    transform: translateY(-1px);
}

/* Booking Summary */
.booking-summary {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.booking-summary h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

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

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    color: #374151;
    font-weight: 600;
}

/* Calendar Section */
.calendar-section {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    display: none; /* Hidden by default */
    flex-direction: column;
    height: 100%;
    min-height: 900px;
}

.calendar-section.active {
    display: flex;
}

.calendar-header {
    margin-bottom: 2rem;
    text-align: center;
}

.calendar-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.calendar-header p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

/* Cal Embed Wrapper */
.cal-embed-wrapper {
    flex: 1;
    background: #fafbfc;
    border-radius: 20px;
    padding: 0;
    border: 1px solid #e5e7eb;
    height: 100%;
    min-height: 800px;
}

.cal-embed {
    height: 100%;
    min-height: 800px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: white;
    width: 100%;
}

.cal-embed iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 16px !important;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #64748b;
    background: white;
    border-radius: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f1f5f9;
    border-top: 3px solid #1a1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

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

/* Mobile Toggle (Hidden by default) */
.mobile-toggle {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    z-index: 1000;
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: white;
}

.toggle-btn i {
    font-size: 1rem;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .landscape-booking-container {
        grid-template-columns: minmax(420px, 1fr) 1.5fr;
        gap: 2.5rem;
        max-width: 1200px;
    }
    
    .form-section {
        padding: 3rem;
        min-width: 420px;
    }
    
    .form-header h2 {
        font-size: 2.25rem;
    }
    
    .form-header p {
        font-size: 1.1rem;
    }
    
    .calendar-section {
        padding: 1.5rem;
    }
    
    .cal-embed {
        height: 800px;
    }
}

@media (max-width: 900px) {
    .landscape-booking-container {
        grid-template-columns: 320px 1fr;
        gap: 1.5rem;
    }
    
    .form-section {
        padding: 2rem;
    }
    
    .cal-embed {
        height: 750px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cal-hero {
        padding: 3rem 0 1.5rem 0;
        margin-top: 85px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .progress-container {
        padding: 0 1rem;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .progress-step span {
        font-size: 0.85rem;
    }
    
    /* Mobile Layout - Stack vertically */
    .landscape-booking-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 1rem;
    }
    
    .landscape-booking-container.step-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-section {
        position: static;
        padding: 2rem;
        margin-bottom: 1rem;
        border-radius: 20px;
        max-width: none;
        width: 100%;
    }
    
    .landscape-booking-container.step-2 .form-section {
        position: static;
        margin: 0 0 1rem 0;
    }
    
    .form-header h2 {
        font-size: 1.875rem;
    }
    
    .calendar-section {
        padding: 1.5rem;
        border-radius: 20px;
        display: block !important;
        height: 100%;
        min-height: 700px;
    }
    
    .landscape-booking-container.step-1 .calendar-section {
        display: none !important;
    }
    
    .cal-embed {
        height: 100%;
        min-height: 700px;
    }
    
    /* Show mobile toggle */
    .mobile-toggle {
        display: flex;
    }
    
    .calendar-section.active {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .cal-hero {
        padding: 2.5rem 0 1rem 0;
        margin-top: 80px;
    }
    
    .booking-section {
        padding: 1rem 0 6rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .landscape-booking-container {
        padding: 0 0.5rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .form-header h2 {
        font-size: 1.625rem;
    }
    
    .form-header p {
        font-size: 1rem;
    }
    
    .form-group input {
        padding: 0.875rem 1rem;
    }
    
    .btn-primary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .calendar-section {
        padding: 1rem;
    }
    
    .cal-embed {
        height: 600px;
    }
    
    .mobile-toggle {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        transform: none;
        width: calc(100% - 2rem);
    }
    
    .toggle-btn {
        flex: 1;
        justify-content: center;
        padding: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-section,
    .calendar-section {
        border: 3px solid #1a1a1a;
    }
    
    .step-circle,
    .btn-primary {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .form-group input:focus {
        border-color: #1a1a1a;
        box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading-spinner {
        animation: none;
    }
}

/* Focus states for accessibility */
.cal-embed iframe:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .progress-container,
    .cal-embed,
    .loading-state,
    .mobile-toggle {
        display: none;
    }
    
    .form-section {
        border: 1px solid #1a1a1a;
        box-shadow: none;
    }
    
    .calendar-section::after {
        content: "To book your session, please visit: sukhvinderjaveed.uk/cal";
        display: block;
        text-align: center;
        padding: 2rem;
        font-weight: bold;
    }
}
