/* Nuray Bilir Sigorta v1.2.0 refinements */
[hidden] { display: none !important; }

#hizli-teklif,
#customer-form,
#policy-form { scroll-margin-top: 104px; }

.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.service-card { height: 100%; min-height: 350px; }
.service-card-emerald { --service-accent: 92, 184, 146; }
.service-card-green { --service-accent: 126, 183, 96; }
.service-card-sky { --service-accent: 104, 171, 210; }
.service-card h3 { text-wrap: balance; }

.quick-quote-section {
    background:
        radial-gradient(circle at 14% 18%, rgba(215,179,122,.18), transparent 25%),
        radial-gradient(circle at 88% 78%, rgba(169,104,88,.15), transparent 27%),
        linear-gradient(135deg, #091726 0%, #050b14 62%, #0b1521 100%);
    overflow: hidden;
}
.quick-quote-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .28;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 82%);
    mask-image: linear-gradient(90deg, #000, transparent 82%);
}
.quick-quote-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0,.82fr) minmax(520px,1.18fr);
    gap: clamp(44px,7vw,100px);
    align-items: center;
}
.quick-quote-copy h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(52px,5.7vw,82px);
    font-weight: 520;
    line-height: .92;
    letter-spacing: -.035em;
}
.quick-quote-copy h2 em { color: var(--gold-bright); font-weight: 400; }
.quick-quote-copy > p:not(.eyebrow) { max-width: 600px; margin: 28px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.quote-assurance-list { display: grid; gap: 0; margin-top: 34px; border-top: 1px solid var(--line); }
.quote-assurance-list span { display: grid; grid-template-columns: 43px 1fr; gap: 12px; align-items: center; min-height: 57px; border-bottom: 1px solid var(--line); color: #d5dce6; font-size: 12px; }
.quote-assurance-list strong { color: var(--gold); font-size: 10px; letter-spacing: .14em; }
.quick-quote-form { position: relative; border-radius: 30px; padding: clamp(25px,4vw,46px); overflow: visible; }
.quick-quote-form::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, rgba(242,211,154,.18), transparent 35%, rgba(169,104,88,.12)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; }
.quick-quote-form .form-submit { width: 100%; margin-top: 25px; }
.quick-quote-form .form-status,
.contact-form .form-status {
    display: none;
    min-height: 0;
    margin-top: 16px;
    padding: 15px 17px;
    border: 1px solid transparent;
    border-radius: 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}
.quick-quote-form .form-status.is-success,
.contact-form .form-status.is-success { display: block; color: #bdf5da; background: rgba(88,198,154,.12); border-color: rgba(88,198,154,.46); box-shadow: 0 14px 38px rgba(22,101,52,.12); }
.quick-quote-form .form-status.is-success::before,
.contact-form .form-status.is-success::before { content: "✓  "; color: #6ee7b7; font-size: 16px; }
.quick-quote-form .form-status.is-error,
.contact-form .form-status.is-error { display: block; color: #ffd0d0; background: rgba(228,122,122,.12); border-color: rgba(228,122,122,.42); }
.quick-quote-form .form-status.is-error::before,
.contact-form .form-status.is-error::before { content: "!  "; font-size: 16px; }

.back-to-top {
    position: fixed;
    z-index: 69;
    right: 31px;
    bottom: 94px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(215,179,122,.45);
    border-radius: 50%;
    color: var(--gold-bright);
    background: rgba(7,17,31,.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 38px rgba(0,0,0,.38);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s, transform .25s, visibility .25s, border-color .25s;
}
.back-to-top span { font-size: 22px; line-height: 1; transform: translateY(-1px); }
.back-to-top:hover { border-color: var(--gold); transform: translateY(-2px); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.toolbar-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.toolbar-actions .btn { min-height: 43px; white-space: nowrap; }
.collapsible-form { animation: formReveal .28s ease-out; }
@keyframes formReveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.field-help { display: block; margin-top: -3px; color: var(--muted) !important; font-size: 9px !important; line-height: 1.45; text-transform: none !important; letter-spacing: 0 !important; }
.field > .date-input-shell { position: relative; display: flex; align-items: stretch; gap: 0; color: inherit; letter-spacing: 0; text-transform: none; font-size: inherit; font-weight: inherit; }
.date-input-shell input { padding-right: 48px !important; }
.date-input-shell > button { position: absolute; top: 50%; right: 5px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--gold); background: rgba(215,179,122,.08); border: 1px solid rgba(215,179,122,.22); border-radius: 8px; transform: translateY(-50%); }
.date-input-shell > button:hover { background: rgba(215,179,122,.16); border-color: rgba(215,179,122,.5); }
.date-input-shell > button svg { width: 16px; height: 16px; }
.tr-calendar {
    position: fixed;
    z-index: 180;
    width: min(330px, calc(100vw - 24px));
    padding: 15px;
    color: #eaf0f7;
    background: rgba(7,16,28,.985);
    border: 1px solid rgba(215,179,122,.38);
    border-radius: 16px;
    box-shadow: 0 28px 90px rgba(0,0,0,.58);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
}
.tr-calendar-head { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 8px; margin-bottom: 12px; }
.tr-calendar-head strong { text-align: center; font-size: 13px; }
.tr-calendar-head button { width: 36px; height: 36px; color: #eaf0f7; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 10px; }
.tr-calendar-weekdays,
.tr-calendar-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.tr-calendar-weekdays span { padding: 6px 0; color: #7d8ca1; text-align: center; font-size: 9px; font-weight: 800; }
.tr-calendar-day { height: 36px; color: #dce4ef; background: transparent; border: 1px solid transparent; border-radius: 9px; font-size: 11px; }
.tr-calendar-day:hover { color: #fff; background: rgba(215,179,122,.12); border-color: rgba(215,179,122,.28); }
.tr-calendar-day.is-today { border-color: rgba(215,179,122,.5); }
.tr-calendar-day.is-selected { color: #111827; background: linear-gradient(135deg,var(--gold-bright),var(--rose)); font-weight: 900; }
.tr-calendar-day.is-outside { color: #4d5a6c; }

.profile-route-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 17px; }
.route-card { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 13px; min-height: 105px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.03)); }
.route-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--gold); background: rgba(215,179,122,.1); border: 1px solid rgba(215,179,122,.25); border-radius: 12px; }
.route-icon svg { width: 19px; }
.route-card strong { font-size: 12px; }
.route-card p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; overflow-wrap: anywhere; }
.profile-grid,
.definitions-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.profile-form-grid,
.definition-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
.settings-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.settings-head h2 { margin-bottom: 5px; }
.settings-head p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.switch-row { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); }
.switch-row > input { appearance: none; position: relative; width: 40px !important; height: 23px; padding: 0 !important; border-radius: 999px !important; background: #243247 !important; cursor: pointer; }
.switch-row > input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch-row > input:checked { background: linear-gradient(135deg,var(--gold),var(--rose)) !important; }
.switch-row > input:checked::after { transform: translateX(17px); }
.switch-row span { display: grid; gap: 3px; }
.switch-row strong { font-size: 11px; }
.switch-row small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.inline-test-form { margin-top: -6px; }
.definition-list-panel { margin-top: 17px; }
.crm-table code { color: var(--gold-bright); font-size: 10px; }
.action-btn-danger { color: #ffb6b6; border-color: rgba(228,122,122,.3); background: rgba(228,122,122,.08); }
.profit-value { white-space: nowrap; font-size: 11px; }
.profit-value.is-positive { color: #91e4bd; }
.profit-value.is-negative { color: #ffaaaa; }

html[data-crm-theme=light] .brand-copy small { color: #7a5a43; }
html[data-crm-theme=light] .brand-mark { color: #70462f; background: linear-gradient(145deg,#fff9ed,#efdcc4); border-color: rgba(139,93,66,.55); box-shadow: inset 0 1px #fff,0 8px 22px rgba(20,32,51,.12); }
html[data-crm-theme=light] .brand-mark::after { background: #fff7e8; border-color: rgba(139,93,66,.62); }
html[data-crm-theme=light] .btn-outline { color: #334155; background: #fff; border-color: rgba(139,93,66,.35); }
html[data-crm-theme=light] .btn-outline:hover { color: #172033; background: #fff9ef; border-color: #9a5d4b; }
html[data-crm-theme=light] .route-card,
html[data-crm-theme=light] .switch-row { color: #142033; background: rgba(255,255,255,.9); border-color: rgba(12,31,52,.12); box-shadow: 0 10px 30px rgba(20,32,51,.05); }
html[data-crm-theme=light] .route-card p,
html[data-crm-theme=light] .switch-row small,
html[data-crm-theme=light] .settings-head p,
html[data-crm-theme=light] .field-help { color: #64748b !important; }
html[data-crm-theme=light] .action-btn-whatsapp { color: #166534; background: #dcfce7; border-color: #86efac; }
html[data-crm-theme=light] .action-btn-email { color: #1d4ed8; background: #dbeafe; border-color: #93c5fd; }
html[data-crm-theme=light] .action-btn-danger { color: #b91c1c; background: #fee2e2; border-color: #fecaca; }
html[data-crm-theme=light] .panel-link,
html[data-crm-theme=light] .crm-table code { color: #7c5039; }
html[data-crm-theme=light] .switch-row strong,
html[data-crm-theme=light] .settings-head h2 { color: #142033; }
html[data-crm-theme=light] .date-input-shell > button { color: #794d34; background: #fff9ef; border-color: rgba(139,93,66,.3); }
html[data-crm-theme=light] .profit-value.is-positive { color: #15803d; }
html[data-crm-theme=light] .profit-value.is-negative { color: #b91c1c; }

@media (max-width: 1180px) {
    .quick-quote-shell { grid-template-columns: minmax(0,.8fr) minmax(460px,1.2fr); gap: 45px; }
    .toolbar-actions { width: 100%; justify-content: flex-start; }
    .page-toolbar { flex-wrap: wrap; }
}

@media (max-width: 1080px) {
    .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .profile-route-grid { grid-template-columns: 1fr; }
    .profile-grid,
    .definitions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .quick-quote-shell { grid-template-columns: 1fr; }
    .quick-quote-copy > p:not(.eyebrow) { max-width: 680px; }
}

@media (max-width: 680px) {
    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 315px; }
    .quick-quote-copy h2 { font-size: clamp(47px,14vw,65px); }
    .quick-quote-form { border-radius: 23px; padding: 23px 18px; }
    .quote-assurance-list span { grid-template-columns: 35px 1fr; }
    .toolbar-actions { display: grid; grid-template-columns: 1fr; }
    .toolbar-actions .btn { width: 100%; }
    .profile-form-grid,
    .definition-form { grid-template-columns: 1fr; }
    .settings-head { display: grid; }
}

@media (max-width: 580px) {
    .back-to-top { right: 20px; bottom: 82px; width: 42px; height: 42px; }
    .quick-quote-section { padding-top: 88px; padding-bottom: 88px; }
    .quick-quote-form .form-status,
    .contact-form .form-status { font-size: 12px; }
    .tr-calendar { left: 12px !important; right: 12px !important; width: auto; }
}
