/* DrTHair WhatsApp Widget */
.drthair-wa-wrap {
    --dwa-color: #25D366;
    position: fixed;
    z-index: 99999;
    bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.drthair-wa--bottom-right { right: 24px; }
.drthair-wa--bottom-left  { left: 24px; }

/* FAB butonu */
.drthair-wa-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--dwa-color);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: drthairWaPulse 2s ease-in-out infinite;
}
.drthair-wa-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}

@keyframes drthairWaPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50%      { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* Modal */
.drthair-wa-modal {
    position: absolute;
    bottom: 78px;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform-origin: bottom right;
    transform: scale(0.9) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    overflow: hidden;
}
.drthair-wa--bottom-right .drthair-wa-modal { right: 0; }
.drthair-wa--bottom-left  .drthair-wa-modal { left: 0;  transform-origin: bottom left; }

.drthair-wa-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.drthair-wa-modal__inner {
    position: relative;
}

/* Head */
.drthair-wa-head {
    background: var(--dwa-color);
    color: #fff;
    padding: 18px 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.drthair-wa-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.drthair-wa-head__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
.drthair-wa-head__sub {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 2px;
}

.drthair-wa-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}
.drthair-wa-close:hover { background: rgba(255, 255, 255, 0.2); }

/* Form */
.drthair-wa-form {
    padding: 18px 20px 20px;
}
.drthair-wa-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.drthair-wa-form input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.drthair-wa-form input[type="tel"]:focus {
    outline: none;
    border-color: var(--dwa-color);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

/* intl-tel-input ile uyum */
.drthair-wa-form .iti { width: 100%; }
.drthair-wa-form .iti--separate-dial-code .iti__selected-flag {
    background: #f7f7f7;
    border-right: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
}
.drthair-wa-form .iti input[type="tel"] {
    border-radius: 8px;
}
.drthair-wa-form .iti__country-list {
    max-height: 220px;
    z-index: 100001;
}
.drthair-wa-form input[type="tel"].has-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.drthair-wa-msg {
    min-height: 18px;
    font-size: 12px;
    margin: 8px 0 12px;
    line-height: 1.4;
}
.drthair-wa-msg.is-error   { color: #e74c3c; }
.drthair-wa-msg.is-success { color: #1e8e3e; }
.drthair-wa-msg.is-info    { color: #555; }

.drthair-wa-submit {
    width: 100%;
    padding: 12px 16px;
    background: var(--dwa-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}
.drthair-wa-submit:hover {
    filter: brightness(0.95);
}
.drthair-wa-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .drthair-wa-modal { width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) {
    .drthair-wa-fab { animation: none; }
    .drthair-wa-modal, .drthair-wa-fab { transition: none; }
}
