/* NOVIDA ÜROLOJİ — Premium Medical Landing
   40+ yaş erkek odaklı, güven inşa eden, mobil-öncelikli tasarım */

:root {
    /* Medical navy + warm gold — premium ve güven verici */
    --primary: #0A2540;
    --primary-soft: #143B66;
    --primary-deep: #061a2e;
    --primary-light: #EFF4FB;
    --primary-tint: #DCE7F5;

    --accent: #C9A961;
    --accent-soft: #E8D9B0;
    --accent-deep: #A88947;

    --success: #047857;
    --success-soft: #D1FAE5;
    --success-deep: #065F46;

    --warning: #D97706;
    --warning-soft: #FEF3C7;
    --danger: #B91C1C;
    --danger-soft: #FEE2E2;

    --whatsapp: #25D366;
    --whatsapp-deep: #128C7E;

    --bg: #F7F5F0;            /* sıcak off-white, gözleri yormaz */
    --surface: #FFFFFF;
    --surface-2: #FBFAF7;

    --ink-900: #0A1929;
    --ink-800: #1B2A3D;
    --ink-700: #334155;
    --ink-600: #475569;
    --ink-500: #64748B;
    --ink-400: #94A3B8;
    --ink-300: #CBD5E1;
    --ink-200: #E2E8F0;
    --ink-100: #F1F5F9;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
    --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08), 0 2px 4px rgba(10, 37, 64, 0.04);
    --shadow-lg: 0 12px 28px rgba(10, 37, 64, 0.12), 0 4px 8px rgba(10, 37, 64, 0.06);
    --shadow-xl: 0 24px 48px rgba(10, 37, 64, 0.16), 0 8px 16px rgba(10, 37, 64, 0.08);
    --shadow-glow-accent: 0 8px 24px rgba(201, 169, 97, 0.35);
    --shadow-glow-success: 0 8px 24px rgba(4, 120, 87, 0.30);

    --t-fast: 160ms cubic-bezier(.4,0,.2,1);
    --t-base: 240ms cubic-bezier(.4,0,.2,1);
    --t-slow: 380ms cubic-bezier(.4,0,.2,1);
}

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

html {
    font-size: 17px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background: var(--bg);
    color: var(--ink-800);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv11";
}

/* Subtle grain background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(at 12% 8%, rgba(20, 59, 102, 0.06) 0, transparent 45%),
        radial-gradient(at 88% 92%, rgba(201, 169, 97, 0.06) 0, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.app-container {
    max-width: 680px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    box-shadow: 0 0 60px rgba(10, 37, 64, 0.08);
    position: relative;
    z-index: 1;
}

/* ===== HEADER ===== */
.header {
    background:
        linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
    color: #fff;
    padding: 14px 22px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-deep);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.clinic-name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.clinic-department {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-top: 1px;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 7px 12px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.security-badge svg { color: var(--accent-soft); }

/* ===== PROGRESS ===== */
.progress-container {
    background: var(--surface);
    padding: 14px 22px;
    border-bottom: 1px solid var(--ink-200);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-600);
}

.progress-percent {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.progress-bar {
    height: 8px;
    background: var(--ink-100);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-full);
    transition: width var(--t-slow);
    box-shadow: 0 0 8px rgba(201, 169, 97, 0.5);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== MAIN ===== */
.main-content {
    flex: 1;
    padding: 24px 22px 32px;
    display: flex;
    flex-direction: column;
}

.screen {
    animation: fadeUp var(--t-base);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== CTA (form submit) ===== */
.cta-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 28px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: var(--primary-deep);
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all var(--t-base);
    min-height: 64px;
    box-shadow:
        var(--shadow-glow-accent),
        inset 0 1px 0 rgba(255,255,255,0.4);
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 700ms;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(201, 169, 97, 0.45), inset 0 1px 0 rgba(255,255,255,0.4);
}

.cta-primary:hover::before { transform: translateX(100%); }

.cta-primary:active { transform: translateY(0); }

.cta-primary svg { width: 22px; height: 22px; }

/* ===== QUESTION CARD ===== */
.question-card {
    background: var(--surface);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 32px;
    padding: 0 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.2);
}

