/* Yüzen "Sizi arayalım" widget — FAB + modal + form stilleri */
/* FAB: Uiverse sticker buton (mi-series) — e-Koç renkleri */

.callback-fab {
    position: fixed;
    z-index: 90;
    right: max(1.25rem, env(safe-area-inset-right, 0px));
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    padding: 0;
    padding-bottom: 3px;
    border: none;
    border-radius: 6px;
    background-color: #dbf227;
    box-shadow: 0 3px 0 #111;
    transform: rotate(4deg);
    transform-origin: center;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition:
        transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s ease,
        padding-bottom 0.3s ease,
        opacity 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.callback-fab--docked {
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem) rotate(4deg);
}

.callback-fab--docked.callback-fab--visible {
    opacity: 1;
    pointer-events: auto;
    transform: rotate(4deg);
}

.callback-fab__face {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 0.55rem 1rem;
    border-radius: 6px;
    border: 2px solid #111;
    color: #111;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.callback-fab__icon {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    color: #3f4f00;
}

.callback-fab:focus {
    outline: none;
}

.callback-fab:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .callback-fab:hover {
        transform: rotate(2deg) translateY(-2px);
        box-shadow: 0 5px 0 #111;
    }
}

.callback-fab:active {
    transform: rotate(4deg) translateY(4px);
    padding-bottom: 0;
    box-shadow: 0 0 0 #111;
}

@media (max-width: 520px) {
    .callback-fab__label {
        display: none;
    }

    .callback-fab__face {
        padding: 0.7rem;
        justify-content: center;
    }

    .callback-fab__icon {
        width: 1.35rem;
        height: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .callback-fab {
        transition: none !important;
    }
}

/* Modal */
.callback-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    pointer-events: none;
    visibility: hidden;
}

.callback-modal.is-open,
.callback-modal.is-closing {
    display: flex !important;
    pointer-events: auto;
    visibility: visible;
}

.callback-modal.is-closing {
    pointer-events: none;
}

.callback-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.callback-modal.is-open .callback-modal__backdrop {
    opacity: 1;
}

.callback-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    margin: auto;
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.callback-modal.is-open .callback-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.callback-modal__panel {
    background: #f0f0f0;
    border-radius: 0.5rem;
    border-top: 3px solid #dbf227;
    color: #111;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.35);
}

.callback-modal__panel-inner {
    padding: 1.75rem 1.5rem 1.5rem;
}

.callback-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.375rem;
}

.callback-modal__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
}

.callback-modal__title::after {
    content: '';
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-left: 0.15rem;
    vertical-align: 0.15em;
    background: #dbf227;
    border-radius: 1px;
}

.callback-modal__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0.125rem -0.25rem 0 0;
    padding: 0;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.callback-modal__close:hover {
    color: #3f4f00;
    background: rgba(219, 242, 39, 0.18);
}

.callback-modal__sub {
    margin: 0 0 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #6b7280;
}

.callback-modal__hint {
    margin: 0.375rem 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #9ca3af;
}

.callback-modal__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #4b5563;
}

.callback-modal__consent input {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.callback-modal__consent a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.callback-modal__phone-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.callback-modal__phone-prefix {
    flex-shrink: 0;
    padding-bottom: 0.625rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
}

.callback-modal .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.callback-modal .contact-form__field {
    margin: 0;
    padding: 0;
    border: none;
    min-width: 0;
}

.callback-modal .contact-form__field--types {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.callback-modal .contact-form__label {
    display: block;
    margin-bottom: 0.375rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.callback-modal .contact-form__input {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(17, 17, 17, 0.22);
    border-radius: 0;
    background: transparent;
    padding: 0.5rem 0 0.625rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #111;
    transition: border-color 0.2s ease;
}

.callback-modal .contact-form__input::placeholder {
    color: #9ca3af;
}

.callback-modal .contact-form__input:focus {
    outline: none;
    border-bottom-color: #111;
}

.callback-modal .contact-form__checks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
}

/* Zaman seçimi: segment + chip + özel tercih */
.callback-slot__days {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.callback-slot__day {
    flex: 1 1 0;
    min-width: 5.5rem;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid rgba(17, 17, 17, 0.2);
    border-radius: 0.375rem;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.callback-slot__day:hover:not(.is-active) {
    border-color: rgba(17, 17, 17, 0.35);
    color: #111;
}

.callback-slot__day.is-active {
    border-color: #111;
    background: #dbf227;
    color: #111;
}

.callback-slot__day:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.callback-slot__times {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.callback-slot__times.is-hidden,
.callback-slot__custom.is-hidden {
    display: none !important;
}

.callback-slot__chip {
    flex: 1 1 6.5rem;
    min-width: 6.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.625rem 0.75rem;
    border: 1.5px solid rgba(17, 17, 17, 0.2);
    border-radius: 0.375rem;
    background: #fff;
    font-family: 'Inter', sans-serif;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.callback-slot__chip:hover:not(:disabled):not(.is-active) {
    border-color: rgba(17, 17, 17, 0.4);
}

.callback-slot__chip.is-active {
    border-color: #111;
    background: #f7fee7;
    box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.callback-slot__chip:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.callback-slot__chip-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111;
}

.callback-slot__chip-range {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

.callback-slot__custom {
    margin-top: 0.75rem;
}

.callback-slot__textarea {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.625rem 0;
    border: none;
    border-bottom: 1px solid rgba(17, 17, 17, 0.22);
    border-radius: 0;
    background: transparent;
    resize: vertical;
    min-height: 4.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #111;
}

.callback-slot__textarea::placeholder {
    color: #9ca3af;
}

.callback-slot__textarea:focus {
    outline: none;
    border-bottom-color: #111;
}

@media (max-width: 767px) {
    .callback-modal .contact-form__input,
    .callback-slot__textarea {
        font-size: 1rem;
    }
}

.callback-modal .contact-form__check {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4b5563;
    text-align: left;
    cursor: pointer;
    transition: color 0.15s ease;
}

.callback-modal .contact-form__check-box {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    border: 1.5px solid rgba(17, 17, 17, 0.35);
    border-radius: 2px;
    background: transparent;
    position: relative;
}

.callback-modal .contact-form__check.is-active {
    color: #111;
    font-weight: 600;
}

.callback-modal .contact-form__check.is-active .contact-form__check-box {
    border-color: #111;
    background: #111;
}

.callback-modal .contact-form__check.is-active .contact-form__check-box::after {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.05rem;
    width: 0.3rem;
    height: 0.55rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.callback-modal .contact-form__footer {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding-top: 0.25rem;
}

.callback-modal .contact-form__message {
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    text-align: center;
}

.callback-modal .contact-form__message p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
}

.callback-modal .contact-form__message--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.callback-modal .contact-form__message--success p {
    color: #15803d;
}

.callback-modal .contact-form__message--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.callback-modal .contact-form__message--error p {
    color: #b91c1c;
}

.callback-modal .contact-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    background: #141414;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.callback-modal .contact-form__submit:hover:not(:disabled) {
    background: #000;
}

.callback-modal .contact-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.callback-modal .hidden {
    display: none !important;
}
