:root {
    --bg: #000000;
    --panel: rgba(5,5,5,.90);
    --panel-soft: rgba(10,9,6,.88);
    --text: #ffffff;
    --text-dim: #c8c8c8;
    --gold: #d7a63c;
    --gold-light: #f1ca72;
    --gold-dark: #8f651d;
    --line: rgba(215,166,60,.58);
    --glow: rgba(215,166,60,.28);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    background:
        linear-gradient(rgba(0,0,0,.38), rgba(0,0,0,.50)),
        url("/images/tlo.jpg") no-repeat center center fixed;
    background-size: cover;
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.top-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px !important;
    margin-bottom: 22px !important;
}

.top-nav .button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 16px;
}

.card,
.track-card,
.declaration-card {
    background: linear-gradient(145deg, rgba(4,4,4,.94), rgba(12,10,6,.90));
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--line);
    margin-bottom: 20px;
    box-shadow:
        0 0 0 1px rgba(215,166,60,.04),
        0 0 18px rgba(215,166,60,.16),
        0 14px 38px rgba(0,0,0,.42);
    backdrop-filter: blur(5px);
}

h1, h2, h3 {
    color: var(--gold-light);
    text-shadow: 0 0 8px rgba(215,166,60,.22);
}

.form-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label,
.track-card label {
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--gold-light);
}

.form-group input,
.form-group select,
.track-card input {
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(7,7,7,.92);
    border: 1px solid rgba(215,166,60,.34);
    border-radius: 8px;
    color: var(--text);
    outline: none;
    transition: .2s ease;
}

.track-card input {
    margin: 10px 0;
}

.form-group input:focus,
.form-group select:focus,
.track-card input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(215,166,60,.22);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.button {
    padding: 15px 30px;
    background: linear-gradient(180deg, rgba(20,17,10,.96), rgba(5,5,5,.96));
    color: var(--gold-light) !important;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: .2s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    opacity: 1;
    filter: none;
    text-shadow: 0 0 6px rgba(241,202,114,.25);
    box-shadow:
        0 0 10px var(--glow),
        inset 0 0 12px rgba(215,166,60,.05);
}

.button:hover {
    transform: translateY(-2px);
    color: #ffe2a0 !important;
    border-color: var(--gold-light);
    background: rgba(215,166,60,.10);
    box-shadow:
        0 0 16px rgba(215,166,60,.50),
        inset 0 0 10px rgba(215,166,60,.08);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#submit-btn {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(33,26,12,.98), rgba(8,7,5,.98));
    color: var(--gold-light) !important;
    font-size: 1.05rem;
}

.status-box {
    margin: 15px 0;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    min-height: 20px;
}

.progress-hidden {
    display: none;
}

.progress-bar {
    height: 10px;
    background: rgba(215,166,60,.13);
    border: 1px solid rgba(215,166,60,.22);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

#progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    width: 0%;
    transition: width 0.2s;
}

.progress-info {
    font-size: 0.85rem;
    margin-top: 5px;
    opacity: 0.8;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.footer-card {
    text-align: center;
    min-width: 0;
}

.footer-card .button {
    width: 100%;
    max-width: 100%;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.small-note {
    font-size: 0.8rem;
    opacity: 0.75;
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .top-nav {
        grid-template-columns: 1fr;
        gap: 8px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .track-card,
    .declaration-card {
        padding: 16px;
    }
}
