:root {
    --petrobras-green: #008542;
    --petrobras-blue: #004b3a;
    --petrobras-yellow: #ffda00;
    --petrobras-gray: #f3f4f6;
    --gov-blue: #004b3a;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rawline', 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--petrobras-gray);
    color: #1a1a1a;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Header Gov.br */
.header-gov {
    background-color: #000;
    padding: 12px 0;
    width: 100%;
}

.container-gov {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.logo-gov {
    display: flex;
    align-items: center;
}

.logo-gov img {
    height: 32px;
    width: auto;
}

.header-links {
    display: flex;
    gap: 30px;
}

.header-links a {
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .header-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Petrobras Header */
.petrobras-header {
    background-color: #fff;
    border-bottom: 4px solid var(--petrobras-yellow);
    width: 100%;
}

.petrobras-header-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    gap: 30px;
}

.petrobras-logo-area {
    background: #fff;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.petrobras-logo-area img {
    max-height: 60px;
    width: auto;
}

.petrobras-title-area {
    background: transparent;
    color: #003F6B;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
    text-align: left;
}

.petrobras-title-area h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.petrobras-title-area p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 4px 0 0 0;
    text-transform: uppercase;
    font-weight: 600;
}

@media (max-width: 768px) {
    .petrobras-header-content {
        flex-direction: column;
        height: auto;
        gap: 10px;
        padding: 15px 0;
    }
    .petrobras-logo-area {
        flex: none;
        padding: 0;
        border: none;
    }
    .petrobras-title-area {
        padding: 0;
        text-align: center;
    }
    .petrobras-title-area h1 {
        font-size: 1.2rem;
    }
}

/* Progress Container */
.progress-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-container::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 36px;
    height: 36px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    transition: all 0.3s;
}

.progress-step.active .step-number {
    border-color: var(--petrobras-green);
    background: var(--petrobras-green);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 133, 63, 0.1);
}

.progress-step.completed .step-number {
    border-color: var(--petrobras-green);
    background: var(--petrobras-green);
    color: #fff;
}

.step-label {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--petrobras-green);
}

/* Layout Container */
.container {
    max-width: 700px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.main-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--petrobras-blue);
    margin-bottom: 5px;
    text-align: center;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
    transition: all 0.2s;
}

.form-input, .form-select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    color: #111827;
    background-color: #f9fafb;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--petrobras-green);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 133, 63, 0.08);
}

.form-input::placeholder {
    color: #9ca3af;
    opacity: 0.7;
}

/* Grid Layout for Forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--petrobras-green) 0%, #007035 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 18px 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 133, 63, 0.2), 0 2px 4px -1px rgba(0, 133, 63, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 133, 63, 0.3), 0 4px 6px -2px rgba(0, 133, 63, 0.15);
    background: linear-gradient(135deg, #00964b 0%, var(--petrobras-green) 100%);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 5px 10px -3px rgba(0, 133, 63, 0.3);
}

.btn-primary:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Question Containers & Radio Options */
.question-container {
    margin-bottom: 30px;
    padding: 25px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.question-container:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #e2e8f0;
}

.question-title {
    font-weight: 700;
    color: var(--petrobras-blue);
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.radio-option:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 15px;
    background: #fff;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked {
    border-color: var(--petrobras-green);
}

.radio-option input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--petrobras-green);
    border-radius: 50%;
}

.radio-option:has(input[type="radio"]:checked) {
    background: #f0fdf4;
    border-color: var(--petrobras-green);
}

.radio-option label {
    cursor: pointer;
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
    transition: color 0.2s;
}

.radio-option:has(input[type="radio"]:checked) label {
    color: #065f46;
    font-weight: 600;
}

/* Progress Bar */
.progress-bar-container {
    background-color: #e2e8f0;
    height: 12px;
    border-radius: 6px;
    margin: 15px 0 30px 0;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--petrobras-green) 0%, #00b359 100%);
    height: 100%;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selectable Cards (Images and Options) */
.selectable-card {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e2e8f0;
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.selectable-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.selectable-card.selected {
    border-color: var(--petrobras-green);
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(0, 133, 63, 0.1);
}

.selectable-card.selected::before {
    content: "✓";
    position: absolute;
    top: 5px;
    right: 8px;
    color: var(--petrobras-green);
    font-weight: 900;
    font-size: 14px;
}

.option-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.option-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateX(4px);
}

.option-card.selected {
    border-color: var(--petrobras-green);
    background: #f0fdf4;
    border-width: 2px;
    box-shadow: 0 4px 6px -1px rgba(0, 133, 63, 0.1);
}

.option-circle {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
    transition: all 0.2s;
}

.option-card.selected .option-circle {
    background: var(--petrobras-green);
    color: #fff;
    transform: scale(1.1);
}

.option-text {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--petrobras-blue);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* Info Box & Modal */
.info-box {
    background: #f0f7ff;
    border-left: 4px solid #003F6B;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}

.info-box h3 {
    margin-top: 0;
    color: #003F6B;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.info-box ul {
    padding-left: 20px;
    margin-bottom: 0;
    list-style: disc;
    color: #4b5563;
    font-size: 0.95rem;
}

.info-box li {
    margin-bottom: 5px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal-card {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.w-full {
    width: 100%;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.text-lg {
    font-size: 1.125rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-gray-600 {
    color: #4b5563;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Footer Gov.br */
.footer-gov {
    background-color: #fff;
    border-top: 1px solid #ddd;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-gov p {
    font-size: 13px;
    color: #666;
}

/* Info Cards & Items */
.info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.info-value {
    font-weight: 700;
    color: var(--petrobras-blue);
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .info-card {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .main-card {
        padding: 25px;
    }
    .progress-container {
        margin: 20px auto;
    }
}
