/* =========================================================
   Odoo WP Forms v2.0 — Styles
   All values driven by CSS variables set by the visual designer.
   Scoped to .owf-* to avoid conflicts with any theme.
   ========================================================= */

/* ── Reset ── */
.owf-wrap *, .owf-wrap *::before, .owf-wrap *::after { box-sizing: border-box; }

/* ── Base CSS variables (fallbacks) ── */
.owf-wrap {
  --owf-primary:      #4f46e5;
  --owf-primary-dark: #3730a3;
  --owf-btn-text:     #ffffff;
  --owf-success:      #059669;
  --owf-error:        #dc2626;
  --owf-text:         #1f2937;
  --owf-muted:        #6b7280;
  --owf-border:       #d1d5db;
  --owf-bg:           #ffffff;
  --owf-bg-input:     #f9fafb;
  --owf-radius:       10px;
  --owf-btn-radius:   8px;
  --owf-shadow:       0 4px 24px rgba(0,0,0,.08);
  --owf-font-size:    15px;
  --owf-padding:      40px;

  font-family: inherit;
  font-size: var(--owf-font-size);
  color: var(--owf-text);
  width: 100%;
}

/* ── Card containers ── */
.owf-contact-wrap,
.owf-newsletter-wrap {
  background:    var(--owf-bg);
  border-radius: var(--owf-radius);
  box-shadow:    var(--owf-shadow);
  padding:       var(--owf-padding);
  max-width:     720px;
  margin:        0 auto;
}

/* ── Newsletter inner layout ── */
.owf-newsletter-inner {
  display:     flex;
  gap:         32px;
  align-items: flex-start;
  flex-wrap:   wrap;
}
.owf-newsletter-copy      { flex: 1 1 220px; }
.owf-newsletter-copy p    { color: var(--owf-muted); margin: 8px 0 0; line-height: 1.6; }
.owf-newsletter-fields    { flex: 2 1 280px; display: flex; flex-direction: column; gap: 16px; }

/* ── Title ── */
.owf-title {
  font-size:      1.4em;
  font-weight:    700;
  margin:         0 0 20px;
  color:          var(--owf-text);
  letter-spacing: -0.02em;
  line-height:    1.3;
}

/* ── Layout helpers ── */
.owf-row      { display: flex; gap: 16px; flex-wrap: wrap; }
.owf-two-col > .owf-field { flex: 1 1 200px; }

/* ── Form ── */
.owf-form  { display: flex; flex-direction: column; gap: 16px; }
.owf-field { display: flex; flex-direction: column; gap: 6px; }

.owf-field label {
  font-size:      .78em;
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color:          var(--owf-muted);
}
.owf-field label span { color: var(--owf-primary); }

.owf-field input[type="text"],
.owf-field input[type="email"],
.owf-field input[type="tel"],
.owf-field textarea {
  width:        100%;
  padding:      11px 14px;
  border:       1.5px solid var(--owf-border);
  border-radius:8px;
  background:   var(--owf-bg-input);
  font-size:    .95em;
  color:        var(--owf-text);
  font-family:  inherit;
  transition:   border-color .2s, box-shadow .2s;
  outline:      none;
  -webkit-appearance: none;
  appearance:   none;
}

.owf-field input:focus,
.owf-field textarea:focus {
  border-color: var(--owf-primary);
  box-shadow:   0 0 0 3px color-mix(in srgb, var(--owf-primary) 15%, transparent);
  background:   #fff;
}
.owf-field textarea { resize: vertical; min-height: 110px; }

/* ── Checkbox ── */
.owf-checkbox-row { flex-direction: row; align-items: center; }
.owf-checkbox-label {
  display:        flex;
  align-items:    center;
  gap:            10px;
  cursor:         pointer;
  font-size:      .88em;
  color:          var(--owf-muted);
  font-weight:    400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.owf-checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--owf-primary);
  cursor: pointer;
}

/* ── Button ── */
.owf-btn {
  display:       inline-flex;
  align-items:   center;
  justify-content: center;
  gap:           8px;
  padding:       13px 28px;
  background:    var(--owf-primary);
  color:         var(--owf-btn-text, #fff);
  border:        none;
  border-radius: var(--owf-btn-radius);
  font-size:     .95em;
  font-weight:   600;
  cursor:        pointer;
  transition:    background .2s, transform .15s, box-shadow .2s;
  letter-spacing:.01em;
  align-self:    flex-start;
  font-family:   inherit;
}
.owf-btn:hover {
  background: var(--owf-primary-dark);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--owf-primary) 40%, transparent);
  transform:  translateY(-1px);
}
.owf-btn:active   { transform: translateY(0); }
.owf-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Full-width button override (applied via inline style from PHP) */
.owf-btn.owf-btn--full { width: 100%; }

/* Loading animation */
.owf-btn-loader { display: inline-flex; align-items: center; gap: 4px; }
.owf-btn-loader::after {
  content: '...';
  animation: owf-ellipsis 1.2s infinite;
}
@keyframes owf-ellipsis {
  0%   { content: '.'; }
  33%  { content: '..'; }
  66%  { content: '...'; }
}

/* ── Notices ── */
.owf-notice {
  border-radius: 8px;
  padding:       12px 16px;
  font-size:     .9em;
  line-height:   1.5;
}
.owf-notice--success {
  background: #ecfdf5;
  color:      var(--owf-success);
  border:     1px solid #6ee7b7;
}
.owf-notice--error {
  background: #fef2f2;
  color:      var(--owf-error);
  border:     1px solid #fca5a5;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .owf-contact-wrap,
  .owf-newsletter-wrap { padding: 24px 18px; }
  .owf-two-col         { flex-direction: column; }
  .owf-newsletter-inner{ flex-direction: column; }
  .owf-btn             { width: 100%; justify-content: center; }
}

/* ── Elementor / WPBakery column resets ── */
.elementor-widget-container .owf-wrap,
.wpb_wrapper .owf-wrap { max-width: 100%; }
