/* assets/css/style.css */
:root {
    --bg: #F2F2F7; --card: #FFF; --primary: #007AFF; --text: #1C1C1E;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, sans-serif; }

body {
    background: var(--bg); color: var(--text);
    display: flex; justify-content: center; align-items: flex-start; /* Fix align */
    min-height: 100vh; padding: 20px;
}

.app-container {
    width: 100%; max-width: 480px; margin: 0 auto; /* Centraliza container */
}

.app-header { margin-bottom: 20px; text-align: center; }
.app-header h1 { font-size: 24px; margin-bottom: 5px; }

.card {
    background: var(--card); border-radius: 12px; padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin-bottom: 20px;
}

label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
input, textarea {
    width: 100%; padding: 12px; border: 1px solid #E5E5EA;
    border-radius: 8px; font-size: 16px; background: #FAFAFA;
}
textarea { resize: none; height: 120px; }

button {
    width: 100%; padding: 16px; border: none; border-radius: 12px;
    font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 10px;
}
.btn-primary { background: var(--primary); color: #FFF; }
.btn-secondary { background: #E5E5EA; color: var(--text); }

.step { display: none; }
.step.active { display: block; animation: fadeIn 0.3s; }

.radio-card {
    display: flex; align-items: center; padding: 15px;
    border: 1px solid #E5E5EA; border-radius: 8px; margin-bottom: 10px;
}
.radio-card input { width: auto; margin-right: 15px; }
.hidden { display: none !important; }

#loading {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.9); display: flex;
    flex-direction: column; align-items: center; justify-content: center;
}
.spinner {
    width: 30px; height: 30px; border: 3px solid #ddd;
    border-top: 3px solid var(--primary); border-radius: 50%;
    animation: spin 1s infinite linear; margin-bottom: 10px;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }