/* Mobil yatay scroll engeli */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

#hair-analysis-wrapper,
#hair-analysis-wrapper * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#hair-analysis-wrapper {
    overflow: hidden !important;
    width: 100% !important;
}

#ha-form-wrap,
#hair-analysis-result,
#ha-loading-screen,
#ha-loading-screen .ha-loading-card {
    overflow-x: hidden !important;
    width: 100% !important;
}

/* intl-tel-input dropdown mobilde taşmasın */
.iti__country-list {
    max-width: calc(100vw - 32px) !important;
    overflow-x: hidden !important;
}

/* Foto grid taşmasın */
.ha-photo-grid,
.ha-photo-grid > div {
    max-width: 100% !important;
}

/* Sonuç içeriği taşmasın */
#ha-result-content,
#ha-result-content * {
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* Hair Analysis Plugin v9 | Elos Klinik | #d82f16 */

:root {
    --red: #d82f16;
    --red-dark: #b52510;
    --red-light: #fdf0ed;
    --dark: #111111;
    --dark2: #1e1e1e;
    --dark3: #2a2a2a;
    --text: #1a1a1a;
    --text-muted: #555;
    --border: #e2e5ea;
    --white: #ffffff;
    --green: #22c55e;
    --green-dark: #16a34a;
}

* { box-sizing: border-box; }

#hair-analysis-wrapper {
    max-width: 860px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ==============================
   HEADER
============================== */
.ha-header {
    background: linear-gradient(160deg, #0f0f0f 0%, #1c1c1c 55%, #2a0a04 100%);
    border-radius: 20px;
    margin-bottom: 28px;
    overflow: hidden;
    position: relative;
}

.ha-header::before {
    content: '';
    position: absolute;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(216,47,22,.22) 0%, transparent 65%);
    top: -120px; right: -100px;
    animation: bgpulse 6s ease-in-out infinite;
    pointer-events: none;
}

.ha-header::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(216,47,22,.12) 0%, transparent 65%);
    bottom: -80px; left: -60px;
    pointer-events: none;
}

@keyframes bgpulse { 0%,100%{opacity:.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.12)} }

.ha-header-inner {
    padding: 44px 32px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ha-logo {
    height: 44px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.ha-free-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.ha-header-icon { font-size: 54px; display: block; margin-bottom: 14px; }

.ha-header h2 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 12px !important;
    border: none !important;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.ha-header h2 span { color: var(--red); }

.ha-header > .ha-header-inner > p,
.ha-header p {
    color: rgba(255,255,255,.7) !important;
    font-size: .98rem;
    margin: 0 0 28px;
}

.ha-header-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 16px 24px;
    display: inline-flex;
}

.ha-stat { text-align: center; padding: 0 24px; }
.ha-stat strong { display: block; font-size: 1.25rem; font-weight: 800; color: #fff; }
.ha-stat span { font-size: .75rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .05em; }
.ha-stat-sep { width: 1px; height: 36px; background: rgba(255,255,255,.15); }

/* ==============================
   FORM SECTIONS
============================== */
.ha-section {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 8px rgba(0,0,0,.05);
}

.ha-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--red-light);
}

.ha-subtitle { color: var(--text-muted); font-size: .875rem; margin-bottom: 18px; }

.ha-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:600px){ .ha-grid-2 { grid-template-columns: 1fr; } }

.ha-field { margin-bottom: 16px; }

.ha-field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.ha-field input[type="text"],
.ha-field input[type="number"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: .95rem;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
}

.ha-field input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(216,47,22,.12);
}

.required { color: var(--red); }

.ha-radio-group { display: flex; gap: 10px; flex-wrap: wrap; }

.ha-radio {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    font-size: .9rem;
    font-weight: 500 !important;
    color: var(--text) !important;
}

.ha-radio:has(input:checked) {
    border-color: var(--red);
    background: var(--red-light);
    color: var(--red) !important;
}

.ha-radio input { margin: 0; accent-color: var(--red); }

/* PHOTOS */
.ha-photos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
@media(max-width:680px){ .ha-photos-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:420px){ .ha-photos-grid { grid-template-columns: 1fr; } }

.ha-photo-upload {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 2px dashed #cbd5e1;
    transition: all .2s;
    width: 239px;
    height: 239px;
    background: #f8fafc;
}

