/* ==========================================
   USER FORM - PREMIUM TEMPLATE V2 (Refactored)
   - Glassmorphism container
   - Gradient button vertikal (timbul)
   - Background: cover + overlay smooth fade
   - Mobile-first responsive
========================================== */

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

:root {
    /* Accent (default - di-override per setting) */
    --accent-primary: #e11d48;
    --accent-gradient: linear-gradient(180deg, #e11d48cc 0%, #e11d48 100%);
    --accent-gradient-hover: linear-gradient(180deg, #e11d48ff 0%, #be1840 100%);
    --accent-glow: rgba(225, 29, 72, 0.3);
    
    /* Container glass */
    --container-border: rgba(212, 160, 23, 0.5);
    --container-border-bright: #ffe600;
    --container-glow: rgba(212, 160, 23, 0.25);
    
    /* Strip color */
    --strip-bg: linear-gradient(180deg, #ff0000 0%, #5e0000 100%);
    
    /* Status */
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning-bg: rgba(245, 158, 11, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    color: #e6e9ef;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==========================================
   BACKGROUND IMAGE + Smooth Overlay
========================================== */
body.has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    background-attachment: fixed;
}

body.has-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(74, 8, 16, 0.15) 0%,
        rgba(74, 8, 16, 0.25) 25%,
        rgba(74, 8, 16, 0.45) 50%,
        rgba(60, 6, 12, 0.7) 75%,
        rgba(45, 5, 8, 0.85) 100%
    );
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    body.has-bg::before {
        position: absolute;
        height: 100%;
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #2a3347; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6b7686; }

/* ==========================================
   HEADER & FOOTER STRIPS
========================================== */
.header-strip,
.footer-strip {
    width: 100%;
    background: var(--strip-bg);
    padding: 5px 10px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    position: relative;
    z-index: 10;
}

.header-strip {
    border-bottom: 2px solid var(--container-border);
    border-radius: 0 0 100px 100px;
}

.footer-strip {
    border-top: 2px solid var(--container-border);
    border-radius: 100px 100px 0 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-weight: 500;
    min-height: 40px;
}

.header-strip-logo {
    display: inline-block;
}

.header-strip-logo img {
    max-height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-strip a {
    color: var(--container-border-bright);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-strip a:hover {
    color: #ffe066;
    text-decoration: underline;
}

/* ==========================================
   CONTAINER (gabungan page-wrapper + container lama)
========================================== */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 5px;
    position: relative;
    z-index: 2;
}

/* ==========================================
   PREMIUM CONTAINER (Glassmorphism)
========================================== */
.premium-container {
    background: rgba(175, 3, 3, 0.288);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid var(--container-border);
    border-radius: 18px;
    box-shadow:
        0 0 30px rgba(0,0,0,0.2),
        0 0 60px var(--container-glow),
        inset 0 1px 1px rgba(255,255,255,0.05);
    padding: 24px;
    position: relative;
}

/* Section animation */
.page-section { width: 100%; }
.section-hidden { display: none; }
.section-fade-in { animation: fadeInUp 0.5s ease-out; }

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

/* ==========================================
   LANDING: BANNER + HERO + CTA
========================================== */
.landing-banner {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.landing-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.landing-content {
    text-align: center;
    padding: 8px 10px 22px;
}

.landing-content h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.landing-content .subtitle {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 22px;
    font-style: italic;
}

.landing-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn-cta {
    background: var(--accent-gradient);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    padding: 13px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
    color: #fff;
    letter-spacing: 0.3px;
    box-shadow:
        0 4px 12px var(--accent-glow),
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-cta svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}

.btn-cta:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px var(--accent-glow),
        inset 0 1px 0 rgba(255,255,255,0.25),
        inset 0 -1px 0 rgba(0,0,0,0.2);
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px var(--accent-glow),
        inset 0 2px 4px rgba(0,0,0,0.3);
}

/* ==========================================
   SYARAT & KETENTUAN
========================================== */
.terms-box {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--container-border);
    border-radius: 12px;
    padding: 22px 28px;
    margin-top: 24px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}

.terms-title {
    color: var(--container-border-bright);
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(212, 160, 23, 0.4);
}

.terms-content {
    color: rgba(255,255,255,0.92);
    font-size: 0.85rem;
    line-height: 1.7;
}

.terms-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-content li {
    padding: 6px 0 6px 22px;
    position: relative;
}

.terms-content li::before {
    content: '•';
    color: var(--container-border-bright);
    font-size: 1.4rem;
    position: absolute;
    left: 5px;
    top: -2px;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(212, 160, 23, 0.5);
}

/* ==========================================
   ALERT BOX
========================================== */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid;
}

.alert-success { background: var(--success-bg); border-color: rgba(16, 185, 129, 0.3); color: #6ee7b7; }
.alert-error   { background: var(--danger-bg);  border-color: rgba(239, 68, 68, 0.3);  color: #fca5a5; }
.alert-warning { background: var(--warning-bg); border-color: rgba(245, 158, 11, 0.3); color: #fcd34d; }

/* ==========================================
   FORM
========================================== */
.form-section-title {
    text-align: center;
    margin-bottom: 22px;
    color: white;
}

.form-section-title h2 {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.form-section-title p {
    color: rgba(255,255,255,0.8);
    font-size: 0.88rem;
    font-style: italic;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    border: 1px solid var(--container-border);
    font-family: inherit;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.back-to-home:hover {
    color: var(--container-border-bright);
    background: rgba(0,0,0,0.6);
    transform: translateX(-3px);
}

.back-to-home svg { width: 16px; height: 16px; }

.claim-form,
.track-form {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 12px;
    padding: 24px;
}

.form-section {
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(212, 160, 23, 0.15);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 18px;
}

.form-section h2 {
    font-size: 1rem;
    margin-bottom: 18px;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--accent-gradient);
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.section-icon svg {
    width: 16px;
    height: 16px;
    color: white;
    stroke-width: 2;
}

.form-group { margin-bottom: 16px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.2px;
}

.required { color: #ffe066; }

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(212, 160, 23, 0.25);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.92rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--container-border-bright);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

input:disabled,
select:disabled {
    background: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
    opacity: 0.5;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4a017' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Phone */
.phone-wrapper {
    display: flex;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 160, 23, 0.25);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
}

.phone-wrapper:focus-within {
    border-color: var(--container-border-bright);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.phone-prefix {
    background: rgba(212, 160, 23, 0.15);
    color: #ffe066;
    padding: 12px 16px;
    font-weight: 700;
    border-right: 1px solid rgba(212, 160, 23, 0.25);
    font-size: 0.92rem;
}

.phone-wrapper input {
    border: none;
    border-radius: 0;
    flex: 1;
    background: transparent;
}

.phone-wrapper input:focus { box-shadow: none; }

/* ==========================================
   SOUVENIR CARDS
========================================== */
.souvenir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.souvenir-card {
    cursor: pointer;
    position: relative;
}

.souvenir-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.souvenir-card-content {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(212, 160, 23, 0.25);
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.souvenir-card:hover .souvenir-card-content {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(212, 160, 23, 0.5);
    transform: translateY(-2px);
}

.souvenir-card input[type="radio"]:checked + .souvenir-card-content {
    background: rgba(225, 29, 72, 0.2);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.souvenir-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.souvenir-icon.has-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 160, 23, 0.2);
}

.souvenir-icon.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.souvenir-card input[type="radio"]:checked + .souvenir-card-content .souvenir-icon.has-image {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.souvenir-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

/* ==========================================
   RATING STARS
========================================== */
.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}

.rating input[type="radio"] { display: none; }

.rating label {
    cursor: pointer;
    padding: 9px 14px;
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.rating label svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.rating label:hover,
.rating input[type="radio"]:checked + label {
    background: rgba(251, 191, 36, 0.15);
    border-color: #fbbf24;
    color: #fbbf24;
}

.rating input[type="radio"]:checked + label svg { fill: #fbbf24; }

/* ==========================================
   BUTTONS
========================================== */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 26px;
    border: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 130px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn svg { width: 16px; height: 16px; stroke-width: 2; }

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow:
        0 4px 12px var(--accent-glow),
        inset 0 1px 0 rgba(255,255,255,0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-gradient-hover);
    transform: translateY(-1px);
    box-shadow:
        0 6px 20px var(--accent-glow),
        inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(212, 160, 23, 0.3);
    backdrop-filter: blur(6px);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-color: var(--container-border-bright);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================
   TRACK CLAIM RESULT
========================================== */
.track-result { margin-top: 20px; }

.track-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 160, 23, 0.25);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 14px;
}

.track-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(212, 160, 23, 0.2);
    gap: 12px;
    flex-wrap: wrap;
}

.track-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.track-card-id {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    font-family: 'Courier New', monospace;
}

.track-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.track-status svg { width: 14px; height: 14px; }

.track-status.status-pending  { background: var(--warning-bg); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.track-status.status-approved { background: var(--success-bg); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
.track-status.status-shipped  { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(192, 132, 252, 0.3); }
.track-status.status-rejected { background: var(--danger-bg); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.3); }

.track-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.track-info-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(212, 160, 23, 0.15);
}

.track-info-item.full { grid-column: 1 / -1; }

.track-info-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.track-info-value {
    font-size: 0.88rem;
    color: #fff;
    font-weight: 500;
    word-break: break-word;
}

.tracking-box {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 16px 18px;
    border-radius: 12px;
    margin-top: 14px;
}

.tracking-box-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.tracking-box-value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    word-break: break-all;
}

.tracking-box-courier {
    font-size: 0.85rem;
    color: var(--container-border-bright);
    font-weight: 600;
    margin-top: 4px;
}

.track-no-data {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.7);
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(212, 160, 23, 0.3);
    border-radius: 14px;
}

.track-no-data svg {
    width: 48px;
    height: 48px;
    color: rgba(212, 160, 23, 0.5);
    margin-bottom: 12px;
}

.track-no-data h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.track-no-data p { font-size: 0.85rem; }

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1100px) {
    .container { padding: 35px 60px; }
}

@media (max-width: 900px) {
    .container { max-width: 640px; padding: 30px 50px; }
}

@media (max-width: 768px) {
    .container { max-width: 100%; padding: 25px 30px; }
}

@media (max-width: 600px) {
    .container { padding: 20px 16px; }
    
    .premium-container { padding: 18px; border-radius: 14px; }
    
    .header-strip { padding: 10px 15px; }
    .header-strip-logo img { max-height: 30px; }
    
    .landing-content h1 { font-size: 1.15rem; }
    .landing-content .subtitle { font-size: 0.85rem; }
    
    .landing-cta { flex-direction: column; }
    
    .btn-cta {
        width: 100%;
        min-width: auto;
        padding: 12px 20px;
    }
    
    .terms-box { padding: 18px 20px; }
    .terms-content { font-size: 0.82rem; }
    
    .form-section-title h2 { font-size: 1.1rem; }
    
    .claim-form,
    .track-form { padding: 18px 14px; }
    
    .form-row { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column-reverse; }
    .btn { width: 100%; }
    
    .footer-strip { padding: 10px 15px; font-size: 0.78rem; }
}

@media (max-width: 500px) {
    .track-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .container { padding: 15px 12px; }
    .premium-container { padding: 14px; }
}

