/*!
 * Hostixo – "Biz Sizi Arayalım" geri arama formu
 * Modal + bağımsız sayfa kartı stilleri
 * v1.0
 */

html.hxcb-lock,
html.hxcb-lock body { overflow: hidden !important; }

/* ------------------------------------------------------------------ */
/* Modal                                                               */
/* ------------------------------------------------------------------ */
.hxcb-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(9, 17, 33, .62);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.hxcb-overlay.is-open { display: flex; }

.hxcb-modal {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 70px -20px rgba(3, 10, 26, .55);
    animation: hxcbPop .3s cubic-bezier(.2, .8, .3, 1);
}

@keyframes hxcbPop {
    from { opacity: 0; transform: translateY(22px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.hxcb-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, .06);
    color: #475569;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hxcb-close:hover { background: #fee2e2; color: #dc2626; transform: rotate(90deg); }

.hxcb-modal-body { padding: 0; }
.hxcb-loading { padding: 60px 24px; text-align: center; color: #64748b; font-size: 15px; }

/* ------------------------------------------------------------------ */
/* Kart (modal içi ve bağımsız sayfa)                                  */
/* ------------------------------------------------------------------ */
.hxcb-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

.hxcb-modal .hxcb-card { border-radius: 20px; }

.hxcb-card__head {
    position: relative;
    padding: 26px 30px 22px;
    background: linear-gradient(135deg, #0066cc 0%, #0b8ee0 55%, #2db5f6 100%);
    color: #fff;
    overflow: hidden;
}

.hxcb-card__head::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -70px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.hxcb-card__head::before {
    content: "";
    position: absolute;
    right: 60px;
    bottom: -80px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.hxcb-card__eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .18);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.hxcb-card__title {
    position: relative;
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading, 'Poppins', sans-serif);
}

.hxcb-card__sub {
    position: relative;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .88);
    max-width: 42ch;
}

/* ------------------------------------------------------------------ */
/* Form                                                                */
/* ------------------------------------------------------------------ */
.hxcb-form { padding: 24px 30px 30px; }

.hxcb-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hxcb-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.hxcb-field--full { grid-column: 1 / -1; }

.hxcb-field > label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.hxcb-req { color: #ff7900; }

.hxcb-ctrl {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 11px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.hxcb-ctrl > i {
    flex: 0 0 auto;
    width: 42px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    transition: color .18s ease;
}

.hxcb-ctrl input,
.hxcb-ctrl select,
.hxcb-ctrl textarea {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 12px 14px 12px 0;
    font-size: 14.5px;
    font-family: inherit;
    color: #0f172a;
}

.hxcb-ctrl select { cursor: pointer; padding-right: 14px; -webkit-appearance: none; appearance: none; }

.hxcb-ctrl--area { align-items: flex-start; }
.hxcb-ctrl--area > i { padding-top: 14px; }
.hxcb-ctrl textarea { padding: 12px 14px 12px 0; resize: vertical; min-height: 104px; line-height: 1.55; }

.hxcb-ctrl:focus-within {
    background: #fff;
    border-color: #2db5f6;
    box-shadow: 0 0 0 4px rgba(45, 181, 246, .15);
}

.hxcb-ctrl:focus-within > i { color: #0066cc; }

.hxcb-field--error .hxcb-ctrl {
    border-color: #ef4444;
    background: #fef2f2;
}

.hxcb-field--error > label { color: #dc2626; }

/* captcha */
.hxcb-captcha { display: grid; gap: 16px; grid-template-columns: 1fr 190px; align-items: start; }

.hxcb-question {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 6px 0 16px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 11px;
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
    letter-spacing: .01em;
}

.hxcb-question-ico { color: #ff7900; }

.hxcb-refresh {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: #0066cc;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .1);
    transition: color .18s ease, transform .25s ease;
}

.hxcb-refresh:hover { color: #ff7900; }
.hxcb-refresh.is-spinning i { animation: hxcbSpin .7s linear infinite; }

@keyframes hxcbSpin { to { transform: rotate(360deg); } }

/* onay kutusu */
.hxcb-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    cursor: pointer;
}

.hxcb-check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #0066cc;
    cursor: pointer;
}

.hxcb-check a { color: #0066cc; text-decoration: underline; }

.hxcb-field--error .hxcb-check { color: #dc2626; }

/* mesajlar */
.hxcb-msg {
    display: none;
    padding: 12px 16px;
    border-radius: 11px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.hxcb-msg--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.hxcb-msg--success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* gönder butonu */
.hxcb-actions { margin-top: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hxcb-submit {
    flex: 1 1 240px;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff7900, #ff5e00);
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 12px 26px -12px rgba(255, 94, 0, .75);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hxcb-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(255, 94, 0, .85); }
.hxcb-submit:disabled { opacity: .7; cursor: wait; transform: none; }

.hxcb-note { font-size: 12.5px; color: #64748b; line-height: 1.5; }

/* başarı ekranı */
.hxcb-success { display: none; padding: 46px 30px 50px; text-align: center; }

.hxcb-success__ico {
    width: 78px;
    height: 78px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #f0fdf4;
    color: #22c55e;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 10px rgba(34, 197, 94, .1);
    animation: hxcbPop .4s cubic-bezier(.2, .8, .3, 1);
}

.hxcb-success__title { margin: 0 0 10px; font-size: 22px; font-weight: 700; color: #0f172a; }
.hxcb-success__text { margin: 0 auto; max-width: 46ch; color: #475569; font-size: 14.5px; line-height: 1.6; }

/* bot tuzağı */
.hxcb-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Bağımsız sayfa düzeni                                                */
/* ------------------------------------------------------------------ */
.hxcb-page {
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 55%);
    padding: 54px 16px 72px;
}

.hxcb-page .hxcb-card {
    max-width: 720px;
    margin: 0 auto;
    box-shadow: 0 24px 60px -28px rgba(3, 10, 26, .38);
    border: 1px solid rgba(15, 23, 42, .06);
}

.hxcb-page-intro { max-width: 720px; margin: 0 auto 26px; text-align: center; }
.hxcb-page-intro h1 { margin: 0 0 10px; font-size: 30px; color: #0f172a; }
.hxcb-page-intro p { margin: 0; color: #64748b; font-size: 15.5px; line-height: 1.6; }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 640px) {
    .hxcb-overlay { padding: 0; align-items: stretch; }
    .hxcb-modal { max-width: none; border-radius: 0; min-height: 100%; border-radius: 0 0 18px 18px; }
    .hxcb-modal .hxcb-card { border-radius: 0 0 18px 18px; }
    .hxcb-card__head { padding: 22px 20px 18px; }
    .hxcb-card__title { font-size: 20px; }
    .hxcb-form { padding: 20px 20px 26px; }
    .hxcb-grid { grid-template-columns: 1fr; gap: 14px; }
    .hxcb-captcha { grid-template-columns: 1fr; }
    .hxcb-close { top: 10px; right: 10px; background: rgba(255, 255, 255, .22); color: #fff; }
    .hxcb-close:hover { background: #fff; color: #dc2626; }
    .hxcb-page { padding: 34px 16px 54px; }
    .hxcb-page-intro h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .hxcb-modal, .hxcb-success__ico { animation: none; }
    .hxcb-submit:hover { transform: none; }
}
