/* ==============================================
   SCEHDULLING AND CONSULTATION PAGES STYLES
   ============================================== */
/* Consultation Section */
.consultation-section {
    padding: 25px;
    background-color: #f4f8fb;
    /* Light gray-blue */
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.consultation-title {
    font-size: 1.9rem;
    font-weight: bold;
    color: #000;
    /* Deep blue */
    margin-bottom: 5px;
}

.consultation-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 20px;
}

/* Calendar Styles */
.calendar-container {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    color: #1d4e89;
    /* Deep blue */
    font-weight: bold;
    margin-bottom: 15px;
}

.month-nav {
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    color: #1d9bf0;
    /* Bright blue */
    cursor: pointer;
    transition: color 0.3s ease;
}

.month-nav:hover {
    color: #1d4e89;
    /* Deep blue on hover */
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-size: 1rem;
    color: #6e767d;
    /* Neutral gray */
    margin-bottom: 10px;
    text-align: center;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.days .date {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9f6ff;
    /* Light blue */
    border-radius: 8px;
    height: 40px;
    color: #1d4e89;
    /* Deep blue */
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.days .date:hover {
    background-color: #1d9bf0;
    /* Bright blue */
    color: #fff;
    /* White text */
}

.days .date.selected {
    background-color: #1d4e89;
    /* Deep blue */
    color: #fff;
    /* White text */
}

.days .today {
    background-color: #ffee58;
    /* Light yellow background */
}

/* Dropdown Styles */
.dropdowns {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin: 20px;
}

.dropdown {
    flex: 1;
    text-align: left;
}

.dropdown label {
    display: block;
    font-size: 1rem;
    color: #4a4a4a;
    /* Muted dark gray */
    margin-bottom: 8px;
}

.dropdown select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    /* Light gray */
    color: #333;
    /* Dark text */
    transition: border-color 0.3s ease;
}

.dropdown select:focus {
    border-color: #1d9bf0;
    /* Bright blue */
    outline: none;
}

/* Parent Container to Center Content */
.center-container {
    display: flex;
    /* Enables flexbox */
    justify-content: center;
    /* Centers horizontally */
    align-items: center;
    /* Centers vertically */
}

/* Medical Records Section */
.medical-records {
    display: flex;
    align-items: center;
    /* Aligns the label and input vertically */
    gap: 10px;
    /* Adds spacing between label and input */
    margin-top: 7px;
    margin-bottom: 15px;
}

.medical-records label {
    font-size: 1rem;
    color: #4a4a4a;
    /* Muted dark gray */
    margin-right: 10px;
}

.medical-records input[type="file"] {
    font-size: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    background-color: #f9f9f9;
    /* Light gray */
    color: #333;
    /* Dark text */
}

/* Submit Button */
.primary-button.submit-button {
    background-color: #1d9bf0;
    /* Bright blue */
    color: #fff;
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 12px;
}

.primary-button.submit-button:hover {
    background-color: #1d4e89;
    /* Deep blue */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================================
   CONSULTATION PAGE STYLES
========================================================== */
/* Video Placeholder Style*/
.video-placeholder {
    width: 100%;
    max-width: 800px;
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ddd;
    margin-bottom: 20px auto;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Button Group */
.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 25px;
    margin-top: 40px;
}

.button {
    padding: 15px 25px;
    font-size: 1rem;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    transform: scale(1.05);
}

.join-button {
    background-color: #1d9bf0;
    padding: 12px 18px;
}

.join-button:hover {
    background-color: #1d4e89;
}

.end-button {
    background-color: #e53935;
    padding: 12px 18px;
}

.end-button:hover {
    background-color: #b71c1c;
}

/* ================================
   DARK MODE - SCHEDULING PAGE
   ================================ */
/* Dark mode background */
.dark-mode .consultation-section {
    background-color: hsl(220, 20%, 15%);
    color: hsl(0, 0%, 90%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid hsl(220, 20%, 25%);
}

/* Dark mode title and subtitle */
.dark-mode .consultation-title,
.dark-mode .consultation-subtitle {
    color: hsl(0, 0%, 95%);
}

.dark-mode .home-icon {
    background-color: rgba(24, 49, 83, 0.85);
    /* Dark blue with slight transparency */
    backdrop-filter: blur(5px);
    /* Subtle background blur */
    border: 2px solid transparent;
}

.dark-mode .search-img {
    background-color: rgba(24, 49, 83, 0.85);
    /* Dark blue with slight transparency */
    backdrop-filter: blur(5px);
    /* Subtle background blur */
    border: 2px solid transparent;
}

/* Dark mode calendar container */
.dark-mode .calendar-container {
    background-color: hsl(220, 30%, 12%);
    border: 1px solid hsl(220, 30%, 20%);
}

/* Dark mode calendar header */
.dark-mode .calendar-header {
    background-color: none;
    color: hsl(0, 0%, 95%);
}

.dark-mode .month-nav {
    background-color: transparent;
}

.dark-mode .month-nav:hover {
    color: hsl(220, 50%, 55%);
}

/* Dark mode weekdays */
.dark-mode .weekdays div {
    color: hsl(0, 0%, 85%);
}

.dark-mode .days div:hover {
    background-color: hsl(220, 40%, 30%);
    transform: scale(1.05);
}

/* Dark mode selected date */
.dark-mode .days .date.selected {
    background-color: hsl(220, 50%, 45%);
    color: hsl(0, 0%, 100%);
}

.dark-mode .days .date.selected:hover {
    background-color: hsl(220, 50%, 60%);
    color: hsl(0, 0%, 100%);
}

.dark-mode .days .date {
    background-color: hsl(204, 100%, 96%);
}

/* Dark mode today’s date highlight */
.dark-mode .days .today {
    background-color: hsl(50, 95%, 60%);
    color: hsl(220, 20%, 15%);
}

/* Dark mode dropdowns */
.dark-mode .dropdowns select {
    background-color: hsl(220, 20%, 25%);
    color: hsl(0, 0%, 100%);
    border: 1px solid hsl(220, 20%, 30%);
    transition: border-color 0.3s ease;
}

.dark-mode .dropdowns select:hover {
    border-color: hsl(220, 50%, 45%);
}

/* Dark mode dropdown labels */
.dark-mode .dropdowns label {
    color: hsl(0, 0%, 90%);
}

/* Dark mode file upload */
.dark-mode .medical-records input[type="file"] {
    background-color: hsl(220, 20%, 25%);
    color: hsl(0, 0%, 90%);
    border: 1px solid hsl(220, 20%, 30%);
}

.dark-mode .medical-records label {
    color: #999;
}

/* Dark mode button */
.dark-mode .submit-button {
    background-color: hsl(204, 87%, 55%);
    /* #1d9bf0 */
    color: hsl(0, 0%, 100%);
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode .submit-button:hover {
    background-color: hsl(211, 67%, 33%);
    /* #1d4e89 */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Dark mode video placeholder */
.dark-mode .video-placeholder {
    background-color: hsl(220, 20%, 18%);
    color: hsl(0, 0%, 95%);
}

/* Dark mode consultation buttons */
.dark-mode .join-button {
    background-color: hsl(204, 87%, 55%);
    /* #1d9bf0 */
}

.dark-mode .join-button:hover {
    background-color: hsl(211, 67%, 33%);
    /* #1d4e89 */
}

.dark-mode .end-button {
    background-color: hsl(4, 78%, 58%);
    /* #e53935 */
}

.dark-mode .end-button:hover {
    background-color: hsl(0, 74%, 41%);
    /* #b71c1c */
}

/* Ensure modals retain their original styles */
.modal-container,
.modal-content,
.modal-header,
.modal-body,
.modal-footer {
    background-color: #fff !important;
    /* Keep white background */
    color: #000 !important;
    /* Keep dark text */
}

/* Preserve Initial Styles in Both Light & Dark Mode */
.downloadAppointment-button {
    background-color: #1d9bf0 !important;
    /* Bright blue */
    color: #fff !important;
    border: none !important;
}

.downloadAppointment-button:hover {
    background-color: #1d4e89 !important;
    /* Deep blue */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Join Consultation Button */
.joinConsultation-button {
    background-color: #1d9bf0 !important;
    /* Bright blue */
    color: #fff !important;
    border: none !important;
}

.joinConsultation-button:hover {
    background-color: #1d4e89 !important;
    /* Deep blue */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Reschedule Button */
.reschedule-button {
    background-color: #e53935 !important;
    /* Light red */
    color: #fff !important;
    border: none !important;
}

.reschedule-button:hover {
    background-color: #cc0000 !important;
    /* Dark red */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Ensure Close Button Color Doesn't Change in Dark Mode */
.dark-mode .modal-close {
    background-color: transparent !important;
    color: #333 !important;
    /* Keep the original dark color */
}

/* ===== Merged from scheduling-modern.css ===== */

.scheduling-modern {
    background:
        radial-gradient(circle at 15% 8%, rgba(52, 152, 255, 0.17), transparent 30%),
        radial-gradient(circle at 92% 18%, rgba(16, 185, 129, 0.14), transparent 26%),
        #edf3fb;
    color: #13253b;
    font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
}

.scheduling-modern header {
    background: rgba(12, 52, 95, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 24;
}

.scheduling-modern .logo-text {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.01em;
}

.scheduling-modern main {
    width: min(1140px, calc(100% - 2rem));
    margin: 2rem auto 0;
    padding: 0;
}

.scheduling-modern .consultation-section {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(247, 252, 255, 0.88));
    border: 1px solid rgba(33, 74, 120, 0.15);
    border-radius: 22px;
    box-shadow: 0 20px 46px rgba(18, 43, 80, 0.14);
    padding: 2rem 1.4rem 1.6rem;
    max-width: 90%;
}

.scheduling-modern .consultation-kicker {
    display: inline-block;
    margin-bottom: 0.7rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #d9ebff;
    color: #0e4b88;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
}

.scheduling-modern .consultation-title {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: clamp(1.8rem, 4.4vw, 2.6rem);
    color: #123c68;
    margin-bottom: 0.35rem;
}

.scheduling-modern .consultation-subtitle {
    color: #5b7088;
    margin-bottom: 1rem;
}

.scheduling-modern .consultation-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 0.9rem;
}

.scheduling-modern .consultation-highlights span {
    background: #f1f8ff;
    border: 1px solid #cfe4f8;
    color: #2f5376;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.scheduling-modern .calendar-container {
    width: 100%;
    max-width: 830px;
    margin: 1rem 0;
    padding: 1.1rem;
    border: 1px solid #d7e4f3;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(16, 43, 79, 0.1);
    box-sizing: border-box;
    overflow: hidden;
}

.scheduling-modern .consultation-section .calendar-container {
    margin-left: auto;
    margin-right: auto;
}

.scheduling-modern .calendar {
    width: 100%;
}

.scheduling-modern .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: #123f6b;
}

.scheduling-modern .month-nav {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #c6dcf3;
    background: #f3f9ff;
    color: #0f4d8a;
}

.scheduling-modern .month-nav:hover {
    background: #d9edff;
}

.scheduling-modern .weekdays div {
    font-size: 0.9rem;
    color: #607992;
    font-weight: 700;
}

.scheduling-modern .weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.scheduling-modern .days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.scheduling-modern .days .date {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef6ff;
    border: 1px solid transparent;
    color: #1c568f;
    border-radius: 10px;
    min-height: 42px;
    font-size: 0.97rem;
}

.scheduling-modern .days .date:hover {
    background: #cee7ff;
    color: #133a63;
    border-color: #9ecbf3;
}

.scheduling-modern .days .date.disabled {
    background: #f3f7fb;
    color: #9aaac0;
    border-color: #e2ebf4;
    cursor: not-allowed;
    opacity: 0.72;
}

.scheduling-modern .days .date.disabled:hover {
    background: #f3f7fb;
    color: #9aaac0;
    border-color: #e2ebf4;
}

.scheduling-modern .days .date.selected {
    background: linear-gradient(145deg, #1e76cc, #135395);
    border-color: transparent;
    color: #ffffff;
}

.scheduling-modern .days .date.selected:hover {
    color: #ffffff;
}

.scheduling-modern .days .today {
    background: #fdf0bd;
    color: #6e5605;
}

.scheduling-modern .dropdowns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 830px;
    gap: 1rem;
    margin: 1rem auto;
}

.scheduling-modern .dropdown {
    flex: 1;
    min-width: 220px;
    text-align: left;
}

.scheduling-modern .dropdown label {
    font-weight: 700;
    color: #355574;
}

.scheduling-modern .dropdown select {
    border: 1px solid #c9dbec;
    background: #fcfeff;
    border-radius: 12px;
    padding: 0.75rem;
}

.scheduling-modern .dropdown select:focus {
    border-color: #4e98dc;
    box-shadow: 0 0 0 3px rgba(78, 152, 220, 0.15);
}

.scheduling-modern .medical-records {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f7fbff;
    border: 1px dashed #bdd8ef;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.scheduling-modern .medical-records label {
    margin: 0;
    font-weight: 700;
    color: #355574;
}

.scheduling-modern .medical-records input[type="file"] {
    background: #ffffff;
    border: 1px solid #ccdeee;
    border-radius: 10px;
}

.scheduling-modern .consultation-note {
    margin: 0.8rem auto 0.2rem;
    width: min(680px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: #446280;
    font-size: 0.9rem;
}

.scheduling-modern .consultation-note i {
    color: #2272bd;
}

.scheduling-modern .primary-button.submit-button {
    margin-top: 0.9rem;
    border-radius: 12px;
    width: min(320px, 100%);
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(145deg, #1f8bf4, #1b6cc1);
}

.scheduling-modern .primary-button.submit-button:hover {
    background: linear-gradient(145deg, #1c77d2, #165ba2);
}

.scheduling-modern footer {
    margin-top: 2rem;
    background: linear-gradient(170deg, #0d3f72, #0f4c86);
}

.scheduling-modern .footer-content {
    width: min(1610px, calc(100% - 2rem));
    margin: 0 auto;
    gap: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.scheduling-modern .footer-links {
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    text-align: right;
}

.scheduling-modern .footer-links a {
    padding: 0.44rem 0.74rem;
    border-radius: 999px;
    border: 1px solid rgba(229, 241, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #e9f3ff;
    font-size: 0.86rem;
}

.scheduling-modern .footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.scheduling-modern .footer-social {
    order: 1;
    margin-right: auto;
}

.scheduling-modern .footer-social ul {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.scheduling-modern .footer-social .item a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(196, 219, 243, 0.46);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 255, 0.94));
    box-shadow: 0 8px 18px rgba(8, 33, 63, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scheduling-modern .footer-social .item a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-color);
    z-index: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s ease;
}

.scheduling-modern .footer-social .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    font-size: 1.2rem;
    color: #123f6e;
    transition: transform 0.35s ease, color 0.35s ease;
    z-index: 1;
}

.scheduling-modern .footer-social .item a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(8, 33, 63, 0.3);
}

.scheduling-modern .footer-social .item a:hover::before {
    transform: scaleY(1);
}

.scheduling-modern .footer-social .item a:hover .icon {
    transform: rotateY(360deg);
    color: #ffffff;
}

.scheduling-modern .footer-copyright {
    margin-top: 0.6rem;
    color: rgba(232, 243, 255, 0.92);
    font-size: 0.88rem;
    text-align: center;
    letter-spacing: 0.01em;
}

.scheduling-modern.dark-mode {
    background:
        radial-gradient(circle at 15% 8%, rgba(52, 152, 255, 0.13), transparent 30%),
        radial-gradient(circle at 92% 18%, rgba(16, 185, 129, 0.09), transparent 26%),
        #0b1727;
}

.scheduling-modern.dark-mode header {
    background: rgba(8, 20, 36, 0.94);
    border-bottom: 1px solid rgba(114, 155, 198, 0.26);
}

.scheduling-modern.dark-mode .logo-text {
    color: #e2effd;
}

.scheduling-modern.dark-mode .home-icon,
.scheduling-modern.dark-mode .search-icon,
.scheduling-modern.dark-mode .user-profile {
    background: linear-gradient(170deg, rgba(22, 43, 69, 0.9), rgba(13, 31, 52, 0.86));
    border-color: rgba(108, 145, 184, 0.52);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

.scheduling-modern.dark-mode .consultation-section {
    background: linear-gradient(165deg, rgba(17, 32, 53, 0.95), rgba(14, 26, 45, 0.9));
    border-color: rgba(89, 127, 167, 0.38);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

.scheduling-modern.dark-mode .consultation-title {
    color: #d7e8ff;
}

.scheduling-modern.dark-mode .consultation-subtitle,
.scheduling-modern.dark-mode .consultation-note {
    color: #a8bfdc;
}

.scheduling-modern.dark-mode .consultation-highlights span {
    background: #1a314d;
    border-color: #2f4d70;
    color: #c7def8;
}

.scheduling-modern.dark-mode .calendar-container,
.scheduling-modern.dark-mode .medical-records {
    background: #16283f;
    border-color: #2f4d70;
}

.scheduling-modern.dark-mode .days .date {
    background: #1f3652;
    color: #cae2ff;
}

.scheduling-modern.dark-mode .days .date.disabled {
    background: #1a2c44;
    color: #6f88a6;
    border-color: #2a4361;
    opacity: 0.64;
}

.scheduling-modern.dark-mode .days .date.disabled:hover {
    background: #1a2c44;
    color: #6f88a6;
    border-color: #2a4361;
}

.scheduling-modern.dark-mode .days .today {
    background: #f2d772;
    color: #4d3900;
    border-color: #d6b64d;
}

.scheduling-modern.dark-mode .days .date.selected {
    background: linear-gradient(145deg, #2a7fce, #1a5ea2);
    color: #ffffff;
    border-color: #4f97da;
}

.scheduling-modern.dark-mode .days .date.selected:hover {
    color: #ffffff;
}

.scheduling-modern.dark-mode .dropdown label,
.scheduling-modern.dark-mode .medical-records label {
    color: #c4daef;
}

.scheduling-modern.dark-mode .dropdown select,
.scheduling-modern.dark-mode .medical-records input[type="file"] {
    background: #112033;
    border-color: #355679;
    color: #e4effc;
}

.scheduling-modern.dark-mode .footer-links a {
    border-color: rgba(116, 154, 195, 0.35);
    background: rgba(26, 50, 78, 0.7);
    color: #d5e8fb;
}

.scheduling-modern.dark-mode .footer-links a:hover {
    background: rgba(46, 79, 116, 0.78);
    color: #f0f7ff;
}

.scheduling-modern.dark-mode .footer-social .item a {
    background: linear-gradient(165deg, #132941, #193652);
    border-color: #34587e;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.36);
}

.scheduling-modern.dark-mode .footer-social .icon {
    color: #cbe2fb;
}

.scheduling-modern.dark-mode .footer-copyright {
    color: rgba(201, 223, 246, 0.9);
}

.scheduling-modern.dark-mode footer {
    background: linear-gradient(170deg, #081a2c, #0e2c48);
    border-top: 1px solid rgba(114, 155, 198, 0.22);
}

@media (max-width: 900px) {
    .scheduling-modern .logo-text {
        font-size: 1.65rem;
    }

    .scheduling-modern main {
        width: calc(100% - 1.4rem);
    }

    .scheduling-modern .calendar-container {
        max-width: none;
    }

    .scheduling-modern .dropdowns {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .scheduling-modern .consultation-section {
        border-radius: 16px;
        padding: 1.2rem 0.8rem 1.2rem;
    }

    .scheduling-modern .calendar-container {
        margin: 0.85rem 0 !important;
        padding: 0.9rem;
    }

    .scheduling-modern .dropdowns {
        margin: 12px 0;
    }

    .scheduling-modern .footer-links {
        order: 2;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-left: 0;
        gap: 0.5rem;
        text-align: center;
    }

    .scheduling-modern .footer-social {
        order: 1;
        margin-right: 0;
    }

    .scheduling-modern .footer-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .scheduling-modern .footer-links a {
        font-size: 0.84rem;
        padding: 0.41rem 0.66rem;
    }

    .scheduling-modern .footer-social .item a {
        width: 2.45rem;
        height: 2.45rem;
    }

    .scheduling-modern .footer-social .icon {
        font-size: 1.1rem;
    }

    .scheduling-modern .footer-copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .scheduling-modern .calendar-container {
        padding: 0.72rem;
        border-radius: 14px;
    }

    .scheduling-modern .calendar-header {
        font-size: 1.2rem;
    }

    .scheduling-modern .days {
        gap: 0.3rem;
    }

    .scheduling-modern .days .date {
        min-height: 36px;
        font-size: 0.9rem;
    }
}

/* ===== Merged from consultation-modern.css ===== */
.consultation-modern {
    background:
        radial-gradient(circle at 12% 10%, rgba(52, 152, 255, 0.16), transparent 30%),
        radial-gradient(circle at 88% 14%, rgba(16, 185, 129, 0.12), transparent 26%),
        #ecf2fa;
    color: #15263f;
    font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
}

.consultation-modern header {
    background: rgba(12, 52, 95, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 24;
}

.consultation-modern .logo-text {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.01em;
}

.consultation-modern main {
    width: min(1040px, calc(100% - 2rem));
    margin: 2rem auto 0;
    padding: 0;
}

.consultation-modern .consultation-main {
    width: min(1040px, calc(100% - 2rem));
    margin: 2rem auto 0;
    padding: 1.8rem 1.3rem;
    border-radius: 22px;
    border: 1px solid rgba(27, 73, 121, 0.16);
    box-shadow: 0 18px 44px rgba(16, 42, 80, 0.14);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(247, 252, 255, 0.9));
    text-align: center;
}

.consultation-modern .consultation-intro h1 {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.45rem);
    color: #123e6b;
    margin-bottom: 0.3rem;
}

.consultation-modern .consultation-intro > p {
    color: #5c728b;
    font-size: 1rem;
}

.consultation-modern .consultation-kicker {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #d9ebff;
    color: #0e4b88;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
}

.consultation-modern .consultation-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.consultation-modern .consultation-highlights span {
    border-radius: 999px;
    border: 1px solid #cfe4f8;
    background: #f1f8ff;
    color: #315578;
    padding: 0.4rem 0.75rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.consultation-modern .video-placeholder {
    margin-top: 1.2rem;
    border-radius: 16px;
    border: 1px solid #d6e4f2;
    box-shadow: 0 14px 28px rgba(16, 43, 79, 0.12);
    background: linear-gradient(170deg, #f4faff, #eaf4ff);
    overflow: hidden;
}

.consultation-modern .video-placeholder p {
    color: #476684;
    font-size: 1rem;
}

.consultation-modern .video-placeholder iframe {
    border: 0;
    display: block;
}

.consultation-modern .button-group {
    margin-top: 1.1rem;
    gap: 0.8rem;
    justify-content: center;
}

.consultation-modern .button {
    min-width: 190px;
    border-radius: 12px;
    font-weight: 700;
}

.consultation-modern .join-button {
    background: linear-gradient(145deg, #1f8bf4, #1b6cc1);
}

.consultation-modern .join-button:hover {
    background: linear-gradient(145deg, #1c77d2, #165ba2);
}

.consultation-modern .end-button {
    background: linear-gradient(145deg, #e85b5b, #c43636);
}

.consultation-modern .end-button:hover {
    background: linear-gradient(145deg, #cb4d4d, #aa2c2c);
}

.consultation-modern .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.consultation-modern .consultation-disclaimer {
    margin-top: 0.9rem;
    color: #607893;
    font-size: 0.9rem;
}

.consultation-modern footer {
    margin-top: 2rem;
    background: linear-gradient(170deg, #0d3f72, #0f4c86);
}

.consultation-modern .footer-content {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    gap: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.consultation-modern .footer-links {
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    text-align: right;
}

.consultation-modern .footer-links a {
    padding: 0.44rem 0.74rem;
    border-radius: 999px;
    border: 1px solid rgba(229, 241, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #e9f3ff;
    font-size: 0.86rem;
}

.consultation-modern .footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.consultation-modern .footer-social {
    order: 1;
    margin-right: auto;
}

.consultation-modern .footer-social ul {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.consultation-modern .footer-social .item a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(196, 219, 243, 0.46);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 255, 0.94));
    box-shadow: 0 8px 18px rgba(8, 33, 63, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.consultation-modern .footer-social .item a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-color);
    z-index: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s ease;
}

.consultation-modern .footer-social .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    font-size: 1.2rem;
    color: #123f6e;
    transition: transform 0.35s ease, color 0.35s ease;
    z-index: 1;
}

.consultation-modern .footer-social .item a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(8, 33, 63, 0.3);
}

.consultation-modern .footer-social .item a:hover::before {
    transform: scaleY(1);
}

.consultation-modern .footer-social .item a:hover .icon {
    transform: rotateY(360deg);
    color: #ffffff;
}

.consultation-modern .footer-copyright {
    margin-top: 0.6rem;
    color: rgba(232, 243, 255, 0.92);
    font-size: 0.88rem;
    text-align: center;
    letter-spacing: 0.01em;
}

.consultation-modern.dark-mode {
    background:
        radial-gradient(circle at 12% 10%, rgba(52, 152, 255, 0.13), transparent 30%),
        radial-gradient(circle at 88% 14%, rgba(16, 185, 129, 0.08), transparent 26%),
        #0b1727;
}

.consultation-modern.dark-mode header {
    background: rgba(8, 20, 36, 0.94);
    border-bottom: 1px solid rgba(114, 155, 198, 0.26);
}

.consultation-modern.dark-mode .logo-text {
    color: #e2effd;
}

.consultation-modern.dark-mode .home-icon,
.consultation-modern.dark-mode .search-icon,
.consultation-modern.dark-mode .user-profile {
    background: linear-gradient(170deg, rgba(22, 43, 69, 0.9), rgba(13, 31, 52, 0.86));
    border-color: rgba(108, 145, 184, 0.52);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

.consultation-modern.dark-mode .consultation-main {
    background: linear-gradient(165deg, rgba(17, 32, 53, 0.95), rgba(14, 26, 45, 0.9));
    border-color: rgba(89, 127, 167, 0.38);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

.consultation-modern.dark-mode .consultation-intro h1 {
    color: #d7e8ff;
}

.consultation-modern.dark-mode .consultation-intro > p,
.consultation-modern.dark-mode .consultation-disclaimer {
    color: #adc3df;
}

.consultation-modern.dark-mode .consultation-highlights span {
    background: #1a314d;
    border-color: #2f4d70;
    color: #c7def8;
}

.consultation-modern.dark-mode .video-placeholder {
    background: linear-gradient(170deg, #16283f, #18314c);
    border-color: #2f4d70;
}

.consultation-modern.dark-mode .video-placeholder p {
    color: #bdd3ec;
}

.consultation-modern.dark-mode .footer-links a {
    border-color: rgba(116, 154, 195, 0.35);
    background: rgba(26, 50, 78, 0.7);
    color: #d5e8fb;
}

.consultation-modern.dark-mode .footer-links a:hover {
    background: rgba(46, 79, 116, 0.78);
    color: #f0f7ff;
}

.consultation-modern.dark-mode .footer-social .item a {
    background: linear-gradient(165deg, #132941, #193652);
    border-color: #34587e;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.36);
}

.consultation-modern.dark-mode .footer-social .icon {
    color: #cbe2fb;
}

.consultation-modern.dark-mode .footer-copyright {
    color: rgba(201, 223, 246, 0.9);
}

.consultation-modern.dark-mode footer {
    background: linear-gradient(170deg, #081a2c, #0e2c48);
    border-top: 1px solid rgba(114, 155, 198, 0.22);
}

@media (max-width: 900px) {
    .consultation-modern .logo-text {
        font-size: 1.65rem;
    }

    .consultation-modern main {
        width: calc(100% - 1.4rem);
    }
}

@media (max-width: 768px) {
    .consultation-highlights {
        justify-content: center !important;
    }

    .consultation-modern .footer-links {
        order: 2;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-left: 0;
        gap: 0.5rem;
        text-align: center;
    }

    .consultation-modern .footer-social {
        order: 1;
        margin-right: 0;
    }

    .consultation-modern .footer-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .consultation-modern .footer-links a {
        font-size: 0.84rem;
        padding: 0.41rem 0.66rem;
    }

    .consultation-modern .footer-social .item a {
        width: 2.45rem;
        height: 2.45rem;
    }

    .consultation-modern .footer-social .icon {
        font-size: 1.1rem;
    }

    .consultation-modern .footer-copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .consultation-modern .consultation-main {
        border-radius: 16px;
        width: calc(100% - 1.2rem);
        padding: 1.2rem 0.9rem;
    }

    .consultation-modern .consultation-highlights {
        justify-content: flex-start;
    }

    .consultation-modern .button {
        width: 100%;
        min-width: 0;
    }
}
