/* Variáveis Globais (Custom Properties) */
:root {
    /* Cores */
    --color-primary: #8B5CF6;
    --color-primary-gradient: linear-gradient(45deg, #8B5CF6, #C084FC);
    --color-success: #4CAF50;
    --color-success-gradient: linear-gradient(45deg, #10B981, #34D399);
    --color-background: #F3E8FF;
    --color-surface: #ffffff;
    --color-text-dark: #374151;
    --color-gray-light: #e0e0e0;
    --color-gray-medium: #9e9e9e;
    --color-border: #e5e7eb;
    --color-white: #ffffff;
    
    /* Sombras */
    --shadow-card: 0 8px 16px rgba(0,0,0,0.08);
    --shadow-card-selected: 0 0 0 3px rgba(139, 92, 246, 0.4);
    --shadow-btn: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-btn-hover: 0 7px 14px rgba(0,0,0,0.1);
    --shadow-container: 0 20px 40px rgba(0, 0, 0, 0.1);

    /* Transições */
    --transition-fast: all 0.2s ease-in-out;
    --transition-slow: all 0.4s ease;

    /* Bordas */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 50%;
}

/* Estilos Base */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-background);
}

.container {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-container);
    max-width: 650px;
    width: 100%;
    overflow: hidden;
}

.hidden {
    display: none;
}

/* Componente: Main Header */
.main-header {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/Banner.png') center/cover;
}

/* Componente: Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    position: relative;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: var(--color-gray-light);
    color: var(--color-gray-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition-slow);
    z-index: 10;
}

.step-label {
    font-size: 0.75rem;
    color: var(--color-gray-medium);
    font-weight: 500;
    text-align: center;
    transition: var(--transition-slow);
    height: 1rem;
    margin-top: 0.5rem;
    overflow: hidden;
}

.step-label-hidden {
    opacity: 0;
    visibility: hidden;
}

.step-label-visible {
    opacity: 1;
    visibility: visible;
}

.progress-line {
    position: absolute;
    top: 16px; /* Metade da altura do step-circle */
    left: 50%;
    right: -50%;
    height: 4px;
    background-color: var(--color-gray-light);
    z-index: 5;
}

.progress-step:last-child .progress-line {
    display: none;
}

/* Estados do Progress Bar */
.progress-step.active .step-circle {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.2);
}

.progress-step.active .step-label {
    color: var(--color-primary);
    font-weight: 700;
}

.progress-step.completed .step-circle {
    background-color: var(--color-success);
    color: var(--color-white);
}

.progress-step.completed .step-label {
    color: var(--color-success);
}

.progress-step.completed .progress-line {
    background-color: var(--color-success);
}


/* Componente: Card */
.card {
    border: 2px solid var(--color-border);
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.card.selected {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card-selected);
}

.card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.acai-type-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* Componente: Button */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-btn);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

.btn-primary {
    background: var(--color-primary-gradient);
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-border);
    color: var(--color-text-dark);
}

.btn-final {
    background: var(--color-success-gradient);
    color: var(--color-white);
}