:root {
    --primary: #8e44ad;
    --primary-light: #9b59b6;
    --dark: #2c3e50;
    --text: #333;
    --bg-light: #fdfdfd;
    --transition: all 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    background: #fff;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--primary);
    letter-spacing: -1px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary);
}

.btn-appointment {
    background: var(--primary);
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-appointment:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-title p {
    color: #888;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

footer h4 {
    color: #fff;
    margin-bottom: 20px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: #fff;
}

/* Form Enhancements */
.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(142, 68, 173, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(142, 68, 173, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: #fdfdfd;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: #fff;
    box-shadow: 0 10px 20px rgba(142, 68, 173, 0.05);
    transform: translateY(-2px);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 18px 30px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 15px 30px rgba(142, 68, 173, 0.2);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(142, 68, 173, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== TABLET (max-width: 992px) ========== */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }

    nav.open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    nav ul li a {
        display: block;
        padding: 15px 30px;
        font-size: 1.05rem;
        border-bottom: 1px solid #f0f0f0;
    }

    nav ul li a:hover {
        background: #f8f4fb;
    }

    .header-cta {
        display: none;
    }

    section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .form-card {
        padding: 35px 25px;
        border-radius: 25px;
    }
}

/* ========== MOBILE (max-width: 768px) ========== */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    /* Footer */
    footer {
        padding: 40px 0 20px;
    }

    footer h4 {
        margin-bottom: 12px;
    }

    /* Page Header */
    .page-header h1 {
        font-size: 2rem !important;
    }

    /* Form */
    .form-card {
        padding: 25px 18px;
        border-radius: 20px;
    }

    .input-group input,
    .input-group select,
    .input-group textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 15px 25px;
        font-size: 1rem;
    }
}

/* ========== SMALL MOBILE (max-width: 480px) ========== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    section {
        padding: 30px 0;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .form-card {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .btn-appointment {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Mobile Nav Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}