/* Shared Calendar Booking Styles */
/* These styles are for the beautiful calendar rendering and layout */

/* LAYOUT STYLES */
.calendar-booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.calendar-section, .booking-form-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-bg) 100%);
    padding: 2.5rem;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.calendar-section::before, .booking-form-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 242, 254, 0.05), transparent);
    transform: rotate(45deg);
    pointer-events: none;
}

.calendar-section h3, .booking-form-section h3 {
    color: var(--text-color);
    margin-bottom: 2rem;
    background: none;
    -webkit-text-fill-color: initial;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.calendar-widget {
    min-height: 500px;
    background: var(--dark-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.calendar-loading {
    text-align: center;
    color: var(--text-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.calendar-loading i {
    font-size: 3rem;
    color: #00f2fe;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.calendar-loading p {
    font-size: 1.1rem;
    margin: 0;
}

.timezone-info {
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    background: rgba(0, 242, 254, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.timezone-info i {
    color: #00f2fe;
}

/* CONSULTATION FORM */
.consultation-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00f2fe;
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.1);
}

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

.selected-plan-display,
.selected-time-display {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    position: relative;
    z-index: 2;
}

.selected-plan-display h4,
.selected-time-display h4 {
    color: #00f2fe;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.selected-plan-display p,
.selected-time-display p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

#submit-booking:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-status {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    display: block;
}

.form-status.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    display: block;
}

.form-status.loading {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: #00f2fe;
    display: block;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .calendar-booking-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .calendar-section,
    .booking-form-section {
        padding: 1.5rem;
    }
}

/* CALENDAR CONTENT STYLES */

.calendar-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 242, 254, 0.2);
}

.calendar-header h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calendar-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.calendar-slots {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 15px;
}

.date-group {
    margin-bottom: 2rem;
    background: rgba(0, 242, 254, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 242, 254, 0.1);
}

.date-group h5 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-group h5::before {
    content: '📅';
    font-size: 1.2rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.75rem;
}

.time-slot {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--dark-bg) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.2), transparent);
    transition: left 0.3s ease;
}

.time-slot:hover {
    border-color: #00f2fe;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(76, 103, 246, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2);
}

.time-slot:hover::before {
    left: 100%;
}

.time-slot.selected {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    font-weight: 600;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
}

.time-slot.selected::before {
    display: none;
}

.calendar-note {
    margin-top: 2rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(76, 103, 246, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-note p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-note i {
    color: #00f2fe;
    font-size: 1rem;
}

.timezone-notice, .demo-notice {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(76, 103, 246, 0.05));
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 0.9rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timezone-notice i, .demo-notice i {
    color: #00f2fe;
    font-size: 1.1rem;
}

.no-slots {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-slots i {
    font-size: 4rem;
    color: #666;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.no-slots p {
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    line-height: 1.5;
}

.refresh-button {
    background: linear-gradient(135deg, var(--primary-bg), var(--dark-bg));
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.refresh-button:hover {
    border-color: #00f2fe;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(76, 103, 246, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2);
}

.refresh-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.calendar-slots::-webkit-scrollbar {
    width: 8px;
}

.calendar-slots::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.calendar-slots::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00f2fe, #4c67f6);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.calendar-slots::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4c67f6, #00f2fe);
    box-shadow: 0 2px 8px rgba(0, 242, 254, 0.3);
}
