/* === Variables === */
:root {
    --primary-bg: #b8b5c9;
    --secondary-bg: #9d99b3;
    --accent-color: #4a4565;
    --text-dark: #2d2a3e;
    --text-light: #6b6880;
    --card-bg: rgba(255, 255, 255, 0.15);
    --card-border: rgba(255, 255, 255, 0.2);
    --white: #ffffff;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --font-family: 'Outfit', sans-serif;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    width: 100% !important;
}

body {
    font-family: var(--font-family);
    background: var(--primary-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative;
}

/* Prevent ANY horizontal overflow */
html, body {
    overflow-x: hidden !important;
}

section, header, footer, main, nav, .section-container {
    max-width: 100vw;
}

/* === Decorative Shapes === */
body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--secondary-bg);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

body::before {
    width: 400px;
    height: 400px;
    top: -100px;
    right: 0;
    transform: translateX(50%);
}

body::after {
    width: 350px;
    height: 350px;
    bottom: 10%;
    left: 0;
    transform: translateX(-50%);
}

/* Additional decorative shapes */
.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--secondary-bg);
    border-radius: 50%;
    bottom: -100px;
    left: 0;
    z-index: -1;
}


.studies::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--secondary-bg);
    border-radius: 50%;
    opacity: 0.35;
    top: 50%;
    right: -150px;
    transform: translateY(-50%);
    z-index: -1;
}

.services::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--secondary-bg);
    border-radius: 50%;
    opacity: 0.4;
    top: -80px;
    left: -100px;
    z-index: -1;
}

.services::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--secondary-bg);
    border-radius: 50%;
    opacity: 0.3;
    bottom: -80px;
    right: 10%;
    z-index: -1;
}