.question-text {
    font-size: 1.32rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 18px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.question-helper {
    font-size: 0.88rem;
    color: var(--ink-500);
    margin-top: -10px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.question-helper svg { width: 14px; height: 14px; color: var(--ink-400); }

/* ===== OPTIONS ===== */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    background: var(--surface);
    border: 2px solid var(--ink-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--t-fast);
    font-family: inherit;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--ink-800);
    width: 100%;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    line-height: 1.35;
    min-height: 64px;
    position: relative;
}

.option-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-tint);
    color: var(--primary);
    transform: translateX(2px);
}

.option-btn:hover .option-radio {
    border-color: var(--primary);
}

.option-btn:active {
    transform: scale(0.99);
    background: var(--primary-tint);
}

.option-btn .option-radio {
    width: 26px; height: 26px;
    min-width: 26px;
    border: 2px solid var(--ink-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--t-fast);
    background: var(--surface);
    position: relative;
}

.option-btn .concern-icon {
    width: 52px; height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-tint));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: all var(--t-fast);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.option-btn:hover .concern-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
    transform: scale(1.05);
}

.option-btn .arrow {
    margin-left: auto;
    color: var(--ink-300);
    transition: all var(--t-fast);
    flex-shrink: 0;
}

.option-btn:hover .arrow {
    color: var(--primary);
    transform: translateX(3px);
}

.option-btn .arrow svg { width: 18px; height: 18px; }

/* ===== BACK BUTTON ===== */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--surface);
    color: var(--ink-600);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-fast);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.btn-back:hover {
    background: var(--ink-100);
    color: var(--primary);
    border-color: var(--primary-tint);
}

.btn-back svg { width: 16px; height: 16px; }

/* ===== GENERIC BUTTONS (legacy compatibility) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 28px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--t-base);
    text-decoration: none;
    min-height: 56px;
}

.btn-lg {
    padding: 20px 32px;
    font-size: 1.15rem;
    min-height: 64px;
    border-radius: var(--radius-lg);
}

.btn-full { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: var(--primary-deep);
    box-shadow: var(--shadow-glow-accent), inset 0 1px 0 rgba(255,255,255,0.4);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(201, 169, 97, 0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: var(--ink-100);
    color: var(--ink-700);
}
.btn-secondary:hover { background: var(--ink-200); }

/* ===== FORM ===== */
.form-section {
    background: var(--surface);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-xl);
    padding: 26px 22px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.form-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto 14px;
    padding: 6px 12px;
    background: var(--success-soft);
    color: var(--success-deep);
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-badge svg { width: 14px; height: 14px; }

.form-section .form-badge-wrap {
    display: flex; justify-content: center;
}

.form-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ink-900);
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.form-subtitle {
    font-size: 0.98rem;
    color: var(--ink-600);
    margin-bottom: 22px;
    text-align: center;
    line-height: 1.5;
}

.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink-700);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 16px 18px;
    font-family: inherit;
    font-size: 1.1rem;
    color: var(--ink-900);
    border: 2px solid var(--ink-200);
    border-radius: var(--radius-md);
    transition: all var(--t-fast);
    background: var(--surface);
    font-weight: 500;
}

.form-input::placeholder { color: var(--ink-400); }

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 37, 64, 0.10);
    background: #fff;
}

.phone-prefix {
    background: var(--primary-light);
    color: var(--primary);
    padding: 16px 14px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1.1rem;
    border: 2px solid var(--primary-tint);
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.form-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 14px;
    background: var(--success-soft);
    border-radius: var(--radius-md);
    border: 1px solid rgba(4, 120, 87, 0.18);
}

.form-trust svg {
    color: var(--success-deep);
    flex-shrink: 0;
    width: 22px; height: 22px;
}

.form-trust .form-trust-text {
    font-size: 0.82rem;
    color: var(--success-deep);
    line-height: 1.4;
    font-weight: 600;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
    padding: 22px 18px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(at 20% 0%, rgba(201, 169, 97, 0.18), transparent 50%),
        radial-gradient(at 80% 100%, rgba(201, 169, 97, 0.10), transparent 50%);
    pointer-events: none;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 12px 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    backdrop-filter: blur(6px);
    transition: transform var(--t-fast);
}

.stat-item:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.10);
}

