/* ---------------------------------------------------------------------------
   contact.css — the /contact form widget.

   ⚠️ DIFFERENT KIND OF PORT. There is no authored source for this page in
   pages/ — unlike /browse, /details, /cart and /pricing. The only copy is
   ~/riddimbank-crawl-2026-09-17/pages/contact.html, the LIVE page with all of
   Simvoly's platform chrome around it. riddimBank's own widget turned out to be
   a complete little HTML document that Simvoly embeds whole, so it came out
   cleanly: this file is its <style> block, verbatim.

   NOTHING was changed. The widget's reset is scoped to .rb-contact-widget, and
   its variables are prefixed --rb-*, so it does not collide with the shell.
   --------------------------------------------------------------------------- */

    /* ========================================
       CONTACT WIDGET - riddimBank
       Place this widget on your /contact page
       ======================================== */
    
    /* CSS Variables (consistent with design system) */
    :root {
      --rb-primary: #1DB954;
      --rb-primary-hover: #1ed760;
      --rb-background: #0a0a0a;
      --rb-surface: #1a1a1a;
      --rb-surface-elevated: #2a2a2a;
      --rb-border: #333;
      --rb-text-primary: #ffffff;
      --rb-text-secondary: #999;
      --rb-text-on-primary: #000;
      --rb-error: #e74c3c;
      --rb-success: #1DB954;
      --rb-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
      --rb-radius: 12px;
    }

    /* Reset for widget container */
    /* The widget carried its own `* { }` reset scoped to itself. Kept — it is
       scoped, so it does not fight the shell the way an unscoped one would. */
    .rb-contact-widget * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    /* Main container */
    .rb-contact-widget {
      font-family: var(--rb-font);
      background: var(--rb-background);
      color: var(--rb-text-primary);
      min-height: 100vh;
      padding: 40px 24px;
    }

    /* Content wrapper */
    .rb-contact-wrapper {
      max-width: 560px;
      margin: 0 auto;
    }

    /* Header */
    .rb-contact-header {
      text-align: center;
      margin-bottom: 40px;
    }

    .rb-contact-title {
      font-size: 36px;
      font-weight: 700;
      color: var(--rb-text-primary) !important;
      margin-bottom: 12px;
    }

    .rb-contact-subtitle {
      font-size: 16px;
      color: var(--rb-text-secondary) !important;
      line-height: 1.5;
    }

    /* Form card */
    .rb-contact-card {
      background: var(--rb-surface);
      border: 2px solid var(--rb-border);
      border-radius: var(--rb-radius);
      padding: 32px;
    }

    /* Form groups */
    .rb-form-group {
      margin-bottom: 24px;
    }

    .rb-form-group:last-of-type {
      margin-bottom: 28px;
    }

    .rb-form-label {
      display: block;
      font-size: 14px;
      font-weight: 600;
      color: var(--rb-text-primary) !important;
      margin-bottom: 8px;
    }

    /* Text inputs */
    .rb-form-input,
    .rb-form-select,
    .rb-form-textarea {
      width: 100%;
      padding: 14px 16px;
      font-size: 15px;
      font-family: var(--rb-font);
      color: var(--rb-text-primary) !important;
      background: var(--rb-surface-elevated) !important;
      border: 2px solid var(--rb-border);
      border-radius: 8px;
      transition: border-color 0.2s, box-shadow 0.2s;
      outline: none;
    }

    .rb-form-input::placeholder,
    .rb-form-textarea::placeholder {
      color: var(--rb-text-secondary);
    }

    .rb-form-input:focus,
    .rb-form-select:focus,
    .rb-form-textarea:focus {
      border-color: var(--rb-primary);
      box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.15);
    }

    /* Select dropdown */
    .rb-form-select {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 16px center;
      padding-right: 44px;
      cursor: pointer;
    }

    .rb-form-select option {
      background: var(--rb-surface-elevated);
      color: var(--rb-text-primary);
    }

    /* Textarea */
    .rb-form-textarea {
      min-height: 140px;
      resize: vertical;
      line-height: 1.5;
    }

    /* Checkbox row */
    .rb-checkbox-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 28px;
    }

    .rb-checkbox-input {
      width: 18px;
      height: 18px;
      accent-color: var(--rb-primary);
      cursor: pointer;
    }

    .rb-checkbox-label {
      font-size: 14px;
      color: var(--rb-text-secondary) !important;
      cursor: pointer;
      user-select: none;
    }

    /* Submit button */
    .rb-submit-btn {
      width: 100%;
      padding: 16px 24px;
      font-size: 16px;
      font-weight: 600;
      font-family: var(--rb-font);
      color: var(--rb-text-on-primary) !important;
      background: var(--rb-primary) !important;
      border: none;
      border-radius: 30px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .rb-submit-btn:hover:not(:disabled) {
      background: var(--rb-primary-hover) !important;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(29, 185, 84, 0.3);
    }

    .rb-submit-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }

    /* Loading state */
    .rb-submit-btn.rb-loading {
      position: relative;
      color: transparent !important;
    }

    .rb-submit-btn.rb-loading::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 20px;
      height: 20px;
      margin: -10px 0 0 -10px;
      border: 2px solid var(--rb-text-on-primary);
      border-top-color: transparent;
      border-radius: 50%;
      animation: rb-spin 0.8s linear infinite;
    }

    @keyframes rb-spin {
      to { transform: rotate(360deg); }
    }

    /* Error message */
    .rb-error-message {
      background: rgba(231, 76, 60, 0.1);
      border: 1px solid var(--rb-error);
      border-radius: 8px;
      padding: 12px 16px;
      margin-bottom: 24px;
      display: none;
    }

    .rb-error-message.rb-visible {
      display: block;
    }

    .rb-error-text {
      font-size: 14px;
      color: var(--rb-error) !important;
    }

    /* Success state */
    .rb-success-message {
      text-align: center;
      padding: 48px 24px;
      display: none;
    }

    .rb-success-message.rb-visible {
      display: block;
    }

    .rb-success-icon {
      width: 72px;
      height: 72px;
      margin: 0 auto 24px;
      background: var(--rb-primary);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .rb-success-icon svg {
      width: 36px;
      height: 36px;
      stroke: var(--rb-text-on-primary);
    }

    .rb-success-title {
      font-size: 24px;
      font-weight: 700;
      color: var(--rb-text-primary) !important;
      margin-bottom: 12px;
    }

    .rb-success-text {
      font-size: 16px;
      color: var(--rb-text-secondary) !important;
      line-height: 1.6;
      margin-bottom: 32px;
    }

    .rb-success-link {
      display: inline-block;
      padding: 14px 28px;
      font-size: 15px;
      font-weight: 600;
      color: var(--rb-text-primary) !important;
      background: transparent;
      border: 2px solid var(--rb-border);
      border-radius: 30px;
      text-decoration: none;
      transition: all 0.2s;
    }

    .rb-success-link:hover {
      border-color: var(--rb-primary);
      transform: translateY(-2px);
    }

    /* Hide form when success */
    .rb-contact-form.rb-hidden {
      display: none;
    }

    /* Honeypot fields - invisible to humans */
    .rb-hp-field {
      position: absolute;
      left: -9999px;
      top: -9999px;
      opacity: 0;
      pointer-events: none;
      height: 0;
      width: 0;
      overflow: hidden;
    }

    /* Alternative CSS honeypot */
    .rb-website-field {
      display: none !important;
      visibility: hidden !important;
    }

    /* Footer note */
    .rb-contact-footer {
      text-align: center;
      margin-top: 24px;
    }

    .rb-contact-footer-text {
      font-size: 13px;
      color: var(--rb-text-secondary) !important;
    }

    .rb-contact-footer-text a {
      color: var(--rb-primary) !important;
      text-decoration: none;
    }

    .rb-contact-footer-text a:hover {
      text-decoration: underline;
    }

    /* Mobile responsive */
    @media (max-width: 600px) {
      .rb-contact-widget {
        padding: 24px 16px;
      }

      .rb-contact-title {
        font-size: 28px;
      }

      .rb-contact-card {
        padding: 24px 20px;
      }

      .rb-form-input,
      .rb-form-select,
      .rb-form-textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevents iOS zoom */
      }
    }

/* The bug-only questions are toggled by contact.js with the `hidden` attribute.
   [hidden] is display:none in the UA stylesheet, which ANY author display rule
   silently beats — and .rb-form-group is exactly the kind of selector someone
   later gives a display:flex to. This makes the intent explicit so that edit
   cannot quietly reveal the fields on every topic. */
.rb-contact-card [hidden] { display: none !important; }

/* Sits under the tick on the success screen, only when a reference came back. */
.rb-success-ref { margin: 8px 0 0; font-size: 14px; color: #8f8f8f; }
.rb-success-ref strong { color: #e8e8e8; font-family: 'SF Mono', Monaco, monospace; letter-spacing: .05em; }
