@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-page-start: #64748B; /* Mais escuro */
    --bg-page-end: #334155;   /* Mais escuro */
    --app-bg: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --primary-blue: #0A84FF;
    --primary-blue-hover: #0071E3;
    --border-color: #E2E8F0;
    --danger: #EF4444;
    --success: #10B981;
    --phone-bezel: #1E293B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background: linear-gradient(135deg, var(--bg-page-start) 0%, var(--bg-page-end) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Falso mock-up de iPhone */
.app-container {
    width: 100%;
    max-width: 400px;
    height: 820px;
    max-height: 90vh;
    background: var(--app-bg);
    border-radius: 45px;
    border: 10px solid var(--phone-bezel);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.1);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Dynamic Island / Notch Fake */
.app-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: var(--phone-bezel);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 100;
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    .app-container {
        border: none;
        border-radius: 0;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        box-shadow: none;
    }
    .app-container::before {
        display: none;
    }
}

/* Ocultar barra de rolagem no mockup */
.app-container::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.inner-content {
    padding: 60px 25px 40px 25px; /* Top padding para o notch */
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Cabeçalho */
.header {
    text-align: center;
    margin-bottom: 30px;
}
.header img {
    height: 35px;
    width: auto;
    margin-bottom: 10px;
}
.subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Progresso */
.progress-container {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 30px;
}
.dot {
    width: 8px;
    height: 8px;
    background: var(--border-color);
    border-radius: 50%;
    transition: all 0.3s;
}
.dot.active {
    background: var(--primary-blue);
    width: 20px;
    border-radius: 4px;
}

/* Passos do Formulário */
.step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.step.active {
    display: block;
}

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

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.2;
}
.step-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Inputs */
.input-group {
    margin-bottom: 20px;
}
.input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}
.input-field {
    width: 100%;
    padding: 14px 16px;
    background: #F1F5F9;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s;
}
.input-field:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

textarea.input-field {
    resize: none;
}

/* Grid de Notas (0 a 10) */
.rating-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}
.rating-btn {
    background: #F1F5F9;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.rating-btn:hover {
    background: #E2E8F0;
}
.rating-btn.selected {
    background: var(--primary-blue);
    color: #FFF;
    border-color: var(--primary-blue);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(10, 132, 255, 0.3);
}

.btn-nsnr {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 25px;
    transition: all 0.2s;
}
.btn-nsnr:hover {
    background: #F8FAFC;
    color: var(--text-main);
}
.btn-nsnr.selected {
    background: #F1F5F9;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

/* Botão Principal */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary-blue);
    color: #FFF;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}
.btn-primary:hover {
    background: var(--primary-blue-hover);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #F8FAFC;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}
.disclaimer i {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-top: 2px;
}
.disclaimer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    body {
        padding: 0;
        background: var(--app-bg); /* Remove gradient on mobile */
    }
    .app-container {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    .app-container::before {
        display: none; /* Remove fake notch */
    }
    .inner-content {
        padding: 30px 20px; /* Normal padding */
    }
}
