/* NOVİDA ÜROLOJİ KLİNİĞİ - Tarama Testi v4 */
:root {
    --primary: #0066CC;
    --primary-dark: #004d99;
    --primary-light: #e8f2ff;
    --accent: #10B981;
    --accent-dark: #059669;
    --accent-light: #d1fae5;
    --warning: #F59E0B;
    --warning-light: #fef3c7;
    --danger: #EF4444;
    --danger-light: #fee2e2;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: linear-gradient(160deg, #f0f7ff 0%, #e8f2ff 40%, #f0fdf4 100%);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

.app {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; gap: 10px; }

.logo-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.18);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
}

.logo-icon svg { width: 22px; height: 22px; }

.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.3px; }
.logo-dept { font-size: 0.68rem; font-weight: 500; opacity: 0.85; }

.privacy-pill {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.14);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem; font-weight: 600;
}

.privacy-pill svg { width: 14px; height: 14px; }

/* ===== PROGRESS ===== */
.progress-wrap {
    background: var(--white);
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: none;
}

.progress-wrap.show { display: block; }

.progress-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 6px;
}

.progress-label { font-size: 0.82rem; font-weight: 600; color: var(--gray-700); }
.progress-pct { font-size: 0.82rem; font-weight: 700; color: var(--primary); }

.progress-track {
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
    width: 0%;
}

/* ===== TRUST BADGES ===== */
.trust-strip {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    flex-wrap: wrap;
}

.trust-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.7rem; font-weight: 600; color: var(--gray-600);
    white-space: nowrap;
}

.live-indicator {
    text-align: center;
    padding: 6px 16px;
    font-size: 0.72rem;
    color: var(--accent-dark);
    font-weight: 500;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* ===== MAIN CONTENT ===== */
.main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* ===== SCREEN ANIMATIONS ===== */
.screen { animation: slideIn 0.3s ease; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== CARD ===== */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.card-step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700; font-size: 0.9rem;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
}

.card-question {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    line-height: 1.35;
}

/* ===== OPTIONS ===== */
.opts { display: flex; flex-direction: column; gap: 10px; }

.opt {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 1rem; font-weight: 500;
    color: var(--gray-700);
    font-family: var(--font);
    text-align: left;
    width: 100%;
}

.opt:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.opt:active { transform: scale(0.98); }

.opt-icon {
    width: 42px; height: 42px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}

.opt:hover .opt-icon { background: var(--primary); }

.opt-radio {
    width: 22px; height: 22px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    flex-shrink: 0;
    transition: all 0.15s;
}

.opt:hover .opt-radio { border-color: var(--primary); }

/* ===== BACK BUTTON ===== */
.btn-back {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    background: transparent;
    color: var(--gray-500);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-size: 0.82rem; font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 14px;
    font-family: var(--font);
}

.btn-back:hover { background: var(--gray-100); color: var(--gray-800); }
.btn-back svg { width: 14px; height: 14px; }

/* ===== FORM ===== */
.form-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 1.3rem; font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 4px;
}

.form-title span { color: var(--accent); }

.form-desc {
    font-size: 0.88rem; color: var(--gray-500);
    text-align: center;
    margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 0.88rem; font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all 0.15s;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.phone-row {
    display: flex; align-items: center; gap: 8px;
}

.phone-prefix {
    padding: 14px 12px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-weight: 600; color: var(--gray-600);
    font-size: 1rem;
}

.phone-hint {
    font-size: 0.78rem; color: var(--gray-400);
    margin-top: 5px;
}

.phone-error {
    font-size: 0.78rem; color: var(--danger);
    margin-top: 5px; display: none;
}

/* ===== BUTTONS ===== */
.btn-submit {
    width: 100%;
    padding: 16px;
    font-family: var(--font);
    font-size: 1.05rem; font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,185,129,0.45);
}