/* === Navigation === */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(184, 181, 201, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    font-style: italic;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-cta {
    background: var(--accent-color) !important;
    color: var(--white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #3a3655;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-outline {
    background: #3d3d4a;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-outline:hover {
    background: #52525e;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* === Hero Section === */
.hero {
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

/* .hero-bg {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 864px;
    height: 660px;
    background: var(--secondary-bg);
    border-radius: 50%;
    opacity: 0.3;
    transform: translate(-50%, -50%);
    z-index: -1;
} */

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-line {
    width: 500px;
    height: 30px;
    border: none;
    border-top: 8px solid var(--accent-color);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 2rem;
    max-width: 450px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 410px;
    height: 526px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.hero-placeholder {
    width: 410px;
    height: 526px;
    background: var(--card-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--text-light);
}

.hero-badge {
    position: absolute;
    top: 20px;
    right: 0;
    background: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.hero-badge i {
    color: #10b981;
    font-size: 1.1rem;
}

/* === Section Styles === */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.no-data {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

.no-data a {
    color: #3d3d4a;
    font-weight: 600;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.no-data a:hover {
    opacity: 0.7;
}

/* === Reviews Section === */
.reviews {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.reviews-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviews-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.reviews-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
}

.review-card {
    flex: 0 0 calc(50% - 0.75rem);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.review-meta {
    flex: 1;
}

.review-author {
    font-weight: 600;
    display: block;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.review-stars i {
    color: #d1d5db;
    font-size: 0.9rem;
}

.review-stars i.active {
    color: #fbbf24;
}

.review-content {
    color: var(--text-light);
    font-size: 0.95rem;
}

.slider-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.slider-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.slider-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots span.active {
    background: var(--text-dark);
    transform: scale(1.2);
}

/* === Studies Section === */
.studies {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.study-card {
    background: rgba(63, 64, 85, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 1.25rem;
    max-height: 550px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.study-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.study-meta {
    display: flex;
    flex-direction: column;
}

.study-author {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
}

.study-category {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 2px;
}

.study-header .btn-sm {
    background: #3d3d4a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.study-header .btn-sm:hover {
    background: #52525e;
}

.study-image {
    margin-bottom: 1rem;
    border-radius: 16px;
    overflow: hidden;
    width: 380px;
    height: 256px;
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.study-image img {
    width: 380px;
    height: 256px;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.study-card:hover .study-image img {
    transform: scale(1.05);
}

.study-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(150, 140, 170, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
}

.study-excerpt {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* === Services Section === */
.services {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.services-list ul {
    list-style: none;
}

.services-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--card-border);
}

.services-list li i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.services-image {
    position: relative;
}

.services-image img {
    width: 500px;
    height: 500px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow);
    filter: grayscale(100%);
}

.services-placeholder {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: var(--card-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--text-light);
}

.services-badge {
    position: absolute;
    background: var(--white);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.services-badge i {
    color: #10b981;
    font-size: 1.2rem;
}

/* Top left - chat icon */
.services-badge-top-left {
    top: 0;
    left: -20px;
    padding: 1rem;
    border-radius: 50%;
}

.services-badge-top-left i {
    color: var(--accent-color);
    font-size: 1.3rem;
}

/* Top right - stats badge */
.services-badge-top-right {
    top: 0;
    right: 85px;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    gap: 0.2rem;
}

.services-badge-top-right .badge-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
}

.services-badge-top-right .badge-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.services-badge-top-right i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-size: 1.5rem;
}

/* Bottom left - check badge */
.services-badge-bottom-left {
    bottom: -20px;
    left: 20px;
}

.services-badge-bottom-left i {
    color: #10b981;
}

/* Bottom right - grid icon */
.services-badge-bottom-right {
    bottom: 0px;
    rotate: -25deg;
    right: 110px;
    padding: 1rem;
    border-radius: 12px;
    background: var(--accent-color);
}

.services-badge-bottom-right i {
    color: var(--white);
    font-size: 1.3rem;
}

/* === Booking Section === */
.booking {
    padding: 6rem 2rem;
    background: rgba(63, 64, 85, 0.3)

}

.booking .section-title {
    color: var(--text-dark);
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.calendar-wrapper,
.slots-wrapper {
    background: rgba(63, 64, 85, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    color: var(--text-dark);
    font-weight: 600;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-nav button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.calendar-nav button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-days span {
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
    padding: 0.5rem;
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-date {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.calendar-date:not(.other-month):hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.calendar-date.available {
    background: #8A8EA4;
    color: var(--white);
}

.calendar-date.available:hover {
    background: rgba(16, 185, 129, 0.5);
}

.calendar-date.selected {
    background: #8A8EA4 !important;
    color: var(--accent-color) !important;
}

.calendar-date.other-month {
    opacity: 0.3;
    cursor: default;
}

.slots-wrapper h3 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.slots-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.slots-hint {
    color: var(--text-dark);
    text-align: center;
    padding: 2rem;
}

.slot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
}

.slot-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
}

.slot-info .dot {
    width: 10px;
    height: 10px;
    background: #3F4055;
    border-radius: 50%;
}

.slot-title {
    font-weight: 500;
}

.slot-time {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-content h3 {
    margin-bottom: 0.5rem;
}

.modal-content > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* === Contact Section === */
.contact {
    padding: 6rem 0 0;
    position: relative;
    overflow: hidden;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    overflow: hidden;
    margin-bottom: 100px;
}

.contact-info {
    background: rgba(63, 64, 85, 0.6);
    padding: 4rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-info::after {
    content: '';
    position: absolute;
    right: -50px;
    top: 90%;
    transform: translateY(-50%);
    width: 350px;
    height: 350px;
    background: #3F4055;
    border-radius: 50%;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-info > p {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.contact-info ul {
    list-style: none;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info li i {
    font-size: 1.2rem;
}

.contact-social {
    display: flex;
    gap: 1rem;
}

.contact-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.contact-social a:hover {
    background: var(--white);
    color: var(--accent-color);
}

.contact-form {
    background: rgba(63, 64, 85, 0.3);
    padding: 4rem;
}

.contact-form .btn {
    float: right;
    padding: 1rem 2.5rem;
    background: #3d3d4a;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-form .btn:hover {
    background: #52525e;
}

/* === Form Styles === */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 0;
    border: none;
    border-bottom: 1px solid var(--text-light);
    border-radius: 0;
    background: transparent;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.limit {
    color: #ef4444;
}

/* === Footer === */
.footer {
    background: rgba(63, 64, 85, 0.3);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    font-size: 2.5rem;
    font-style: italic;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-col li i {
    margin-right: 0.5rem;
    opacity: 0.7;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--white);
    color: var(--accent-color);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

/* === Responsive === */

/* Large screens (1200px and below) */
@media (max-width: 1200px) {
    .section-container {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .services-badge-top-right,
    .services-badge-bottom-right {
        right: 0;
    }
}

/* Medium-large screens (1024px and below) */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .studies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .study-image {
        width: 100%;
        height: 200px;
    }
    
    .study-image img {
        width: 100%;
        height: 200px;
    }
    
    .booking-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-image {
        order: -1;
        display: flex;
        justify-content: center;
    }
    
    .services-image img {
        width: 400px;
        height: 400px;
    }
    
    .services-badge-top-left,
    .services-badge-top-right,
    .services-badge-bottom-left,
    .services-badge-bottom-right {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr 2fr;
    }
}

/* Tablet screens (768px and below) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-bg);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 0.75rem;
        border-bottom: 1px solid var(--card-border);
    }
    
    .nav-toggle {
        display: block;
    }
    
    /* Hero */
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        max-width: 100%;
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-line {
        margin-left: auto;
        margin-right: auto;
        width: 300px;
    }
    
    .hero-image {
        display: flex;
        justify-content: center;
    }
    
    .hero-image img {
        width: 300px;
        height: 385px;
    }
    
    .hero-badge {
        display: none;
    }
    
    /* Sections */
    section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-header .btn-outline {
        width: 100%;
        text-align: center;
    }
    
    /* Reviews */
    .reviews-wrapper {
        flex-direction: column;
    }
    
    .slider-btn {
        display: none;
    }
    
    .reviews-slider {
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .reviews-slider::-webkit-scrollbar {
        display: none;
    }
    
    .reviews-track {
        flex-direction: row;
        transform: none !important;
        gap: 1rem;
        width: max-content;
    }
    
    .review-card {
        flex: 0 0 280px;
        width: 280px;
        scroll-snap-align: center;
        padding: 1rem;
    }
    
    .slider-dots {
        display: flex;
        margin-top: 1rem;
    }
    
    /* Studies */
    .studies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .study-card {
        padding: 1rem;
    }
    
    .study-image {
        height: 180px;
    }
    
    .study-image img {
        height: 180px;
    }
    
    /* Services */
    .services-image img {
        width: 100%;
        max-width: 350px;
        height: auto;
    }
    
    .services-list li {
        font-size: 1rem;
    }
    
    /* Booking */
    .booking {
        padding: 3rem 1rem;
    }
    
    .calendar-wrapper,
    .slots-wrapper {
        padding: 1.5rem;
    }
    
    .slot-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .slot-item .btn {
        width: 100%;
    }
    
    /* Contact */
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .contact-form {
        padding: 2rem;
    }
    
    .contact-info::after {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form .btn {
        float: none;
        width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 1rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-col ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-social {
        order: -1;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Small screens (576px and below) */
@media (max-width: 576px) {
    /* Typography */
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Hero */
    .hero-image img {
        width: 250px;
        height: 320px;
    }
    
    .hero-line {
        width: 200px;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Studies */
    .study-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .study-header .btn-sm {
        width: 100%;
        text-align: center;
    }
    
    /* Calendar */
    .calendar-date {
        font-size: 0.8rem;
    }
    
    .calendar-days span {
        font-size: 0.75rem;
    }
    
    /* Contact */
    .contact-info h2 {
        font-size: 1.5rem;
    }
    
    .contact-social a {
        width: 35px;
        height: 35px;
    }
    
    /* Footer */
    .footer-brand h2 {
        font-size: 1.3rem;
    }
    
    .footer-social a {
        width: 32px;
        height: 32px;
    }
}

/* Extra small screens (400px and below) */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-image img {
        width: 200px;
        height: 257px;
    }
    
    .section-container {
        padding: 0 0.75rem;
    }
    
    .study-card {
        padding: 0.75rem;
    }
    
    .calendar-wrapper,
    .slots-wrapper {
        padding: 1rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
}

/* === Review Modal === */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.reviews-header .section-title {
    margin-bottom: 0;
}

.btn-write-review {
    background: #3d3d4a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-write-review:hover {
    transform: translateY(-2px);
}

.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-modal.open {
    display: flex;
    opacity: 1;
}

.review-modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    animation: modalSlideIn 0.4s ease forwards;
}

@keyframes modalSlideIn {
    to {
        transform: translateY(0);
    }
}

.review-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.review-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.review-modal-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.review-form .form-group {
    margin-bottom: 1.5rem;
}

.review-form label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.1);
}

.review-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 2rem;
    color: #ddd;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #f1c40f;
}

.star-rating-input label:hover {
    transform: scale(1.2);
}

.btn-submit-review {
    width: 100%;
    background: #3d3d4a;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-submit-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.btn-submit-review:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success State */
.review-success {
    text-align: center;
    padding: 2rem 0;
}

.review-success i {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 1rem;
    display: block;
}

.review-success h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.review-success p {
    color: #666;
    margin-bottom: 1.5rem;
}

.review-success .btn {
    background: var(--text-dark);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.review-success .btn:hover {
    background: var(--accent-color);
}

/* Responsive */
@media (max-width: 576px) {
    .reviews-header {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-write-review {
        width: 100%;
        justify-content: center;
    }
    
    .review-modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .review-modal-title {
        font-size: 1.5rem;
    }
    
    .star-rating-input label {
        font-size: 1.75rem;
    }
}

