/* Oolab contact widget — floating launcher + panel */
#oo-contact-root {
  --oo-pink: #e91e63;
  --oo-blue: #2196f3;
  --oo-text: #1a1a1a;
  --oo-muted: #5c5c5c;
  --oo-border: #e8e8e8;
  --oo-bg: #ffffff;
  --oo-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--oo-text);
  box-sizing: border-box;
}

#oo-contact-root *,
#oo-contact-root *::before,
#oo-contact-root *::after {
  box-sizing: border-box;
}

#oo-contact-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  background: linear-gradient(90deg, var(--oo-pink) 0%, var(--oo-blue) 100%);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#oo-contact-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(233, 30, 99, 0.35);
}

#oo-contact-launcher:focus-visible {
  outline: 3px solid var(--oo-blue);
  outline-offset: 3px;
}

#oo-contact-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 99999;
  width: min(100vw - 40px, 400px);
  max-height: min(85vh, 560px);
  display: flex;
  flex-direction: column;
  background: var(--oo-bg);
  border-radius: 16px;
  box-shadow: var(--oo-shadow);
  border: 1px solid var(--oo-border);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

#oo-contact-panel.oo-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

#oo-contact-panel header {
  padding: 16px 18px;
  background: linear-gradient(90deg, rgba(233, 30, 99, 0.08) 0%, rgba(33, 150, 243, 0.08) 100%);
  border-bottom: 1px solid var(--oo-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#oo-contact-panel h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

#oo-contact-close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--oo-muted);
  padding: 4px 8px;
  border-radius: 8px;
}

#oo-contact-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

#oo-contact-form-wrap {
  padding: 16px 18px 18px;
  overflow-y: auto;
  flex: 1;
}

#oo-contact-root fieldset.oo-conditional[hidden] {
  display: none;
}

#oo-contact-root label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--oo-text);
}

#oo-contact-root .oo-hint {
  font-weight: 400;
  color: var(--oo-muted);
  font-size: 12px;
}

#oo-contact-root .oo-field {
  margin-bottom: 14px;
}

#oo-contact-root input[type="text"],
#oo-contact-root input[type="email"],
#oo-contact-root textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--oo-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
}

#oo-contact-root textarea {
  min-height: 120px;
  resize: vertical;
}

#oo-contact-root input:focus-visible,
#oo-contact-root textarea:focus-visible {
  outline: 2px solid var(--oo-blue);
  outline-offset: 1px;
  border-color: var(--oo-blue);
}

#oo-contact-root .oo-yesno {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

#oo-contact-root .oo-yesno label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0;
}

#oo-contact-root .oo-yesno input {
  width: auto;
  accent-color: var(--oo-pink);
}

#oo-contact-submit {
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, var(--oo-pink) 0%, var(--oo-blue) 100%);
  transition: opacity 0.2s ease;
}

#oo-contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#oo-contact-status {
  margin-top: 12px;
  font-size: 14px;
  min-height: 1.2em;
}

#oo-contact-status.oo-err {
  color: #b00020;
}

#oo-contact-status.oo-ok {
  color: #1b5e20;
}

#oo-contact-root .oo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  #oo-contact-launcher {
    right: 14px;
    bottom: 14px;
    padding: 12px 16px;
    font-size: 14px;
  }

  #oo-contact-panel {
    right: 14px;
    bottom: 76px;
    width: calc(100vw - 28px);
    max-height: 78vh;
  }
}
