/* 
 * Angola On-Line - Extreme Elegance 3.0
 * Design System: Liquid Glass & Premium Minimalism
 */

:root {
    /* Sophisticated Color Palette */
    --brand-primary: #6366F1;
    --brand-secondary: #A855F7;
    --brand-gradient: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
    --brand-glow: 0 0 25px rgba(99, 102, 241, 0.4);

    /* Neutral System */
    --bg-main: #FAFBFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-glass: rgba(255, 255, 255, 0.4);
    --card-glass: rgba(255, 255, 255, 0.72);

    /* Semantic Colors */
    --c-success: #10B981;
    --c-error: #F43F5E;

    /* Refined Shadows */
    --shadow-premium: 0 24px 64px -12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 32px 80px -16px rgba(99, 102, 241, 0.15);

    /* Layout Constants */
    --radius-xl: 32px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --max-w: 760px;

    /* Motion */
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.2s;
    --duration-med: 0.4s;
    --duration-slow: 0.8s;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography Overrides */
h1,
h2,
h3,
.btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

/* Background Decorative Orbs */
.bg-decoration {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.5;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #E0E7FF 0%, transparent 70%);
    top: -10%;
    right: -10%;
}

.orb-2 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, #F3E8FF 0%, transparent 70%);
    bottom: -5%;
    left: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 25vw;
    height: 25vw;
    background: radial-gradient(circle, #D1FAE5 0%, transparent 70%);
    top: 50%;
    left: 40%;
    opacity: 0.3;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -50px) scale(1.1);
    }
}

/* Layout Container */
.app-container {
    width: 100%;
    max-width: var(--max-w);
    margin: 60px auto;
    padding: 0 24px;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
    animation: revealUp 0.8s var(--ease-in-out);
}

.logo-wrapper {
    width: 84px;
    height: 84px;
    padding: 16px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform var(--duration-med) var(--spring);
}

.logo-wrapper:hover {
    transform: translateY(-8px) rotate(3deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.logo-wrapper img {
    max-height: 48px;
    width: auto;
}

/* Progress System */
.progress-container {
    margin-bottom: 40px;
}

.progress-track {
    height: 4px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--brand-gradient);
    width: 0%;
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: var(--brand-glow);
}

.step-indicator {
    display: flex;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.step-indicator span {
    color: var(--brand-primary);
    margin: 0 4px;
}

/* Wizard Card */
.wizard-card {
    background: var(--card-glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
    padding: 56px;
    position: relative;
    transition: box-shadow var(--duration-med) var(--ease-in-out);
}

.wizard-card:hover {
    box-shadow: var(--shadow-hover);
}

/* Step Content */
.step {
    display: none;
}

.step.active {
    display: block;
    animation: stepEnter 0.6s var(--ease-in-out);
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(to bottom, #1E293B, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Inputs & Forms */
.input-group {
    margin-bottom: 32px;
}

.input-group>label {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: #334155;
}

.required-mark {
    color: var(--brand-primary);
    margin-left: 2px;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 20px 24px;
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-main);
    transition: all var(--duration-fast) var(--ease-in-out);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

textarea {
    min-height: 120px;
    resize: none;
}

/* Option Cards (Tiles) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.option-card {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.option-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-content {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    transition: all var(--duration-med) var(--spring);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #475569;
}

.option-icon {
    font-size: 1.75rem;
    display: block;
}

.option-card:hover .option-content {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.option-card input:checked+.option-content {
    background: #fff;
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    box-shadow: 0 0 0 2px var(--brand-primary) inset, 0 12px 24px rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

/* Footer Buttons */
.wizard-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
}

.btn {
    padding: 18px 40px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    border: none;
    transition: all var(--duration-med) var(--spring);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-main);
    transform: translateX(-5px);
}

.btn-primary {
    background: var(--text-main);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: var(--c-success);
    color: #fff;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.35);
}

.btn:active {
    transform: scale(0.96);
}

/* Animations */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes stepEnter {
    from {
        opacity: 0;
        transform: translateX(20px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

/* Validation Shake */
.input-error {
    border-color: var(--c-error) !important;
    animation: shake 0.4s ease both;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .app-container {
        margin: 30px auto;
        padding: 0 16px;
    }

    .wizard-card {
        padding: 32px 24px;
        border-radius: var(--radius-lg);
    }

    .step-header h2 {
        font-size: 1.6rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .option-content {
        flex-direction: row;
        padding: 16px 20px;
        text-align: left;
    }

    .wizard-footer {
        flex-direction: column-reverse;
        gap: 16px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}