﻿/* Modal styling */
#appointmentModal .modal-dialog {
    max-width: 900px;
    margin: 20px auto;
}

#appointmentModal .modal-content {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#appointmentModal .modal-body {
    padding: 0;
}

/* Appointment scheduler styles */
.demo-container {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    min-height: 450px;
    max-height: 80vh;
}

/* Sidebar styles */
.sidebar {
    width: 35%;
    background: linear-gradient(135deg, #1a2a6c, #2b5876);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgb(231 239 255);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #203b6f;
    transition: background 0.3s;
    z-index: 10;
}

    .close-btn:hover {
        background: rgb(194 216 255);
    }

.sidebar .logo {
    width: 120px;
    margin: 10px 0 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.sidebar .sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar .sidebar-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.sidebar .sidebar-description {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 20px;
}

.sidebar .appointment-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.sidebar .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

    .sidebar .info-item:last-child {
        margin-bottom: 0;
    }

.sidebar .info-icon {
    width: 16px;
    margin-right: 10px;
    opacity: 0.8;
}

.sidebar .info-text {
    font-size: 13px;
}

.sidebar .contact-info {
    margin-top: auto;
}

    .sidebar .contact-info p {
        margin-bottom: 6px;
        font-size: 13px;
        opacity: 0.9;
    }

    .sidebar .contact-info .highlight {
        font-weight: 600;
        opacity: 1;
    }
    .sidebar .contact-info .highlight a{
        font-weight: 600;
        opacity: 1;
        color:#fff;
    }

/* Main content styles */
.main-content {
    width: 65%;
    padding: 20px;
    overflow-y: auto;
}
.main-content select {
    appearance: auto;
}

    .main-content .section-title {
        font-size: 18px;
        font-weight: 600;
        color: #1a2a6c;
        margin-bottom: 6px;
    }

    .main-content .section-subtitle {
        color: #666;
        font-size: 13px;
        margin-bottom: 15px;
    }

    /* Step indicator styles */
    .main-content .step-indicator {
        display: flex;
        margin-bottom: 20px;
    }

    .main-content .step {
        display: flex;
        align-items: center;
        font-size: 13px;
        color: #999;
        margin-right: 20px;
        position: relative;
    }

        .main-content .step.active {
            color: #1a2a6c;
            font-weight: 600;
        }

    .main-content .step-number {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #f5f7fa;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 6px;
        font-size: 12px;
        transition: all 0.3s;
    }

    .main-content .step.active .step-number {
        background: #1a2a6c;
        color: white;
        transform: scale(1.1);
    }

    .main-content .step:not(:last-child):after {
        content: "";
        position: absolute;
        top: 50%;
        right: -15px;
        width: 12px;
        height: 1px;
        background: #ddd;
    }

/* Calendar and time container */
.calendar-time-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.calendar-section, .time-section {
    flex: 1;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 15px;
}

/* Calendar styles */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.month-title {
    font-weight: 600;
    font-size: 15px;
    color: #1a2a6c;
}

.nav-buttons {
    display: flex;
    gap: 8px;
}

.nav-btn {
    background: #f5f7fa;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1a2a6c;
    font-size: 12px;
    transition: all 0.3s;
}

    .nav-btn:hover {
        background: #e6efff;
        transform: scale(1.1);
    }

    .nav-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    font-size: 11px;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.day {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

    .day:hover:not(.disabled):not(.selected) {
        background: #f0f5ff;
        border-color: #1a2a6c;
    }

.today {
    background: #e6f7ff;
    font-weight: 600;
    border-color: #b3e0ff;
}

.selected {
    background: #1a2a6c;
    color: white;
    border-color: #1a2a6c;
    transform: scale(1.05);
}

.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Timezone selector styles */
.timezone-selector {
    margin-top: 15px;
}

    .timezone-selector label {
        display: block;
        margin-bottom: 6px;
        font-size: 13px;
        font-weight: 600;
        color: #333;
    }

.timezone-dropdown {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    color: #1c1b1b!important;
}

    .timezone-dropdown:focus {
        border-color: #1a2a6c;
        outline: none;
        box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1);
    }

/* Time section styles */
.time-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.selected-date-display {
    font-weight: 600;
    font-size: 14px;
    color: #1a2a6c;
}

.time-slots-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 5px;
    padding-top:5px;
}

.time-slot {
    padding: 10px 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

    .time-slot:hover {
        background: #f0f5ff;
        border-color: #1a2a6c;
        transform: translateY(-2px);
    }

    .time-slot.selected {
        background: #1a2a6c;
        color: white;
        border-color: #1a2a6c;
        transform: translateY(-2px);
        box-shadow: 0 2px 4px rgba(26, 42, 108, 0.2);
    }

/* Form styles */
.form-section {
    display: none;
    margin-top: 20px;
    border-top: 1px solid #eaeaea;
    padding-top: 15px;
}

    .form-section.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }

.form-row {
    display: flex;
    gap: 12px;
    /*margin-bottom: 18px;*/
}

.form-group {
    flex: 1;
    margin-bottom:0px!important;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-size: 13px;
        color: #333;
        font-weight: 500;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 13px;
        transition: all 0.3s;
        color: #1c1b1b;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: #1a2a6c;
            outline: none;
            box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1);
        }

    .form-group textarea {
        resize: vertical;
        min-height: 80px;
    }

/* Button styles */
.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 5px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: #1a2a6c;
    color: white;
    box-shadow: 0 2px 4px rgba(26, 42, 108, 0.2);
}

    .btn-primary:hover {
        background: #2b5876;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(26, 42, 108, 0.3);
    }

.btn-secondary {
    background: #f5f7fa;
    color: #1a2a6c;
}

    .btn-secondary:hover {
        background: #e6efff;
        transform: translateY(-1px);
    }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 1024px) {
    .demo-container {
        flex-direction: column;
        min-height: auto;
        max-height: none;
    }

    .sidebar, .main-content {
        width: 100%;
    }

    .sidebar {
        padding: 20px;
    }

    .main-content {
        padding: 20px;
        max-height: none;
    }

    .calendar-time-container {
        flex-direction: column;
    }

    .time-slots-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    #appointmentModal .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }

    .time-slots-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-indicator {
        flex-direction: column;
        gap: 12px;
    }

    .step {
        margin-right: 0;
    }

        .step:not(:last-child):after {
            display: none;
        }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .sidebar .sidebar-title {
        font-size: 18px;
    }

    .sidebar .appointment-info {
        padding: 12px;
    }

    .main-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .time-slots-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 15px 12px;
    }

    .main-content {
        padding: 12px;
    }

    .sidebar .logo {
        width: 100px;
        margin-bottom: 15px;
    }

    .sidebar .sidebar-title {
        font-size: 16px;
    }

    .section-title {
        font-size: 16px;
    }

    .days {
        gap: 3px;
    }

    .day {
        height: 28px;
        font-size: 11px;
    }
}
