/**
 * Ravers Co Tickets - front end styling.
 * Deep-space palette to match the rest of the site: #0f0326 / #7c3aed /
 * #00e5ff / #fbbf24. Scoped under .rct-wrap so nothing leaks into the
 * light checkout and cart templates.
 */

.rct-wrap {
    --rct-bg: #150836;
    --rct-panel: #1e0f47;
    --rct-line: rgba(255, 255, 255, 0.12);
    --rct-text: #ffffff;
    --rct-muted: #cfc6e8;
    --rct-violet: #7c3aed;
    --rct-cyan: #00e5ff;
    max-width: 760px;
    margin: 0 auto 28px;
    padding: 26px;
    background: var(--rct-bg);
    border: 1px solid var(--rct-line);
    border-radius: 16px;
    color: var(--rct-text);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    box-sizing: border-box;
}

.rct-wrap *,
.rct-wrap *::before,
.rct-wrap *::after { box-sizing: inherit; }

.rct-h {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--rct-text);
}

.rct-intro,
.rct-meta {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--rct-muted);
}

/* ── Form ─────────────────────────────────────────────────────── */

.rct-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.rct-row .rct-field { flex: 1 1 240px; }

.rct-field {
    display: block;
    margin: 0 0 16px;
}

.rct-field > span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--rct-muted);
}

.rct-field > span b { color: var(--rct-cyan); }
.rct-field > span i { font-style: normal; opacity: 0.7; font-weight: 400; }

.rct-field input,
.rct-field select,
.rct-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--rct-panel);
    border: 1px solid var(--rct-line);
    border-radius: 10px;
    color: var(--rct-text);
    /* 16px minimum stops iOS Safari zooming the page on focus. */
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

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

.rct-field input:focus,
.rct-field select:focus,
.rct-field textarea:focus {
    outline: none;
    border-color: var(--rct-violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.28);
}

.rct-field input::placeholder,
.rct-field textarea::placeholder { color: rgba(207, 198, 232, 0.5); }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.rct-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rct-btn {
    display: inline-block;
    padding: 13px 30px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.rct-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.45);
    color: #ffffff;
}

.rct-btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.rct-btn--ghost {
    background: transparent;
    border: 2px solid var(--rct-cyan);
    color: var(--rct-cyan);
}
.rct-btn--ghost:hover { color: var(--rct-cyan); box-shadow: 0 8px 22px rgba(0, 229, 255, 0.28); }

.rct-note {
    margin: 12px 0 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--rct-muted);
    min-height: 1em;
}
.rct-note--err { color: #ff8fa3; }
.rct-note--ok  { color: #6ee7b7; }

/* ── Confirmation ─────────────────────────────────────────────── */

.rct-done h4 {
    margin: 0 0 10px;
    font-size: 19px;
    color: var(--rct-cyan);
}
.rct-done p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--rct-muted);
}
.rct-done strong { color: #fbbf24; letter-spacing: 0.04em; }

/* ── Thread ───────────────────────────────────────────────────── */

.rct-thread-head { margin-bottom: 14px; }

.rct-meta span[data-rct-ref] {
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 0.05em;
    margin-right: 10px;
}

.rct-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: var(--rct-text);
}
.rct-pill--new      { background: rgba(124, 58, 237, 0.85); }
.rct-pill--open     { background: rgba(0, 229, 255, 0.22); color: var(--rct-cyan); }
.rct-pill--awaiting { background: rgba(251, 191, 36, 0.22); color: #fbbf24; }
.rct-pill--resolved,
.rct-pill--closed   { background: rgba(110, 231, 183, 0.18); color: #6ee7b7; }

.rct-loading,
.rct-error {
    padding: 16px 0;
    font-size: 14.5px;
    color: var(--rct-muted);
}
.rct-error { color: #ff8fa3; }

.rct-messages { margin: 8px 0 22px; }

.rct-msg {
    padding: 14px 16px;
    margin-bottom: 12px;
    background: var(--rct-panel);
    border: 1px solid var(--rct-line);
    border-radius: 12px;
}

/* Staff replies get the brand edge so the customer can see at a glance
   which messages are ours. */
.rct-msg--staff {
    border-left: 3px solid var(--rct-cyan);
    background: rgba(0, 229, 255, 0.07);
}
.rct-msg--system {
    background: transparent;
    border-style: dashed;
    font-style: italic;
}

.rct-msg-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--rct-muted);
}
.rct-msg-head strong { color: var(--rct-text); font-size: 14px; }

.rct-msg-body { font-size: 15px; line-height: 1.7; color: #e9e3f8; }
.rct-msg-body p { margin: 0 0 10px; }
.rct-msg-body p:last-child { margin-bottom: 0; }
.rct-msg-body a { color: #a78bfa; }

.rct-reply { padding-top: 18px; border-top: 1px solid var(--rct-line); }

@media (max-width: 600px) {
    .rct-wrap { padding: 20px 16px; border-radius: 12px; }
    .rct-row { gap: 0; }
    .rct-h { font-size: 20px; }
}
