:root {
    --clr-dark-royal: #0a1f44;
    --clr-royal: #1e3a8a;
    --clr-lime: #a3e635;
    --clr-gold: #f5bd02;
    --clr-white: #ffffff;
    --clr-bg: #122a52;
    --clr-bg-light: #1a3a6d;
    --clr-border: #2a4a7d;
    --clr-text: #e0e7ff;
    --glass-bg: rgba(18, 42, 82, 0.65);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: rgba(0, 0, 0, 0.25);
    --font-family-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-family-primary);
    background: var(--clr-bg);
    margin: 0;
    padding: 1rem;
    color: var(--clr-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.rq-wrapper {
    max-width: 860px;
    margin: 0 auto;
    background: var(--glass-bg);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--glass-shadow);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.user-info {
    background: var(--glass-bg);
    color: var(--clr-lime);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1rem;
    user-select: none;
    text-align: center;
    box-shadow: 0 0 8px var(--clr-lime);
    border: 1px solid var(--clr-lime);
}

h1,
h2,
h3 {
    color: var(--clr-lime);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.2rem;
    text-shadow: 0 0 10px var(--clr-gold);
}

h2 {
    font-size: 1.7rem;
    border-bottom: 2px solid var(--clr-gold);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.3rem;
}

label {
    display: block;
    margin-top: 1.3rem;
    font-weight: 600;
    color: var(--clr-lime);
    margin-bottom: 0.5rem;
    user-select: none;
}

select,
input,
textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    margin-top: 0.3rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--clr-bg-light);
    color: var(--clr-text);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s, box-shadow 0.3s;
    font-weight: 500;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--clr-gold);
    box-shadow: 0 0 10px var(--clr-gold);
    background: var(--clr-bg);
}

textarea {
    min-height: 120px;
    resize: vertical;
    font-family: var(--font-family-primary);
    font-weight: 500;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    user-select: none;
}

.checkbox-option {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    cursor: pointer;
    background: var(--clr-bg-light);
    padding: 0.55rem 1.2rem;
    border-radius: 12px;
    border: 1.5px solid var(--glass-border);
    transition: all 0.3s ease;
    font-weight: 600;
    user-select: none;
    box-shadow: inset 0 0 5px rgba(255,255,255,0.1);
}

.checkbox-option:hover {
    background: var(--clr-bg);
    border-color: var(--clr-gold);
    box-shadow: 0 0 12px var(--clr-gold);
}

.checkbox-option input {
    margin-right: 0.6rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.primary {
    background: var(--clr-gold);
    color: var(--clr-dark-royal);
    border: none;
    padding: 1rem 2.2rem;
    margin-top: 1.8rem;
    cursor: pointer;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(229, 189, 2, 0.8);
    transition: all 0.3s ease;
    user-select: none;
}

.primary:hover:not([disabled]) {
    background: #e6a800;
    color: var(--clr-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 189, 2, 0.95);
}

.primary:disabled {
    background: var(--clr-border);
    cursor: not-allowed;
    box-shadow: none;
}

.secondary {
    background: var(--clr-royal);
    color: var(--clr-white);
    border: none;
    padding: 0.8rem 1.8rem;
    margin: 0.7rem 0.5rem 1.2rem 0;
    cursor: pointer;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    user-select: none;
}

.secondary:hover {
    background: #152e6a;
    color: var(--clr-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 46, 106, 0.9);
}

.navigation-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.navigation-buttons button {
    flex: 1 1 30%;
    min-width: 110px;
}

#additional-options,
#upload-files {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem 1.8rem;
    margin: 2rem 0;
    box-shadow: 0 6px 20px var(--glass-shadow);
    transition: all 0.3s ease;
    display: none;
}

#additional-options.show,
#upload-files.show {
    display: block;
}

#additional-options h3,
#upload-files h3 {
    margin-top: 0;
    color: var(--clr-lime);
    border-bottom: 2px solid var(--clr-gold);
    padding-bottom: 0.7rem;
    font-weight: 700;
}

#results {
    margin-top: 1.5rem;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    background: var(--clr-bg-light);
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.1);
}

.result-item {
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    background: var(--clr-bg);
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.result-item:hover {
    background: var(--clr-bg-light);
    border-color: var(--clr-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--clr-gold);
}

.result-item input[type='checkbox'] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.selected-categories {
    margin-top: 1rem;
    padding: 0.75rem 1.2rem;
    background: var(--glass-bg);
    border-radius: 12px;
    font-style: italic;
    color: var(--clr-gold);
    user-select: none;
    box-shadow: 0 0 12px var(--clr-gold);
    border: 1px solid var(--clr-gold);
    font-weight: 600;
    font-size: 1rem;
    min-height: 3rem;
}

.cta-section {
    background: linear-gradient(135deg, var(--clr-royal), #0d2a5a);
    color: var(--clr-white);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.cta-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2.8rem;
    color: var(--clr-lime);
    text-shadow: 0 0 10px var(--clr-gold);
}

.cta-section p {
    font-size: 1.3rem;
    margin: 1.8rem auto;
    max-width: 720px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

.confirmation-screen {
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    max-width: 850px;
    margin: 2rem auto;
    box-shadow: 0 8px 32px var(--glass-shadow);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--clr-lime);
}

.confirmation-screen h1 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 12px var(--clr-gold);
}

.confirmation-screen p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
}

.confirmation-summary {
    border: 1px solid var(--clr-gold);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    background: var(--clr-bg-light);
    margin-top: 1rem;
    box-shadow: inset 0 0 12px rgba(229, 189, 2, 0.5);
    font-size: 1.1rem;
    font-weight: 600;
}

.confirmation-summary h2 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    text-align: center;
    text-shadow: 0 0 6px var(--clr-gold);
}

/* Responsive */

@media (max-width: 768px) {
    .rq-wrapper {
        padding: 1.5rem 2rem;
        margin: 0.5rem;
    }
    h1 {
        font-size: 1.9rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .cta-section {
        padding: 2.2rem 1.8rem;
    }
    .primary,
    .secondary {
        width: 100%;
    }
    .result-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .result-item input[type='checkbox'] {
        margin-bottom: 0.8rem;
    }
    .navigation-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .rq-wrapper {
        padding: 1rem 1.2rem;
    }
    h1 {
        font-size: 1.6rem;
    }
    h2 {
        font-size: 1.3rem;
    }
    .cta-section {
        padding: 1.5rem 1.2rem;
    }
    .cta-section h2 {
        font-size: 1.7rem;
    }
    .cta-section p {
        font-size: 1rem;
    }
    select,
    input,
    textarea {
        padding: 0.7rem;
        font-size: 0.95rem;
    }
    label {
        margin-top: 1rem;
    }
    .checkbox-option {
        margin-right: 1rem;
        flex: 1 1 100%;
    }
}

