:root {
    --coral:     #D85A30;
    --coral-lt:  #FAECE7;
    --coral-md:  #F09575;
    --navy:      #1A1F2E;
    --navy-2:    #252B3B;
    --slate:     #6B7280;
    --slate-lt:  #F4F5F7;
    --white:     #FFFFFF;
    --border:    rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
    --radius:    12px;
    --radius-sm: 8px;
    --font:      'Sora', sans-serif;
    --mono:      'DM Mono', monospace;
  }

  .container {
    animation: fadeUp 0.5s ease both;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── Header strip ── */
.header-strip {
    background: #ad1f26;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

  .header-left { display: flex; align-items: center; gap: 12px; }

  .icon-wrap {
    width: 40px; height: 40px;
    background: #0e8143;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
  }

  .header-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
  }

  .header-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin-top: 1px;
  }

  .ticket-badge {
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.07);
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 0.05em;
  }

  /* ── Card body ── */
  .card {
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius) !important;
    padding: 2rem;
    box-shadow: var(--shadow-md);
  }

  /* ── Section label ── */
  .section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #951419;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  /* ── Fields ── */
  .field { display: flex; flex-direction: column; gap: 5px; }

  .field label {
    font-size: 11px;
    font-weight: 500;
    color: var(--slate);
    letter-spacing: 0.03em;
  }

  .field label span.req { color: var(--coral); margin-left: 2px; }

  .input-wrap { position: relative; }

  .input-wrap .ico {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #C0C4CC;
    pointer-events: none;
  }

  .input-wrap .ico-ta {
    position: absolute;
    left: 11px;
    top: 13px;
    font-size: 15px;
    color: #C0C4CC;
    pointer-events: none;
  }

  input, select, textarea {
    height: 40px !important;
    width: 100%;
    font-family: var(--font);
    font-size: 13.5px;
    color: var(--navy);
    background: var(--slate-lt);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  }

  input, select { height: 42px; padding: 0 12px 0 36px; }
  select { appearance: none; cursor: pointer; }
  textarea { padding: 11px 12px 11px 34px; resize: vertical; min-height: 100px !important; line-height: 1.6; }

  input::placeholder, textarea::placeholder { color: #BCC0C8; }

  input:focus, select:focus, textarea:focus {
    border-color: var(--coral);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(216,90,48,0.10);
  }

  /* select arrow */
  .select-wrap::after {
    content: '\ea99';
    font-family: tabler-icons;
    font-size: 14px;
    color: #AAB0BB;
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }

  /* ── Priority tags ── */
  .tags { display: flex; gap: 8px; flex-wrap: wrap; }

  .tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1.5px solid var(--border);
    background: var(--slate-lt);
    color: var(--slate);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
  }

  .tag:hover { border-color: var(--coral); color: var(--coral); }

  .tag.active {
    background: var(--coral-lt);
    border-color: var(--coral);
    color: var(--coral);
  }

  .tag i { font-size: 13px; }

  /* ── Char counter ── */
  .field-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
  }

  .char-count {
    font-family: var(--mono);
    font-size: 10px;
    color: #C0C4CC;
  }

  .char-count.warn { color: var(--coral); }

  /* ── Divider ── */
  .divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

  /* ── Footer ── */
  .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .footer-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #BCC0C8;
  }

  .footer-left i { font-size: 14px; }

  .btn-group { display: flex; gap: 10px; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    border: none;
  }

  .btn-ghost {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--slate);
  }

  .btn-ghost:hover {
    background: var(--slate-lt);
    border-color: #C0C4CC;
  }

  .btn-primary {
    background: #951419;
    color: #fff;
  }

  .btn-primary:hover { background: #951419; }
  .btn-primary:active { transform: scale(0.98); }
  .btn-primary i { font-size: 15px; }

  /* ── Success state ── */
  .success-overlay {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    gap: 1rem;
  }

  .success-overlay.show { display: flex; }
  .form-body.hidden { display: none; }

  .success-icon {
    width: 60px; height: 60px;
    background: #EAF3DE;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    color: #639922;
  }

  .success-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
  }

  .success-sub {
    font-size: 13px;
    color: var(--slate);
    line-height: 1.6;
    max-width: 340px;
  }

  .ticket-ref {
    font-family: var(--mono);
    font-size: 13px;
    background: var(--slate-lt);
    border: 1px dashed #C0C4CC;
    padding: 8px 20px;
    border-radius: 8px;
    color: var(--navy);
    letter-spacing: 0.05em;
  }

.select2-container .select2-selection--single {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    height: 40px;
    user-select: none;
    -webkit-user-select: none;
}

.select2-container--bootstrap-5 .select2-selection {
    font-size: 15px;
}

.form-control {
    height: 42px !important;
    font-size: 15px;
}

.form-control.select2--large .select2-selection__rendered {
    padding: 0.375rem 0.75rem;
}

@media (max-width: 540px) {
    .header-strip { flex-direction: column; align-items: flex-start; gap: 10px; }
    .footer { flex-direction: column; align-items: stretch; }
    .btn-group { justify-content: flex-end; }
}