.stat-icon {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.stat-number {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--accent-soft);
    display: block;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.85;
    display: block;
    margin-top: 4px;
    line-height: 1.3;
}

/* ===== CERTIFICATIONS STRIP ===== */
.certs-strip {
    background: var(--surface-2);
    border-top: 1px solid var(--ink-200);
    padding: 14px 18px;
}

.certs-title {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--ink-500);
    margin-bottom: 10px;
}

.certs-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 18px;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ink-700);
    padding: 5px 10px;
    background: var(--surface);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.cert-badge svg {
    width: 14px; height: 14px;
    color: var(--success);
}

/* ===== TRUST FOOTER ===== */
.trust-footer {
    background: var(--surface-2);
    border-top: 1px solid var(--ink-200);
    padding: 12px 18px;
}

.trust-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-600);
    text-align: center;
}

.trust-item svg { color: var(--primary); }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 41, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    animation: modalIn var(--t-base);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--ink-200);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon {
    width: 72px; height: 72px;
    margin: 0 auto 16px;
    background: var(--warning-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg { color: var(--warning); }

.modal-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink-900);
    margin-bottom: 12px;
    line-height: 1.3;
}

.modal-content p {
    font-size: 0.98rem;
    color: var(--ink-600);
    margin-bottom: 22px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== UTIL ===== */
.text-center { text-align: center; }
.mt-lg { margin-top: 18px; }
.mb-lg { margin-bottom: 18px; }
.hidden { display: none !important; }

/* ===== RESPONSIVE — MOBILE FIRST FINE-TUNING ===== */
@media (max-width: 768px) {
    html { font-size: 16px; }

    body { overflow-x: hidden; }

    .app-container { min-height: 100dvh; }

    .header { padding: 12px 16px; }

    .logo-icon { width: 38px; height: 38px; }
    .logo-icon svg { width: 22px; height: 22px; }

    .clinic-name { font-size: 0.95rem; }
    .clinic-department { font-size: 0.66rem; }

    .security-badge { padding: 6px 10px; font-size: 0.7rem; }
    .security-badge svg { width: 14px; height: 14px; }

    .progress-container { padding: 11px 16px; }
    .progress-bar { height: 7px; }

    .main-content { padding: 18px 16px 24px; }

    .question-card { padding: 18px 16px; }
    .question-text { font-size: 1.18rem; margin-bottom: 14px; }

    .options-list { gap: 8px; }
    .option-btn { padding: 14px 14px; font-size: 1rem; min-height: 60px; gap: 12px; }
    .option-btn .concern-icon { width: 44px; height: 44px; min-width: 44px; font-size: 1.35rem; }
    .option-btn .option-radio { width: 24px; height: 24px; min-width: 24px; }

    .cta-primary { padding: 18px 22px; font-size: 1.05rem; min-height: 60px; }
    .btn-lg { padding: 18px 22px; font-size: 1.1rem; min-height: 60px; }

    .form-section { padding: 22px 18px; }
    .form-title { font-size: 1.3rem; }
    .form-subtitle { font-size: 0.92rem; margin-bottom: 18px; }
    .form-input { padding: 14px 16px; font-size: 1.05rem; }
    .phone-prefix { padding: 14px 12px; font-size: 1.05rem; }

    .stats-section { padding: 18px 12px; }
    .stat-number { font-size: 1.3rem; }
    .stat-label { font-size: 0.66rem; }
    .stat-icon { font-size: 1.2rem; }

    .certs-strip { padding: 12px 14px; }
    .cert-badge { font-size: 0.7rem; padding: 4px 9px; }

    .trust-footer { padding: 10px 14px; }
    .trust-item { font-size: 0.66rem; }
    .trust-item svg { width: 16px; height: 16px; }
}

@media (max-width: 380px) {
    html { font-size: 15px; }
    .main-content { padding: 14px 12px 20px; }
    .question-card { padding: 16px 14px; }
    .option-btn { padding: 12px; font-size: 0.96rem; min-height: 56px; }
    .option-btn .concern-icon { width: 40px; height: 40px; min-width: 40px; }
    .stats-container { gap: 6px; }
    .certs-row { gap: 8px 12px; }
    .cert-badge { font-size: 0.68rem; padding: 4px 8px; }
}

@media (min-width: 768px) {
    html { font-size: 17px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
