/* Public customer pages: tracking + rating — lightweight, no admin bundle */

/*
 * This is a static, hand-edited file served directly (no Vite build step),
 * so the tokens below are intentionally its OWN palette, independent from
 * resources/scss/_variables.scss / config/_theme-*.scss (the admin theme).
 * If the brand palette changes, update both places — there is no shared
 * source of truth between the admin theme and these public pages.
 */
:root {
    --pc-bg-1: #0b1f2a;
    --pc-bg-2: #123447;
    --pc-bg-3: #1a4a5c;
    --pc-accent: #f0b429;
    --pc-accent-soft: rgba(240, 180, 41, 0.18);
    --pc-surface: #ffffff;
    --pc-text: #14212b;
    --pc-muted: #5b6b76;
    --pc-border: #e4ebef;
    --pc-danger: #c0392b;
    --pc-success: #1f7a4d;
    --pc-info: #1d6a8a;
    --pc-radius: 20px;
    --pc-shadow: 0 24px 60px rgba(11, 31, 42, 0.28);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body.pc-body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
    color: var(--pc-text);
    background:
        radial-gradient(circle at 15% 10%, rgba(240, 180, 41, 0.16), transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(45, 156, 180, 0.18), transparent 40%),
        linear-gradient(155deg, var(--pc-bg-1), var(--pc-bg-2) 45%, var(--pc-bg-3));
    background-attachment: fixed;
}

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

.pc-nav {
    padding: 1rem 1.25rem;
    color: #fff;
}

.pc-nav__inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pc-brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pc-brand__logo {
    max-height: 40px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.pc-brand__name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pc-brand__tag {
    font-size: 0.82rem;
    opacity: 0.78;
}

.pc-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem 1rem 2.5rem;
}

.pc-page {
    width: min(100%, 1100px);
    margin: 0 auto;
}

.pc-card {
    width: min(100%, 460px);
    background: var(--pc-surface);
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow);
    padding: 1.75rem 1.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.pc-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--pc-accent-soft);
    color: #8a6408;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pc-card__title {
    margin: 0 0 0.45rem;
    font-size: 1.55rem;
    line-height: 1.3;
    font-weight: 800;
}

.pc-card__subtitle {
    margin: 0 0 1.35rem;
    color: var(--pc-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.pc-tracking {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #f5f8fa;
    border: 1px solid var(--pc-border);
    margin-bottom: 1.35rem;
}

.pc-tracking__label {
    color: var(--pc-muted);
    font-size: 0.8rem;
}

.pc-tracking__value {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    direction: ltr;
    unicode-bidi: isolate;
}

.pc-timeline {
    margin: 0 0 1.35rem;
    padding: 0.35rem 1rem;
    border-radius: 14px;
    background: #f5f8fa;
    border: 1px solid var(--pc-border);
}

.pc-timeline__title {
    font-size: 0.8rem;
    color: var(--pc-muted);
    margin: 0.65rem 0 0.35rem;
}

.pc-timeline__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pc-timeline__item {
    padding: 0.55rem 0;
    border-top: 1px solid var(--pc-border);
    font-size: 0.9rem;
}

.pc-timeline__item:first-child {
    border-top: none;
}

.pc-timeline__time {
    display: block;
    color: var(--pc-muted);
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.pc-alert {
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.pc-alert--danger {
    background: #fdecea;
    color: var(--pc-danger);
    border: 1px solid #f5c6c2;
}

.pc-alert--success {
    background: #e8f7ef;
    color: var(--pc-success);
    border: 1px solid #bfe5cf;
}

.pc-alert--info {
    background: #eaf5fa;
    color: var(--pc-info);
    border: 1px solid #b9dae8;
}

.pc-state {
    text-align: center;
    padding: 1.25rem 0.5rem 0.5rem;
}

.pc-state__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
}

.pc-state__icon--success {
    background: #e8f7ef;
    color: var(--pc-success);
}

.pc-state__icon--info {
    background: #eaf5fa;
    color: var(--pc-info);
}

.pc-state__icon--danger {
    background: #fdecea;
    color: var(--pc-danger);
}

.pc-state__title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.pc-state__text {
    margin: 0;
    color: var(--pc-muted);
    line-height: 1.65;
}

.pc-field {
    margin-bottom: 1.25rem;
}

.pc-label {
    display: block;
    margin-bottom: 0.65rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.pc-hint {
    margin: 0.35rem 0 0;
    color: var(--pc-muted);
    font-size: 0.82rem;
}

.pc-stars {
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    direction: ltr;
}

.pc-star {
    cursor: pointer;
    position: relative;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    transition: transform 0.15s ease, background 0.15s ease;
}

.pc-star:hover {
    background: #fff8e6;
    transform: translateY(-2px);
}

.pc-star input {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
    cursor: pointer;
}

.pc-star__glyph {
    font-size: 2rem;
    line-height: 1;
    color: #d5dde3;
    transition: color 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}

.pc-star.is-active .pc-star__glyph,
.pc-star.is-preview .pc-star__glyph {
    color: var(--pc-accent);
    transform: scale(1.05);
}

.pc-star:has(input:focus-visible) {
    outline: 2px solid var(--pc-accent);
    outline-offset: 2px;
}

.pc-textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    border: 1px solid var(--pc-border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font: inherit;
    color: var(--pc-text);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pc-textarea:focus {
    outline: none;
    border-color: #c9a227;
    box-shadow: 0 0 0 4px var(--pc-accent-soft);
}

.pc-error {
    margin-top: 0.4rem;
    color: var(--pc-danger);
    font-size: 0.85rem;
}

.pc-submit {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 0.95rem 1rem;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    color: #14212b;
    background: linear-gradient(135deg, #f7c948, #e0a820);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(224, 168, 32, 0.35);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.pc-submit:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.pc-submit:active {
    transform: translateY(0);
}

.pc-footer-note {
    margin: 1rem 0 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
}

@media (max-width: 480px) {
    .pc-card {
        padding: 1.4rem 1.1rem 1.2rem;
        border-radius: 16px;
    }

    .pc-star {
        width: 42px;
        height: 42px;
    }

    .pc-star__glyph {
        font-size: 1.75rem;
    }
}
