/**
 * Schedule Meeting Page Styles
 * Version 1.0
 */

/* ===================== */
/* HERO SECTION */
/* ===================== */

.schedule-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}

.schedule-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

.hero-icon i {
    font-size: 2.5rem;
    color: #fff;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 20px 60px rgba(99, 102, 241, 0.5);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================== */
/* BOOKING SECTION */
/* ===================== */

.booking-section {
    padding: 60px 0 100px;
    background: linear-gradient(180deg, #0f172a 0%, #1a1a2e 100%);
    min-height: calc(100vh - 400px);
}

.booking-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
}

/* ===================== */
/* INFO PANEL (Left) */
/* ===================== */

.info-panel {
    padding: 40px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.profile-section {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #6366f1;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.profile-section .role {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Meeting Types */
.meeting-types {
    margin-bottom: 2rem;
}

.meeting-types h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meeting-types h4 i {
    color: #6366f1;
}

.type-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.type-card {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-card:hover,
.type-card.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    transform: translateY(-2px);
}

.type-card i {
    font-size: 1.5rem;
    color: #6366f1;
    margin-bottom: 0.5rem;
    display: block;
}

.type-card span {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
}

.type-card small {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

/* Info Details */
.info-details {
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.detail-item i {
    width: 24px;
    color: #6366f1;
    font-size: 1rem;
}

.detail-item span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Share Section */
.share-section {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-section h4 i {
    color: #6366f1;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #6366f1;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background: #6366f1;
    color: #fff;
    transform: translateY(-2px);
}

.copy-feedback {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #10b981;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== */
/* FORM PANEL (Right) */
/* ===================== */

.form-panel {
    padding: 40px;
    background: rgba(15, 23, 42, 0.5);
    height: 100%;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step.active .step-number,
.step.completed .step-number {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}

.step.completed .step-number {
    background: #10b981;
    border-color: #10b981;
}

.step-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    transition: all 0.3s ease;
}

.step.active .step-label,
.step.completed .step-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236366f1' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.time-slot {
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover:not(.unavailable) {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.time-slot.selected {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.time-slot.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* Booking Summary */
.booking-summary {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.summary-item i {
    color: #6366f1;
    font-size: 1rem;
    margin-top: 0.25rem;
}

.summary-item .label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.summary-item .value {
    display: block;
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}

.confirmation-note {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
}

.confirmation-note i {
    color: #6366f1;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.confirmation-note p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Booking Success */
.booking-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.booking-success h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.booking-success p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.booking-reference {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.booking-reference span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.booking-reference strong {
    font-size: 1.25rem;
    color: #6366f1;
    margin-left: 0.5rem;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===================== */
/* FLATPICKR CUSTOMIZATION */
/* ===================== */

.flatpickr-calendar {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    border-radius: 12px !important;
}

.flatpickr-months {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px 12px 0 0;
}

.flatpickr-month {
    color: #fff !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: #fff !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    color: #fff !important;
    fill: #fff !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.flatpickr-weekday {
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 500 !important;
}

.flatpickr-day {
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px !important;
}

.flatpickr-day:hover {
    background: rgba(99, 102, 241, 0.3) !important;
    border-color: transparent !important;
}

.flatpickr-day.today {
    border-color: #6366f1 !important;
}

.flatpickr-day.selected {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #fff !important;
}

.flatpickr-day.flatpickr-disabled {
    color: rgba(255, 255, 255, 0.2) !important;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */

@media (max-width: 991px) {
    .booking-card .row {
        flex-direction: column;
    }
    
    .info-panel {
        padding: 30px;
    }
    
    .form-panel {
        padding: 30px;
    }
    
    .type-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .step-label {
        display: none;
    }
}

@media (max-width: 767px) {
    .schedule-hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .type-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .info-panel {
        padding: 20px;
    }
    
    .form-panel {
        padding: 20px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .time-slots {
        grid-template-columns: 1fr 1fr;
    }
}
