:root {
      --brand-dark: #1A2530;
      --brand-cyan: #00B4D8;
      --text-main: #1d2d42;
      --text-soft: #52616f;
      --line: rgba(26, 37, 48, 0.1);
      --surface: #ffffff;
      --bg: #f6f8fb;
      --success: #10b981;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    html, body { min-height: 100%; }

    body {
      font-family: Inter, sans-serif;
      color: var(--text-main);
      background: var(--bg);
      line-height: 1.6;
    }

    .page {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    .header {
      width: min(1180px, calc(100% - 32px));
      height: 74px;
      margin: 24px auto 0;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 18px;
      box-shadow: 0 14px 30px rgba(26, 37, 48, 0.08);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      color: var(--brand-dark);
      text-decoration: none;
      font-family: Montserrat, sans-serif;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      font-size: 12px;
    }

    .brand img {
      height: 58px;
      width: auto;
      display: block;
    }

    .back-link {
      color: var(--brand-dark);
      text-decoration: none;
      font-family: Montserrat, sans-serif;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 10px 16px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: 0.2s;
    }

    .back-link:hover {
      color: var(--brand-cyan);
      border-color: rgba(0, 180, 216, 0.35);
      background: rgba(0, 180, 216, 0.05);
    }

    .main {
      width: min(980px, calc(100% - 32px));
      margin: 52px auto 72px;
      flex: 1;
    }

    .eyebrow {
      color: var(--brand-cyan);
      font-family: Montserrat, sans-serif;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 1.4px;
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    h1 {
      font-family: Montserrat, sans-serif;
      font-size: clamp(30px, 5vw, 50px);
      line-height: 1.08;
      letter-spacing: 0;
      color: var(--brand-dark);
      margin-bottom: 14px;
    }

    .lead {
      max-width: 680px;
      color: var(--text-soft);
      font-size: 16px;
      margin-bottom: 34px;
    }

    .options {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .option-button {
      border: 1px solid var(--line);
      background: var(--surface);
      border-radius: 8px;
      min-height: 104px;
      padding: 22px;
      cursor: pointer;
      text-align: left;
      display: grid;
      grid-template-columns: 42px 1fr 28px;
      align-items: center;
      gap: 16px;
      box-shadow: 0 12px 28px rgba(26, 37, 48, 0.06);
      transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
      color: var(--text-main);
      font: inherit;
    }

    .option-button:hover {
      transform: translateY(-2px);
      border-color: rgba(0, 180, 216, 0.4);
      box-shadow: 0 18px 34px rgba(26, 37, 48, 0.1);
    }

    .option-icon {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: rgba(0, 180, 216, 0.1);
      color: var(--brand-cyan);
      display: grid;
      place-items: center;
      font-size: 18px;
      flex: 0 0 auto;
    }

    .option-title {
      display: block;
      font-family: Montserrat, sans-serif;
      font-size: 14px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--brand-dark);
      margin: 0;
    }

    .option-arrow {
      color: var(--brand-cyan);
      font-size: 18px;
      justify-self: end;
    }

    .note {
      margin-top: 22px;
      border-left: 3px solid var(--brand-cyan);
      background: rgba(0, 180, 216, 0.06);
      padding: 14px 16px;
      color: var(--text-soft);
      font-size: 13px;
    }

    .overlay {
      position: fixed;
      inset: 0;
      background: rgba(26, 37, 48, 0.94);
      z-index: 50;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      overflow-y: auto;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .success-box {
      width: min(100%, 520px);
      background: #ffffff;
      border-radius: 12px;
      padding: 34px 30px;
      text-align: center;
      box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
    }

    .success-box > i {
      font-size: 54px;
      color: var(--success);
      margin-bottom: 16px;
    }

    .success-box h2 {
      font-family: Montserrat, sans-serif;
      font-size: 24px;
      line-height: 1.2;
      color: var(--brand-dark);
      margin-bottom: 10px;
    }

    .success-box p {
      color: var(--text-soft);
      font-size: 14px;
      margin-bottom: 22px;
    }

    .form-box {
      width: min(100%, 560px);
      background: #ffffff;
      border-radius: 12px;
      padding: 28px;
      box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
      position: relative;
    }

    .modal-close {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 38px;
      height: 38px;
      border: none;
      border-radius: 50%;
      background: #edf2f7;
      color: var(--brand-dark);
      cursor: pointer;
      display: grid;
      place-items: center;
    }

    .modal-close:disabled {
      opacity: 0.55;
      cursor: wait;
    }

    .form-eyebrow {
      display: block;
      color: var(--brand-cyan);
      font-family: Montserrat, sans-serif;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1.4px;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .form-box h2 {
      font-family: Montserrat, sans-serif;
      font-size: 24px;
      line-height: 1.2;
      color: var(--brand-dark);
      margin-bottom: 8px;
      padding-right: 42px;
    }

    .form-reason {
      color: var(--text-soft);
      font-size: 14px;
      margin-bottom: 18px;
    }

    .complaint-form {
      display: grid;
      gap: 14px;
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .field {
      display: grid;
      gap: 7px;
      color: var(--brand-dark);
      font-family: Montserrat, sans-serif;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .required-mark {
      color: #dc2626;
      font-weight: 900;
      margin-left: 3px;
    }

    .field-full {
      grid-column: 1 / -1;
    }

    .field input,
    .field select,
    .field textarea {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #f8fafc;
      color: var(--text-main);
      font: 500 14px/1.5 Inter, sans-serif;
      padding: 12px 13px;
      outline: none;
      transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
      text-transform: none;
      letter-spacing: 0;
    }

    .field textarea {
      min-height: 120px;
      resize: vertical;
    }

    .field input:focus,
    .field select:focus,
    .field textarea:focus {
      background: #ffffff;
      border-color: rgba(0, 180, 216, 0.65);
      box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.12);
    }

    .email-split {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) auto minmax(130px, 0.85fr);
      gap: 8px;
      align-items: center;
    }

    .email-at {
      color: var(--brand-cyan);
      font: 800 18px/1 Montserrat, sans-serif;
      text-align: center;
    }

    .email-custom-domain {
      grid-column: 1 / -1;
    }

    .hidden {
      display: none !important;
    }

    .spam-field {
      position: absolute;
      left: -10000px;
      top: auto;
      width: 1px;
      height: 1px;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
    }

    .field input.valid {
      border-color: rgba(16, 185, 129, 0.75);
      box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
    }

    .field input.invalid {
      border-color: rgba(180, 35, 24, 0.78);
      box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
    }

    .field small {
      color: var(--text-soft);
      font: 600 12px/1.4 Inter, sans-serif;
      text-align: right;
      text-transform: none;
      letter-spacing: 0;
    }

    .field small.rut-msg {
      text-align: left;
    }

    .field small.rut-msg.valid {
      color: #059669;
    }

    .field small.rut-msg.invalid {
      color: #b42318;
    }

    .form-message {
      min-height: 20px;
      color: #b42318;
      font-size: 13px;
      font-weight: 700;
    }

    .sending-notice {
      display: grid;
      grid-template-columns: 34px 1fr;
      gap: 12px;
      align-items: start;
      border: 1px solid rgba(0, 180, 216, 0.35);
      border-left: 4px solid var(--brand-cyan);
      border-radius: 10px;
      background: rgba(0, 180, 216, 0.07);
      color: var(--text-main);
      padding: 13px 14px;
      font-size: 13px;
      line-height: 1.45;
    }

    .sending-notice i {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: var(--brand-cyan);
      color: #ffffff;
      display: grid;
      place-items: center;
      font-size: 15px;
    }

    .sending-notice strong {
      display: block;
      font-family: Montserrat, sans-serif;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.4px;
      margin-bottom: 3px;
    }

    .sending-notice span {
      display: block;
      color: var(--text-soft);
      font-weight: 600;
    }

    .form-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 2px;
    }

    .form-actions button {
      border: none;
      border-radius: 10px;
      min-height: 46px;
      padding: 12px 16px;
      font-family: Montserrat, sans-serif;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .form-actions button:disabled {
      opacity: 0.65;
      cursor: wait;
    }

    .success-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .success-actions a,
    .success-actions button {
      border: none;
      border-radius: 10px;
      min-height: 58px;
      padding: 12px 18px;
      font-family: Montserrat, sans-serif;
      font-size: 12px;
      line-height: 1.25;
      font-weight: 800;
      text-transform: uppercase;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      text-align: center;
      white-space: normal;
      transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

    .success-actions a:hover,
    .success-actions button:hover {
      transform: translateY(-1px);
      box-shadow: 0 12px 24px rgba(26, 37, 48, 0.12);
    }

    .success-actions i {
      flex: 0 0 auto;
      font-size: 15px;
      margin: 0;
    }

    .btn-primary {
      background: var(--brand-cyan);
      color: #ffffff;
    }

    .btn-secondary {
      background: #edf2f7;
      color: var(--brand-dark);
    }

    .footer {
      padding: 24px 16px 36px;
      text-align: center;
      color: var(--text-soft);
      font-size: 12px;
      border-top: 1px solid var(--line);
      background: #ffffff;
    }

    @media (max-width: 720px) {
      .header {
        height: auto;
        min-height: 66px;
        margin-top: 14px;
        padding: 10px 14px;
      }

      .brand span { display: none; }
      .brand img { height: 50px; }
      .back-link { font-size: 11px; padding: 9px 12px; }
      .main { margin-top: 34px; }
      .options { grid-template-columns: 1fr; }
      .option-button {
        min-height: 96px;
        padding: 18px;
        grid-template-columns: 40px 1fr 22px;
      }
      .form-box { padding: 24px 18px; }
      .form-grid,
      .form-actions { grid-template-columns: 1fr; }
      .email-split { grid-template-columns: 1fr auto; }
      .email-split select,
      .email-custom-domain { grid-column: 1 / -1; }
      .success-actions { grid-template-columns: 1fr; }
    }