.ha-photo-upload:hover { border-color: var(--red); background: var(--red-light); }
.ha-photo-upload.uploaded { border-style: solid; border-color: var(--green-dark); background: #f0fdf4; }

.ha-photo-preview { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.ha-photo-preview img { width: 100%; height: 100%; object-fit: cover; }

.ha-photo-placeholder { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px; text-align: center; }
.ha-photo-icon { font-size: 1.8rem; }
.ha-photo-label { font-size: .72rem; font-weight: 700; color: #4b5563; letter-spacing: .05em; }
.ha-photo-hint { font-size: .66rem; color: #9ca3af; }

.ha-photo-desc { font-size: .72rem; color: var(--text-muted); margin: 6px 0 0; text-align: center; line-height: 1.4; }

.ha-uploaded-badge {
    position: absolute; top: 6px; right: 6px;
    background: var(--green-dark); color: #fff;
    border-radius: 50%; width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; font-weight: 700;
}

/* TIPS */
.ha-tips {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 20px;
}

.ha-tips h4 { margin: 0 0 10px; color: #92400e; font-size: .875rem; }
.ha-tips ul { margin: 0; padding: 0; list-style: none; }
.ha-tips li { font-size: .82rem; color: #78350f; margin-bottom: 3px; }

/* CONSENT */
.ha-consent { margin-bottom: 20px; }

.ha-checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: .85rem !important;
    color: var(--text-muted) !important;
    font-weight: 400 !important;
}

.ha-checkbox input { margin-top: 2px; flex-shrink: 0; accent-color: var(--red); }

/* SUBMIT */
.ha-submit-btn {
    width: 100%;
    padding: 17px 24px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    letter-spacing: .01em;
}

.ha-submit-btn:hover:not(:disabled) {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216,47,22,.35);
}

.ha-submit-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.ha-spinner {
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    display: inline-block;
}

.ha-privacy-note { text-align: center; font-size: .78rem; color: #9ca3af; margin-top: 10px; }

/* ==============================
   LOADING SCREEN
============================== */
#ha-loading-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    overflow-y: auto;
    background: linear-gradient(160deg, #0f0f0f 0%, #1a1a1a 60%, #2a0a04 100%);
    border-radius: 0;
    padding: 48px 32px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
/* Loading açılınca sayfa scroll etmesin */
body.ha-loading-active {
    overflow: hidden !important;
}

#ha-loading-screen::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(216,47,22,.15) 0%, transparent 65%);
    top: -150px; right: -150px;
    pointer-events: none;
}

.ha-loading-card { position: relative; z-index: 1; width: 100%; max-width: 560px; margin: 0 auto; }

.ha-loading-logo {
    height: 36px;
    margin: 0 auto 32px;
    filter: brightness(0) invert(1);
    display: block;
    opacity: .85;
}

/* Hair animation */
.ha-hair-scene {
    width: 280px;
    height: 120px;
    margin: 0 auto 32px;
    position: relative;
}

.ha-scalp-base {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 20px;
    background: linear-gradient(180deg, #4a3728, #3a2a1e);
    border-radius: 0 0 12px 12px;
}

.ha-hair-container {
    position: absolute;
    bottom: 18px; left: 0; right: 0;
    height: 100px;
}

.ha-hair-strand {
    position: absolute;
    bottom: 0;
    left: var(--l);
    width: 3px;
    height: var(--h);
    background: linear-gradient(180deg, #8B5E3C, #5a3a1a);
    border-radius: 2px 2px 0 0;
    transform-origin: bottom center;
    animation: hairwave 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.15s);
}

@keyframes hairwave {
    0%,100% { transform: rotate(-3deg) scaleY(1); }
    50% { transform: rotate(3deg) scaleY(1.05); }
}

/* scan beam */
.ha-scan-beam {
    position: absolute;
    top: 0; left: -100%; bottom: 0;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(216,47,22,.6), transparent);
    animation: scanbeam 2.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes scanbeam { 0%{left:-20%} 100%{left:110%} }

/* analysis dots */
.ha-scan-dots { position: absolute; inset: 0; }

.ha-dot {
    position: absolute;
    left: var(--dx);
    top: var(--dy);
    width: 8px; height: 8px;
    background: var(--red);
    border-radius: 50%;
    animation: dotpulse 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.3s);
    box-shadow: 0 0 6px var(--red);
}

@keyframes dotpulse {
    0%,100% { opacity: 0; transform: scale(.5); }
    50% { opacity: 1; transform: scale(1.2); }
}

.ha-loading-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.ha-loading-subtitle {
    font-size: .9rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 28px;
}

/* Progress steps */
.ha-progress-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    text-align: left;
}

.ha-pstep {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    transition: all .3s;
}

.ha-pstep.active {
    background: rgba(216,47,22,.12);
    border-color: rgba(216,47,22,.35);
}

.ha-pstep.done {
    background: rgba(34,197,94,.08);
    border-color: rgba(34,197,94,.25);
}

.ha-pstep-icon { font-size: 1.4rem; flex-shrink: 0; }

.ha-pstep-info { flex: 1; }

.ha-pstep-label { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 6px; }

.ha-pstep-bar { height: 4px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; }

.ha-pstep-fill { height: 100%; width: 0; background: var(--red); border-radius: 4px; transition: width 1s ease; }

.ha-pstep.done .ha-pstep-fill { width: 100%; background: var(--green); }
.ha-pstep.active .ha-pstep-fill { width: 60%; animation: loadprogress 3s ease-in-out infinite; }

@keyframes loadprogress { 0%{width:20%} 50%{width:80%} 100%{width:20%} }

/* Facts carousel */
.ha-facts-box {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 18px 20px;
    text-align: left;
}

.ha-fact-label {
    font-size: .72rem;
    font-weight: 700;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}

.ha-facts-carousel { position: relative; min-height: 44px; }

.ha-facts-carousel .ha-fact {
    font-size: .85rem;
    color: rgba(255,255,255,.8);
    line-height: 1.6;
    display: none;
    animation: factfade .5s ease;
}

.ha-facts-carousel .ha-fact.active { display: block; }

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

/* ==============================
   RESULT
============================== */
#hair-analysis-result {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
    margin-top: 0;
}

.ha-result-header {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    padding: 40px 32px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ha-result-header::before {
    content: '';
    position: absolute;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 65%);
    top: -100px; right: -80px;
    pointer-events: none;
}

.ha-result-logo {
    height: 36px;
    display: block;
    margin: 0 auto 20px;
    filter: brightness(0) invert(1);
    opacity: .9;
    position: relative;
    z-index: 1;
}

.ha-result-icon { font-size: 2.8rem; display: block; margin-bottom: 10px; position: relative; z-index: 1; }

.ha-result-header h3 {
    font-size: 1.7rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 8px !important;
    position: relative;
    z-index: 1;
}

.ha-result-header p {
    color: rgba(255,255,255,.85) !important;
    font-size: .95rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.ha-result-content { padding: 36px; line-height: 1.8; }

.ha-result-content h2 {
    font-size: 1.3rem;
    color: var(--text);
    border-bottom: 2px solid var(--red-light);
    padding-bottom: 12px;
    margin-top: 0;
}

.ha-result-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--red);
    margin-top: 28px;
    margin-bottom: 10px;
    padding: 10px 14px;
    background: var(--red-light);
    border-left: 3px solid var(--red);
    border-radius: 0 8px 8px 0;
}

.ha-result-content p { margin-bottom: 12px; color: #374151; }
.ha-result-content ul { padding-left: 20px; }
.ha-result-content li { margin-bottom: 6px; color: #374151; }
.ha-result-content strong { color: var(--text); }

/* inline Elos invite block from AI */
.ha-result-content div[style*="linear-gradient"] h3 { color: #fff !important; background: transparent !important; border: none !important; padding: 0 !important; }
.ha-result-content div[style*="linear-gradient"] p { color: rgba(255,255,255,.88) !important; }
.ha-result-content div[style*="f0f7ff"] p { color: #374151 !important; }

/* ==============================
   CTA BOX
============================== */
.ha-cta-box {
    background: linear-gradient(160deg, #0f0f0f 0%, #1c1c1c 60%, #2a0a04 100%);
    padding: 48px 32px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ha-cta-box::before {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(216,47,22,.2) 0%, transparent 65%);
    top: -120px; right: -100px;
    pointer-events: none;
}

.ha-cta-inner { position: relative; z-index: 1; }

.ha-cta-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ha-cta-box h3 {
    font-size: 1.7rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 16px !important;
    line-height: 1.25 !important;
    letter-spacing: -.02em;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.ha-cta-box h3 span { color: #fb923c; }

.ha-cta-subtitle {
    font-size: .98rem;
    color: rgba(255,255,255,.92);
    margin: 0 0 10px;
    line-height: 1.65;
}

.ha-cta-subtitle strong { color: #fff; }

.ha-cta-location {
    font-size: .84rem;
    color: rgba(255,255,255,.7);
    margin: 0 0 32px;
}

.ha-cta-location strong { color: #fbbf24; }

/* BUTTONS */
.ha-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.ha-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    background: #25D366;
    color: #fff !important;
    border: none;
    border-radius: 50px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: all .22s;
    min-width: 200px;
    box-shadow: 0 4px 16px rgba(37,211,102,.25);
}

.ha-btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,.38);
    color: #fff !important;
}

.ha-btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    background: transparent;
    color: #fff !important;
    border: 2px solid var(--red);
    border-radius: 50px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: all .22s;
    min-width: 200px;
}

.ha-btn-call:hover {
    background: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(216,47,22,.38);
    color: #fff !important;
}

.ha-cta-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 28px 0 22px; }

.ha-btn-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    background: transparent;
    color: rgba(255,255,255,.65) !important;
    border: 1.5px solid rgba(255,255,255,.15);
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: all .2s;
}

.ha-btn-new:hover {
    color: #fff !important;
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.07);
}

/* ERROR */
.ha-error {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: .9rem;
    color: #991b1b;
}

.ha-error p { margin: 0; }

/* PRINT */
@media print {
    .ha-header, .ha-cta-box, #ha-loading-screen { display: none !important; }
    #hair-analysis-result { box-shadow: none; border: none; }
    .ha-result-content { padding: 0; }
}

/* MOBILE */
@media(max-width:600px){
    .ha-header-inner { padding: 32px 20px 28px; }
    .ha-header h2 { font-size: 1.6rem !important; }
    .ha-header-stats { flex-direction: column; gap: 8px; padding: 14px 20px; }
    .ha-stat-sep { width: 40px; height: 1px; }
    .ha-result-content { padding: 20px; }
    .ha-cta-box { padding: 36px 20px 32px; }
    .ha-cta-box h3 { font-size: 1.35rem !important; }
    .ha-btn-whatsapp, .ha-btn-call { min-width: unset; width: 100%; }
    .ha-cta-buttons { flex-direction: column; }
    #ha-loading-screen { padding: 36px 20px; }
}

/* ==============================
   LOGO FALLBACK
============================== */
.ha-logo-wrap { margin-bottom: 20px; }

.ha-logo-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: .02em;
    padding: 6px 0;
}

.ha-logo-fallback--loading {
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 8px;
}

.ha-logo-wrap--result { margin-bottom: 20px; text-align: center; }

.ha-logo-fallback--result {
    color: rgba(255,255,255,.9);
    font-size: 1.1rem;
    justify-content: center;
}

/* ==============================
   CTA SUBTITLE HIGH CONTRAST FIX
============================== */
.ha-cta-subtitle,
.ha-cta-subtitle * {
    color: rgba(255,255,255,.93) !important;
}

.ha-cta-location {
    color: rgba(255,255,255,.75) !important;
}

/* ==============================
   INLINE ELOS INVITE BLOCK (from LLM)
   Override kırmızı -> lacivert
============================== */
.ha-result-content div[style*="#d82f16"],
.ha-result-content div[style*="#b52510"],
.ha-result-content div[style*="linear-gradient(135deg,#d82f16"] {
    background: linear-gradient(135deg,#1e3a5f,#0f2744) !important;
}

.ha-result-content div[style*="#d82f16"] h3,
.ha-result-content div[style*="#b52510"] h3,
.ha-result-content div[style*="linear-gradient(135deg,#d82f16"] h3 {
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.ha-result-content div[style*="#d82f16"] p,
.ha-result-content div[style*="#b52510"] p,
.ha-result-content div[style*="linear-gradient(135deg,#d82f16"] p {
    color: rgba(255,255,255,.9) !important;
}

/* Brand title */
.ha-brand-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* CTA location - tam beyaz */
.ha-cta-location,
.ha-cta-location strong {
    color: rgba(255,255,255,.95) !important;
}

/* Elos Klinik daveti içindeki link ve telefon ikonu - beyaz */
.ha-result-content div[style*="1e3a5f"] a,
.ha-result-content div[style*="0f2744"] a,
.ha-result-content div[style*="1e3a5f"] p,
.ha-result-content div[style*="0f2744"] p,
.ha-result-content div[style*="1e3a5f"] *,
.ha-result-content div[style*="0f2744"] * {
    color: #ffffff !important;
}

/* Telefon numarası linki beyaz */
.ha-result-content a[href^="tel"] {
    color: #93c5fd !important;
}

/* Loading title - beyaz */
.ha-loading-title {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* Süre uyarısı */
.ha-loading-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: .82rem;
    color: rgba(255,255,255,.8);
    line-height: 1.5;
    text-align: left;
}

.ha-loading-notice span { font-size: 1.2rem; flex-shrink: 0; }

/* ==============================
   SVG HEAD ILLUSTRATIONS
============================== */
.ha-head-svg {
    width: 80px;
    height: 90px;
    display: block;
    margin: 0 auto 6px;
}

.ha-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 8px;
    text-align: center;
}

/* When photo uploaded, hide SVG placeholder fully */
.ha-photo-upload.uploaded .ha-photo-placeholder { display: none; }

/* Phone input */
.ha-field input[type="tel"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: .95rem;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
    box-sizing: border-box;
}

.ha-field input[type="tel"]:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(216,47,22,.12);
}

/* Photo badge label */
.ha-photo-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 800;
    color: #5a3a1a;
    letter-spacing: .1em;
    margin-top: 2px;
}

/* SVG boyutunu büyüt biraz */
.ha-head-svg {
    width: 90px !important;
    height: 96px !important;
}






/* Photo placeholder — flex column centered */
.ha-photo-upload .ha-photo-placeholder {
    width: 160px !important;
    height: 160px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0 0 8px 0 !important;
    margin: 0 !important;
    position: relative !important;
    gap: 3px !important;
}

/* Referans görseli */
.ha-angle-img {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 160px !important;
    height: 160px !important;
    object-fit: cover !important;
    display: block !important;
    z-index: 0 !important;
}

/* Etiket görselin üstünde */
.ha-photo-label {
    position: relative !important;
    z-index: 2 !important;
    font-size: .68rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    background: rgba(0,0,0,0.5) !important;
    padding: 2px 8px !important;
    border-radius: 20px !important;
    letter-spacing: .06em !important;
}

.ha-photo-hint {
    position: relative !important;
    z-index: 2 !important;
    font-size: .62rem !important;
    color: rgba(255,255,255,.9) !important;
    background: rgba(0,0,0,0.35) !important;
    padding: 1px 6px !important;
    border-radius: 20px !important;
}

.ha-photo-upload:hover { border-color: var(--red) !important; }
.ha-photo-upload.uploaded { border-style: solid !important; border-color: var(--green-dark) !important; }

.ha-photo-preview {
    width: 160px !important;
    height: 160px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.ha-photo-preview > img:not(.ha-angle-img) {
    width: 160px !important;
    height: 160px !important;
    object-fit: cover !important;
}

.ha-photo-desc {
    font-size: .72rem !important;
    color: var(--text-muted) !important;
    margin: 6px 0 0 !important;
    text-align: center !important;
    line-height: 1.4 !important;
    width: 160px !important;
}

.ha-uploaded-badge {
    position: absolute !important;
    top: 6px !important; right: 6px !important;
    z-index: 3 !important;
}

/* intl-tel-input dropdown bullet fix */
.iti__country-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
.iti__country-list li,
.iti__country-list .iti__country {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 8px !important;
    margin-left: 0 !important;
    background-image: none !important;
}
.iti__country-list li::before,
.iti__country-list .iti__country::before {
    display: none !important;
    content: none !important;
}


/* Sonuç ekranı aktifken form blokları gizle */
body.ha-result-active #ha-tips-block,
body.ha-result-active #ha-consent-block,
body.ha-result-active #ha-privacy-block,
body.ha-result-active #ha-submit,
body.ha-result-active #ha-form-wrap {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