.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===== TESTIMONIALS ===== */
.testimonials {
    margin-top: 24px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.testimonial-track {
    display: flex;
    animation: slideTestimonials 80s linear infinite;
    will-change: transform;
}

@keyframes slideTestimonials {
    0% { transform: translate3d(0,0,0); }
    100% { transform: translate3d(-2000%,0,0); }
}

.testimonial-item {
    min-width: 100%;
    padding: 14px 16px;
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
}

.testimonial-item p {
    font-size: 0.82rem; color: var(--gray-700);
    font-style: italic; margin-bottom: 4px;
}

.testimonial-item span {
    font-size: 0.7rem; color: var(--gray-500);
}

.testimonial-note {
    font-size: 0.65rem; color: var(--gray-400);
    text-align: center; margin-top: 8px;
}

/* ===== STATS STRIP ===== */
.stats-strip {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 14px 12px;
    color: var(--white);
}

.stats-row {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 8px;
}

.stat-box {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
}

.stat-emoji { font-size: 1.2rem; display: block; margin-bottom: 2px; }
.stat-num { font-size: 1.3rem; font-weight: 800; display: block; line-height: 1.2; }
.stat-label { font-size: 0.62rem; font-weight: 500; opacity: 0.85; display: block; margin-top: 2px; }

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 10px 16px;
}

.footer-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.footer-item {
    display: flex; flex-direction: column;
    align-items: center; gap: 3px;
    font-size: 0.68rem; font-weight: 600;
    color: var(--gray-500); text-align: center;
}

.footer-item svg { width: 18px; height: 18px; color: var(--primary); }

/* ===== THANK YOU ===== */
.thank-wrap {
    text-align: center;
    padding: 20px 0;
}

.thank-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    animation: popIn 0.5s ease;
}

@keyframes popIn { from{transform:scale(0)} to{transform:scale(1)} }

.thank-icon svg { width: 36px; height: 36px; color: var(--white); }

.thank-title {
    font-size: 1.5rem; font-weight: 800;
    color: var(--accent); margin-bottom: 6px;
}

.thank-text {
    font-size: 0.95rem; color: var(--gray-600);
    margin-bottom: 24px; line-height: 1.6;
}

.info-box {
    display: flex; align-items: center; gap: 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: left;
    margin-bottom: 14px;
}

.info-box-icon {
    width: 48px; height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
}

.info-box-text strong { display: block; font-size: 0.95rem; color: var(--gray-800); margin-bottom: 2px; }
.info-box-text p { font-size: 0.78rem; color: var(--gray-500); margin: 0; }

.steps-list {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 4px 18px;
}

.step-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.step-row:last-child { border-bottom: none; }

.step-done {
    width: 26px; height: 26px;
    background: var(--accent); color: var(--white);
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
}

.step-pending {
    width: 26px; height: 26px;
    background: var(--gray-200); color: var(--gray-500);
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 600;
}

.step-row span:last-child { font-size: 0.85rem; color: var(--gray-700); }

/* ===== EXIT MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px;
    max-width: 380px; width: 100%;
    text-align: center;
    animation: modalPop 0.25s ease;
}

@keyframes modalPop {
    from { opacity:0; transform:scale(0.92) translateY(16px); }
    to { opacity:1; transform:scale(1) translateY(0); }
}

.modal-box h3 {
    font-size: 1.15rem; font-weight: 700;
    color: var(--gray-900); margin-bottom: 10px;
}

.modal-box p {
    font-size: 0.9rem; color: var(--gray-600);
    margin-bottom: 20px;
}

.modal-btns { display: flex; flex-direction: column; gap: 10px; }

.modal-btn-primary {
    padding: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    border: none; border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 1rem; font-weight: 600;
    cursor: pointer;
}

.modal-btn-secondary {
    padding: 12px;
    background: var(--gray-100);
    color: var(--gray-600);
    border: none; border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.9rem; font-weight: 500;
    cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
    .app { max-width: 100%; }
    .header { padding: 10px 14px; }
    .logo-icon { width: 34px; height: 34px; }
    .logo-name { font-size: 0.78rem; }
    .logo-dept { font-size: 0.62rem; }
    .privacy-pill { padding: 5px 9px; font-size: 0.68rem; }
    .main { padding: 14px; }
    .card { padding: 18px; }
    .card-question { font-size: 1.1rem; }
    .opt { padding: 14px; font-size: 0.95rem; }
    .opt-icon { width: 36px; height: 36px; font-size: 1.1rem; }
    .form-card { padding: 22px 18px; }
    .form-title { font-size: 1.15rem; }
    .stat-num { font-size: 1.1rem; }
    .stat-label { font-size: 0.58rem; }
}

@media (max-width: 375px) {
    html { font-size: 15px; }
    .header { padding: 8px 10px; }
    .main { padding: 10px; }
    .card { padding: 14px; }
    .opt { padding: 12px; }
    .trust-strip { gap: 4px; padding: 8px 10px; }
    .trust-chip { font-size: 0.62rem; padding: 3px 7px; }
}

.hidden { display: none !important; }
