:root {
    --navy-deep: #0a1128;
    --gold: #d4af37;
    --gold-hover: #f1c40f;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--navy-deep);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.site-backlink {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
}

.site-backlink a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--gold);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.site-backlink a:hover {
    background-color: var(--gold);
    color: var(--navy-deep);
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.step-content {
    display: none;
    animation: slideUp 0.4s ease-out forwards;
}

.step-content.active { display: block; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Input & Elements Styles */
input[type="text"], input[type="number"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 14px;
    border-radius: 12px;
    width: 100%;
    outline: none;
    transition: border-color 0.3s;
}

input[type="email"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 14px;
    border-radius: 12px;
    width: 100%;
    outline: none;
    transition: border-color 0.3s;
}

textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 14px;
    border-radius: 12px;
    width: 100%;
    outline: none;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s;
}

select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 14px;
    border-radius: 12px;
    width: 100%;
    outline: none;
    transition: border-color 0.3s;
    cursor: pointer;
}

select option {
    background: var(--navy-deep);
    color: white;
    padding: 10px;
}

input:focus, select:focus, textarea:focus { border-color: var(--gold); }

.input-error {
    border-color: #f87171;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.6);
}

.form-error {
    display: none;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #fecaca;
    font-size: 0.85rem;
}

.form-error.is-visible { display: block; }

.field-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.field-tag.is-required {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.field-tag.is-optional {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5f5;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Alert Messages */
.alert {
    display: none;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border-left: 4px solid;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert.is-visible {
    display: block;
}

.alert.success {
    border-left-color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    color: #86efac;
}

.alert.error {
    border-left-color: #f87171;
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
}

.alert.loading {
    border-left-color: var(--gold);
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
}

.btn-gold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.level-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a9b3c7;
}

.level-count input {
    width: 90px;
    padding: 8px 10px;
    border-radius: 10px;
    text-align: center;
}

.hidden-field {
    display: none;
}

.hidden-field.is-visible {
    display: block;
}

/* Custom Selection Cards */
.select-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.select-card:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.05); }

input[type="checkbox"]:checked + .select-card {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

/* Checkbox Icon Indicator */
input[type="checkbox"]:checked + .select-card::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--gold);
    font-weight: bold;
}

/* Switches */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px; width: 16px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--gold); }

input:checked + .slider:before { transform: translateX(22px); }

/* Buttons */
.btn-gold {
    background: var(--gold);
    color: var(--navy-deep);
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 14px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gold:hover { background: var(--gold-hover); transform: translateY(-2px); }

.btn-outline { border: 1px solid var(--glass-border); padding: 14px 30px; border-radius: 14px; }

/* Progress Bar */
.progress-fill {
    height: 4px;
    background: var(--gold);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Summary Box */
.summary-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed var(--glass-border);
    padding: 20px;
    border-radius: 16px;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.6;
}
