/* Survey Hunter Mentality - Barloworld Equipments */
/* CORES CORRIGIDAS: Primária #371373 (Roxo) | Secundária #f5671f (Laranja) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #fec81e;
    --secondary-color: #371373;
    --bg-light: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --success: #28a745;
    --error: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a1a99 100%);
    color: var(--white);
    padding: 30px 30px 40px 30px;
    text-align: center;
}

/* LOGOS - Esquerda e Direita Menores */
.header-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.logo-pathway {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.logo-bwe {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--white);
}

.header .subtitle {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    color: var(--white);
}

.content {
    padding: 40px 30px;
}

.intro-text {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid var(--secondary-color);
}

.intro-text p {
    color: var(--text-dark);
    margin-bottom: 0;
}

.form-section {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.required {
    color: var(--error);
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--white);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(245, 103, 31, 0.1);
}

.question-block {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.question-block:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(245, 103, 31, 0.1);
}

.question-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.question-number {
    background: var(--secondary-color);
    color: var(--white);
    font-weight: bold;
    min-width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

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

.option-item {
    margin-bottom: 12px;
}

.option-item label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--white);
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
}

.option-item label:hover {
    border-color: var(--secondary-color);
    background: rgba(245, 103, 31, 0.05);
}

.option-item input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.option-item input[type="radio"]:checked + span {
    color: var(--secondary-color);
    font-weight: 600;
}

.habits-input {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.habits-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(245, 103, 31, 0.1);
}

.footer-message {
    background: linear-gradient(135deg, var(--primary-color) 0%, #eec40a 100%);
    color: black;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    text-align: start;
}

.footer-message h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: black;
}

.footer-message p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1rem;
}

.footer-message ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.footer-message ul li {
    padding: 8px 0;
    font-size: 1rem;
}

.footer-message ul li:before {
    content: "✓ ";
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 8px;
}

.submit-section {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.btn-submit {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ff7a35 100%);
    color: var(--white);
    border: none;
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 103, 31, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 103, 31, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner.show {
    display: inline-block;
}

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

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-weight: 500;
}

.alert.show {
    display: block;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile Responsivo */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 12px;
    }

    .header {
        padding: 20px 15px 30px 15px;
    }

    .header-logos {
        /* MANTER nos cantos mesmo em mobile */
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 20px;
    }

    .logo-pathway,
    .logo-bwe {
        height: 25px; /* Menores em mobile mas mantém nos cantos */
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .header .subtitle {
        font-size: 0.9rem;
    }

    .content {
        padding: 25px 15px;
    }

    .question-text {
        font-size: 1rem;
        flex-direction: column;
        gap: 10px;
    }

    .question-number {
        min-width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .option-item label {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .btn-submit {
        width: 100%;
        padding: 14px 30px;
        font-size: 1rem;
    }

    .footer-message {
        padding: 20px;
    }

    .footer-message h3 {
        font-size: 1.2rem;
    }
}

/* Telas muito pequenas (menos de 480px) */
@media (max-width: 480px) {
    .container {
        margin: 5px;
        border-radius: 8px;
    }

    .header {
        padding: 15px 10px 25px 10px;
    }

    .header-logos {
        padding: 0 5px;
        margin-bottom: 15px;
    }

    .logo-pathway,
    .logo-bwe {
        height: 20px; /* Ainda menores em telas muito pequenas */
    }

    .header h1 {
        font-size: 1.3rem;
    }

    .header .subtitle {
        font-size: 0.85rem;
    }

    .content {
        padding: 20px 12px;
    }

    .intro-text {
        padding: 15px;
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .question-text {
        font-size: 0.95rem;
    }

    .question-number {
        min-width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .option-item label {
        padding: 10px;
        font-size: 0.85rem;
    }

    .footer-message {
        padding: 15px;
    }

    .footer-message h3 {
        font-size: 1.1rem;
    }

    .footer-message p,
    .footer-message ul li {
        font-size: 0.9rem;
    }
}