* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #eef3f8;
    color: #1f2937;
    line-height: 1.7;
    min-height: 100vh;
}

/* =========================
   Public Header
========================= */

.hm-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #071433;
    padding: 16px 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.hm-container {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
}

.hm-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hm-logo {
    color: white;
    text-decoration: none;
    font-size: 26px;
    font-weight: 800;
}

.hm-logo span {
    color: #20d6c7;
    font-size: 18px;
    margin-left: 4px;
}

.hm-menu {
    display: flex;
    gap: 22px;
}

.hm-menu a {
    color: white;
    text-decoration: none;
    font-weight: 700;
}

/* =========================
   Login/Register
========================= */

.hm-section {
    padding: 42px 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hm-content-card {
    background: white;
    border-radius: 28px;
    padding: 34px;
    box-shadow:
        0 20px 40px rgba(15,23,42,0.08);
    border: 1px solid #e5e7eb;
    max-width: 480px;
}

.hm-content-card h1 {
    font-size: 2.1rem;
    color: #102544;
    margin-bottom: 12px;
}

.hm-kicker {
    color: #14b8a6;
    font-weight: 800;
    margin-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: #22324f;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #d7dfec;
    font-size: 1rem;
}

.hm-btn-primary {
    width: 100%;
    background: linear-gradient(
        135deg,
        #14b8a6,
        #0f766e
    );
    color: white;
    border: none;
    padding: 16px 22px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.register-selection {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
}

.register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;



}

.register-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
}

.register-card h3 {
    color: #102544;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.register-card p {
    color: #64748b;
    line-height: 1.55;
    font-size: 0.92rem;
}

/* =========================
   Home Page
========================= */

.healthmind-home-page .hm-section {
    display: block;
    min-height: auto;
}

.home-hero-clean {
    padding: 60px 0 40px;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
}

.home-hero-text {
    background: white;
    border-radius: 28px;
    padding: 42px;
    box-shadow: 0 12px 30px rgba(15,23,42,0.06);
}

.home-hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    color: #102544;
    margin-bottom: 22px;
}

.home-service-card {
    background: linear-gradient(
        135deg,
        #14b8a6,
        #0f766e
    );
    color: white;
    border-radius: 28px;
    padding: 36px;
}

.home-service-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

.home-service-list span {
    background: rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 14px 16px;
}

.home-section-clean {
    padding: 20px 0 50px;
}

.home-innovation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 20px;
    margin-top: 26px;
}

.home-innovation-card {
    background: white;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(15,23,42,0.05);
}

/* =========================
   Footer
========================= */

.hm-footer.compact {
    width: 100%;
    background: #071433;
    color: white;
    margin-top: 30px;
    padding: 16px 0;
}

.hm-footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.hm-footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hm-footer-links a {
    color: #dbe4f0;
    text-decoration: none;
}

/* =========================
   Cookie
========================= */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    background: #071433;
    color: white;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.cookie-banner button {
    border: none;
    background: #14b8a6;
    color: white;
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 700;
}

/* =========================
   Responsive
========================= */

@media (max-width: 900px) {

    .home-hero-grid,
    .home-innovation-grid,
    .register-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hm-nav {
        flex-direction: column;
        gap: 12px;
    }

    .hm-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .home-hero-text h1 {
        font-size: 2.2rem;
    }

    .hm-footer-grid {
        flex-direction: column;
    }
}



.hm-hero {
    min-height: calc(100vh - 90px);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    padding: 60px 8%;
    background: linear-gradient(135deg, #f7fbff, #eef7f3);
}

.hm-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e7f3ef;
    color: #17745b;
    font-weight: 600;
    margin-bottom: 18px;
}

.hm-hero h1 {
    font-size: 48px;
    line-height: 1.1;
    color: #10231f;
    margin-bottom: 20px;
}

.hm-subtitle {
    font-size: 18px;
    color: #52615d;
    max-width: 620px;
    margin-bottom: 30px;
}

.hm-chat-box {
    background: #ffffff;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.08);
    max-width: 650px;
    margin-bottom: 24px;
}

.hm-chat-header {
    font-weight: 700;
    margin-bottom: 12px;
    color: #19342d;
}

.hm-chat-form {
    display: flex;
    gap: 10px;
}

.hm-chat-form input {
    flex: 1;
    border: 1px solid #dce7e2;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
}

.hm-chat-form button {
    border: none;
    border-radius: 14px;
    padding: 0 24px;
    background: #17745b;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.hm-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hm-btn {
    padding: 13px 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
}

.hm-btn.primary {
    background: #17745b;
    color: #fff;
}

.hm-btn.secondary {
    background: #fff;
    color: #17745b;
    border: 1px solid #cde3dc;
}

.hm-panel {
    background: #ffffff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
}

.hm-panel h3 {
    margin-bottom: 20px;
    color: #10231f;
}

.hm-feature {
    padding: 16px 0;
    border-bottom: 1px solid #eef2f0;
}

.hm-feature:last-child {
    border-bottom: none;
}

.hm-feature strong {
    color: #17745b;
}

.hm-feature p {
    margin: 6px 0 0;
    color: #65736f;
}

@media (max-width: 900px) {
    .hm-hero {
        grid-template-columns: 1fr;
        padding: 36px 20px;
    }

    .hm-hero h1 {
        font-size: 34px;
    }

    .hm-chat-form {
        flex-direction: column;
    }

    .hm-chat-form button {
        padding: 14px;
    }
}

.home-ai-box {
    max-width: 760px;
    margin: 30px auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    text-align: center;
}

.home-ai-box h2 {
    margin-bottom: 8px;
}

.home-ai-box form {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.home-ai-box input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.home-ai-box button {
    padding: 12px 22px;
    border: none;
    border-radius: 10px;
    background: #17745b;
    color: white;
    font-weight: 600;
}

@media (max-width: 700px) {
    .home-ai-box form {
        flex-direction: column;
    }
}

.home-ai-box {
    margin-top: 28px;
    padding: 22px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.home-ai-box h3 {
    margin-bottom: 6px;
}

.home-ai-box p {
    margin-bottom: 16px;
    color: #5f6f6a;
}

.home-ai-form {
    display: flex;
    gap: 10px;
}

.home-ai-form input {
    flex: 1;
    padding: 13px 14px;
    border: 1px solid #d7e3df;
    border-radius: 12px;
}

.home-ai-form button {
    padding: 13px 22px;
    border: none;
    border-radius: 12px;
    background: #17745b;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 700px) {
    .home-ai-form {
        flex-direction: column;
    }
}