/* ── Sanirent WA Form ── */
:root {
  --srwa-pad-x: max(12px, 3vw);
}

.srwa-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.srwa-wrap * {
  box-sizing: border-box;
}

.srwa-phone {
  background: #111b21;
  color: #e9edef;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}

/* Top bar */
.srwa-topbar {
  background: #075E54;
  color: #fff;
  padding: clamp(10px, 3.2vw, 16px) var(--srwa-pad-x);
  display: flex;
  align-items: center;
  gap: 12px;
}

.srwa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #25D366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #083c2b;
  font-size: clamp(12px, 3.6vw, 14px);
  flex: 0 0 auto;
}

.srwa-contact {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.srwa-name {
  font-weight: 700;
  font-size: clamp(14px, 4.4vw, 18px);
}

.srwa-status {
  font-size: clamp(12px, 3.8vw, 14px);
  opacity: .9;
}

/* Chat area */
.srwa-chat {
  background: #0b141a;
  padding: clamp(12px, 3.6vw, 18px) var(--srwa-pad-x);
  min-height: 220px;
}

/* Bubble / form */
.srwa-bubble {
  background: #202c33;
  color: #e9edef;
  border-radius: 12px;
  padding: clamp(12px, 3.6vw, 16px);
  width: 100%;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .2);
  border: 1px solid #1b252b;
}

.srwa-bubble h3 {
  margin: 0 0 12px;
  font-size: clamp(16px, 5vw, 20px);
}

.srwa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(8px, 2.6vw, 12px);
}

.srwa-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.srwa-label {
  font-size: clamp(12px, 3.6vw, 14px);
  color: #c5ced3;
}

.srwa-input,
.srwa-textarea {
  background: #0b141a;
  color: #e9edef;
  border: 1px solid #2a3942;
  border-radius: 10px;
  padding: clamp(10px, 3.6vw, 12px) clamp(12px, 4.2vw, 14px);
  font-size: clamp(14px, 4.2vw, 16px);
  min-height: 46px;
  width: 100%;
  max-width: 100%;
  display: block;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.srwa-input{
  margin-bottom: 0 !important;
}

.srwa-input:focus,
.srwa-textarea:focus {
  border-color: #25D366;
}

.srwa-input.srwa-error,
.srwa-textarea.srwa-error {
  border-color: #e74c3c;
}

.srwa-textarea {
  min-height: 80px;
  resize: vertical;
}

/* Honeypot – hidden from real users */
.srwa-hp-field {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

/* Send bar */
.srwa-sendbar {
  background: #111b21;
  border-top: 1px solid #202c33;
  padding: clamp(10px, 3vw, 14px) var(--srwa-pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.srwa-btn {
  background: #25D366;
  color: #083c2b;
  border: 0;
  border-radius: 999px;
  padding: clamp(12px, 3.8vw, 14px) clamp(16px, 4.6vw, 20px);
  font-weight: 700;
  cursor: pointer;
  font-size: clamp(14px, 4.4vw, 16px);
  width: 100%;
  max-width: 100%;
  transition: filter .15s;
  font-family: inherit;
}

.srwa-btn:hover:not(:disabled) {
  filter: brightness(1.07);
}

.srwa-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.srwa-note {
  font-size: clamp(11px, 3.4vw, 13px);
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
}

.srwa-msg-error {
  color: #ff6b6b;
  font-size: 13px;
  text-align: center;
}

.srwa-msg-ok {
  color: #25D366;
  font-size: 13px;
  text-align: center;
}

/* Mobile */
@media (max-width: 640px) {
  .srwa-phone {
    border-radius: 0;
    max-width: 100%;
  }

  :root {
    --srwa-pad-x: max(10px, 4vw);
  }
}

/* ══════════════════════════════════════════════════════════
   POPUP / MODAL
   ══════════════════════════════════════════════════════════ */

/* Full-screen overlay */
.srwa-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .60);
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  /* animation */
  opacity: 0;
  transition: opacity .22s ease;
}
.srwa-popup-overlay.srwa-popup-visible {
  opacity: 1;
}

/* Centered card */
.srwa-popup-inner {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 20px;
  /* slide-up */
  transform: translateY(24px);
  transition: transform .22s ease;
}
.srwa-popup-overlay.srwa-popup-visible .srwa-popup-inner {
  transform: translateY(0);
}

/* Remove outer padding when inside popup */
.srwa-wrap--popup {
  padding: 0;
}

/* Close button (×) */
.srwa-popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 10;
  background: rgba(0,0,0,.45);
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.srwa-popup-close:hover {
  background: rgba(0,0,0,.70);
}

/* Trigger button default style
   (override freely with your own classes / Elementor styles) */
.srwa-popup-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #083c2b;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: filter .15s;
}
.srwa-popup-trigger:hover {
  filter: brightness(1.07);
}

/* Lock scroll when popup is open */
body.srwa-popup-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .srwa-popup-inner {
    border-radius: 16px 16px 0 0;
    max-height: 96vh;
  }
  .srwa-popup-overlay {
    align-items: flex-end;
    padding: 0;
  }
}

/* Select field inside WA bubble */
.srwa-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c5ced3' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.srwa-select option {
  background: #111b21;
  color: #e9edef;
}
