/* Reset & Base */
:root {
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    /* Slate 600 */
    --accent-color: #C5A059;
    /* Dourado Premium */
    --accent-hover: #b08d4b;
    --petrol-blue: #0F4C75;
    /* Alternativa para botões */
    --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-family: 'Inter', sans-serif;
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    min-height: 600px;
    /* Garante altura para alinhar verticalmente */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Screens */
.screen {
    display: none;
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.screen.active {
    display: block;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--petrol-blue);
    margin-bottom: 8px;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

.brand-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 4px;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    /* Slightly less rounded than card */
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* Inputs & Forms */
.input-group {
    margin-bottom: 24px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1.1rem;
}

input[type="number"],
input[type="text"] {
    width: 100%;
    padding: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: var(--font-family);
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #FFFFFF;
    color: var(--text-primary);
}

input[type="number"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
    background-color: #fff;
}

/* Radio Buttons Custom Style */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.radio-option {
    display: block;
    position: relative;
    padding: 16px 16px 16px 50px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: #CBD5E1;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #CBD5E1;
    border-radius: 50%;
}

.radio-option input:checked~.checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.radio-option input:checked~.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-option input:checked~.checkmark:after {
    display: block;
}

.radio-option .checkmark:after {
    top: 6px;
    left: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: white;
}

.radio-option.selected {
    border-color: var(--accent-color);
    background-color: #FFFDF5;
    /* Tint of gold */
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background-color: #E2E8F0;
    border-radius: 3px;
    margin-bottom: 24px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--petrol-blue);
    transition: width 0.4s ease;
}

/* Results Specific */
.result-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E2E8F0;
}

.result-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#result-value {
    font-size: 3.5rem;
    line-height: 1;
}

.diagnosis-box {
    background-color: #F1F5F9;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    text-align: left;
    border: 1px solid #E2E8F0;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-primary);
}

.diagnosis-box p strong {
    color: var(--petrol-blue);
}

.footer-note {
    margin-top: 24px;
    font-size: 0.75rem;
    color: #94A3B8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation-name: fadeIn;
}

.slide-up {
    animation-name: slideUp;
}

/* Media Queries */
@media (max-width: 480px) {
    .card {
        padding: 24px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}

.micro-text {
    font-style: normal;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-top: 12px;
    margin-bottom: 24px;
    font-weight: 600;
}

.highlight-wound {
    color: #DC2626;
    /* Vermelho sangue/alerta */
}