:root {
    --primary-color: #001489;
    /* Mizuno Blue approx */
    --secondary-color: #000000;
    --bg-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f4f4f4;
    --border-radius: 12px;
    --spacing: 20px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    height: 100vh;
    display: flex;
    justify-content: center;
}

#app {
    width: 100%;
    max-width: 480px;
    /* Mobile first constraint */
    background: #fff;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* =========================
   LOGO (TOPO)
========================= */
.logo-container {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 480px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 102;
    background: #fff;
}

.logo {
    max-height: 28px;
    width: auto;
}

/* =========================
   PROGRESS BAR (ABAIXO DA LOGO)
========================= */
.progress-container {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    position: fixed;
    top: 40px; /* abaixo da logo */
    max-width: 480px;
    z-index: 101;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

/* =========================
   SCREEN STRUCTURE
========================= */
.screen {
    display: none;
    flex: 1;
    padding: var(--spacing);
    padding-top: 70px; /* logo (40px) + barra (6px) + respiro */
    overflow-y: auto;
    animation: fadeIn 0.4s ease;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

.screen-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   TYPOGRAPHY
========================= */
h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.small-text {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

/* =========================
   COMPONENTS
========================= */
.hero-image-placeholder {
    width: 100%;
    height: 250px;
    background-color: #eee;
    margin-bottom: 16px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-text {
    color: #999;
    font-size: 14px;
}

.hero-small img {
    width: 250px;
    height: auto;
    object-fit: contain;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ou cover */
}




/* =========================
   BUTTONS
========================= */
.bottom-action {
    margin-top: auto;
    width: 100%;
    padding-bottom: 20px;
}

.btn-primary {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 20, 137, 0.2);
    transition: transform 0.1s;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* =========================
   CARDS (QUIZ)
========================= */
.card-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-option {
    background: var(--light-gray);
    padding: 16px;
    border-radius: var(--border-radius);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.card-option:hover {
    background: #e8e8e8;
}

.card-option.selected {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-icon {
    font-size: 24px;
}

.card-text {
    font-size: 16px;
    font-weight: 500;
}

/* =========================
   LARGE OPTIONS (DELIVERY)
========================= */
.large-option {
    padding: 24px;
    align-items: flex-start;
}

.large-option .card-icon {
    font-size: 32px;
}

.option-details {
    display: flex;
    flex-direction: column;
}

.card-subtext {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* =========================
   FORM STYLES
========================= */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--primary-color);
}

/* =========================
   CAROUSEL & MODEL CARDS
========================= */
.model-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.model-divider {
    text-align: center;
    margin: 16px 0;
    font-weight: 600;
    color: #999;
    font-size: 14px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: 8px;
    background: #f9f9f9;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-nav.prev {
    left: 8px;
}

.carousel-nav.next {
    right: 8px;
}

.model-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.btn-secondary {
    width: 100%;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
}

/* =========================
   GRID SELECT (SIZES)
========================= */
.grid-select {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.size-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 14px 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover {
    border-color: var(--primary-color);
}

.size-btn.selected {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* =========================
   INFO BOX (FINAL SCREENS)
========================= */
.info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
    text-align: left;
}

.info-box p {
    font-size: 14px;
    margin-bottom: 16px;
    color: #555;
    line-height: 1.6;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 500;
}
