/* Site geneli — Sizi Arayalım widget v1.0.4 */

.itm-callback {
    position: fixed;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    z-index: 999995;
    pointer-events: none;
}

.itm-callback-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 48px;
    padding: 16px 8px;
    border: none;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    box-shadow: 4px 0 24px rgba(2, 132, 199, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
    font-weight: 700;
    font-size: 11px;
    line-height: 1.15;
}

.itm-callback-tab i {
    font-size: 17px;
}

.itm-callback-tab-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.itm-callback-tab:hover,
.itm-callback-tab:focus-visible {
    width: 52px;
    box-shadow: 6px 0 28px rgba(2, 132, 199, 0.5);
    outline: none;
}

.itm-callback.is-open .itm-callback-tab {
    opacity: 0;
    pointer-events: none;
}

.itm-callback-overlay {
    position: fixed;
    inset: 0;
    z-index: 999996;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    pointer-events: auto;
    animation: itm-callback-fade-in 0.22s ease;
}

.itm-callback-overlay[hidden] {
    display: none !important;
}

.itm-callback-panel {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 999997;
    width: min(420px, calc(100vw - 32px));
    max-height: min(90vh, 640px);
    overflow-y: auto;
    padding: 22px 20px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    pointer-events: auto;
    animation: itm-callback-panel-in 0.24s ease;
}

@keyframes itm-callback-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes itm-callback-panel-in {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 12px));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.itm-callback-panel[hidden] {
    display: none !important;
}

.itm-callback-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.itm-callback-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.itm-callback-panel-head {
    padding-right: 36px;
    margin-bottom: 16px;
}

.itm-callback-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    color: #0284c7;
    font-size: 18px;
    margin-bottom: 10px;
}

.itm-callback-panel-head h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.itm-callback-panel-head p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
}

.itm-callback-form .itm-contact-field {
    margin-bottom: 12px;
}

.itm-callback-form .itm-contact-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.itm-callback-form .itm-contact-field input[type="text"],
.itm-callback-form .itm-contact-field input[type="email"],
.itm-callback-form .itm-contact-field input[type="tel"] {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
}

.itm-callback-form .itm-contact-submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.itm-callback-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 12px 4px;
    min-height: 200px;
}

.itm-callback-success[hidden] {
    display: none !important;
}

.itm-callback-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(145deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
    font-size: 30px;
    box-shadow: 0 10px 28px rgba(22, 163, 74, 0.22);
    animation: itm-callback-success-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.itm-callback-success-title {
    margin: 0 0 10px;
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
}

.itm-callback-success-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.6;
    max-width: 300px;
}

.itm-callback-panel.is-success .itm-callback-panel-head p {
    display: none;
}

@keyframes itm-callback-success-pop {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

html.itm-dark-mode .itm-callback-panel {
    background: #0f172a;
    border-color: #334155;
}

html.itm-dark-mode .itm-callback-panel-head h2 {
    color: #f8fafc;
}

html.itm-dark-mode .itm-callback-panel-head p,
html.itm-dark-mode .itm-callback-form .itm-contact-field label {
    color: #94a3b8;
}

html.itm-dark-mode .itm-callback-form .itm-contact-field input {
    background: #111827;
    border-color: #334155;
    color: #f8fafc;
}

html.itm-dark-mode .itm-callback-close {
    background: #1e293b;
    color: #cbd5e1;
}

html.itm-dark-mode .itm-callback-success-title {
    color: #f8fafc;
}

html.itm-dark-mode .itm-callback-success-text {
    color: #94a3b8;
}

html.itm-dark-mode .itm-callback-success-icon {
    background: linear-gradient(145deg, #14532d 0%, #166534 100%);
    color: #4ade80;
    box-shadow: 0 10px 28px rgba(34, 197, 94, 0.18);
}

body.itm-callback-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .itm-callback-tab {
        width: 44px;
        padding: 14px 6px;
        font-size: 10px;
    }

    .itm-callback-panel {
        width: min(400px, calc(100vw - 24px));
        max-height: min(88vh, 620px);
    }
}
