/* Sankalp Patient Support Program — Refined Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #1a4498;       /* Royal Blue from Semamac & Sankalp logos */
    --primary-hover: #123377;
    --primary-bg: #f0f4fa;
    --secondary: #e69d00;     /* Golden Yellow from Sankalp logo */
    --accent: #e69d00;
    --text: #222;
    --text-secondary: #555;
    --text-light: #888;
    --bg: #fff;
    --bg-alt: #f7f7f7;
    --border: #e0e0e0;
    --radius: 6px;
    --shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; color: var(--text); }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p { color: var(--text-secondary); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }

.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ─── Header ─── */
header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.logos-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo { height: 40px; object-fit: contain; }

.brand-logo#semamac-logo { height: 34px; }

.separator { width: 1px; height: 26px; background: var(--border); }

.header-actions { display: flex; gap: 8px; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ─── Hero ─── */
.hero-section { padding: 48px 0 56px; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 4px 10px;
    border-radius: var(--radius);
    margin-bottom: 14px;
}

.hero-badge svg { width: 13px; height: 13px; }

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
    color: var(--text);
}

.hero-desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 520px;
}

.hero-actions { display: flex; gap: 10px; }

/* Hero sidebar card */
.hero-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.hero-card::before { display: none; }

.hero-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hero-card > p { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }

.feature-pill-list { display: flex; flex-direction: column; gap: 14px; margin-top: 0; }

.feature-pill { display: flex; align-items: flex-start; gap: 10px; }

.pill-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--radius);
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pill-icon svg { width: 15px; height: 15px; }

.pill-title { font-weight: 600; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.pill-desc { font-size: 12.5px; color: var(--text-light); line-height: 1.5; }

/* ─── Highlights Section ─── */
.highlights-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 20px;
    height: 20px;
}

.highlight-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.highlight-info p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hero-image {
    width: 100%;
    max-width: 440px;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* ─── Therapy Info Section ─── */
.therapy-info-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 48px 0 56px;
}

.therapy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.therapy-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}

.therapy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.therapy-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--primary-bg);
    margin-bottom: 16px;
}

.therapy-card-icon svg {
    width: 20px;
    height: 20px;
}

.therapy-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.therapy-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Modal ─── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.modal-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px;
}

.modal-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
}

.modal-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 0 4px;
}

.modal-close:hover { color: var(--text); }

.modal-container .wizard-card {
    border-radius: 0 0 var(--radius) var(--radius);
    max-width: none;
}

.wizard-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.wizard-header {
    background: var(--bg-alt);
    padding: 20px 24px 12px;
    border-bottom: 1px solid var(--border);
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 0;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: var(--border);
    z-index: 1;
}

.progress-bar-fill {
    position: absolute;
    top: 16px;
    left: 12%;
    width: 0%;
    height: 1px;
    background: var(--primary);
    z-index: 2;
    transition: width 0.25s ease;
}

.step-node {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--text-light);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.step-node.active .step-num {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.step-node.completed .step-num {
    border-color: var(--secondary);
    background: var(--secondary);
    color: #fff;
}

.step-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 6px;
}

.step-node.active .step-label { color: var(--primary); }

.wizard-body { padding: 24px; }

.wizard-step-panel { display: none; animation: fadeIn 0.2s ease; }
.wizard-step-panel.active { display: block; }

.wizard-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

/* ─── Forms ─── */
.form-group { margin-bottom: 16px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--text);
}

input[type="text"],
input[type="tel"],
select {
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.15s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(13,115,119,0.1);
}

/* File upload */
.upload-container {
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px 16px;
    text-align: center;
    background: var(--bg-alt);
    cursor: pointer;
    transition: border-color 0.15s;
}

.upload-container:hover, .upload-container.dragover {
    border-color: var(--primary);
}

.upload-icon { color: var(--primary); margin-bottom: 8px; }
.upload-text { font-weight: 500; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.upload-hint { font-size: 12px; color: var(--text-light); }

.file-preview {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Consent */
.consent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.consent-item input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.consent-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Success */
.success-check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(46,125,91,0.08);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

/* ─── Timeline ─── */
#timeline-section { padding: 48px 0 56px; }

.timeline-section-header { text-align: center; margin-bottom: 28px; }
.timeline-section-header h2 { margin-bottom: 6px; }
.timeline-section-header p { font-size: 14px; max-width: 520px; margin: 0 auto; }

.month-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    gap: 0;
}

.month-tab {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.month-tab:hover { color: var(--text); }
.month-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.timeline-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 5px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.timeline-content-wrapper { max-width: 700px; margin: 0 auto; }

.timeline-items { display: flex; flex-direction: column; gap: 12px; }

.timeline-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    align-items: center;
    transition: box-shadow 0.15s;
}

.timeline-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.timeline-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    color: var(--primary);
    padding: 8px;
    border-radius: var(--radius);
    font-weight: 600;
    height: 56px;
}

.timeline-day .day-lbl { font-size: 10px; text-transform: uppercase; color: var(--text-light); letter-spacing: 0.04em; }
.timeline-day .day-val { font-size: 1.25rem; line-height: 1.1; }

.timeline-details { display: flex; flex-direction: column; gap: 4px; }

.timeline-badge-row { display: flex; gap: 6px; align-items: center; }

.timeline-badge {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-call { background: rgba(13,115,119,0.08); color: var(--primary); }
.badge-message { background: rgba(46,125,91,0.08); color: var(--secondary); }

.timeline-title { font-size: 14px; font-weight: 600; color: var(--text); }
.timeline-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ─── Info Box ─── */
.info-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 32px;
    display: flex;
    gap: 12px;
}

.info-box-icon { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.info-box-icon svg { width: 18px; height: 18px; }
.info-box-text h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.info-box-text p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

/* ─── Footer ─── */
footer {
    background: #1a1a1a;
    color: #bbb;
    padding: 36px 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-about h3 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.footer-about p { color: #999; font-size: 14px; max-width: 360px; line-height: 1.55; }

.footer-links h4 { color: #fff; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: #999; font-size: 14px; }
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 28px;
    padding-top: 16px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* ─── Animation ─── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-visual { order: -1; }
    .hero-title { font-size: 1.5rem; }
    .hero-desc { font-size: 14px; }
    .hero-actions { flex-wrap: wrap; }
    .form-grid { grid-template-columns: 1fr; }
    .timeline-item { grid-template-columns: 1fr; text-align: center; }
    .timeline-day { width: 100%; height: auto; flex-direction: row; gap: 6px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .footer-about img { margin-left: auto; margin-right: auto; display: block; }
    .footer-links { border-top: 1px solid #2a2a2a; padding-top: 20px; }
    .month-tabs { overflow-x: auto; }
    .month-tab { flex: none; padding: 10px 16px; }
    .header-actions .btn-outline { display: none; }
}
