/* 1. FONTES E BACKGROUND */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    background: linear-gradient(to bottom, #f2f6fc, #e9eef5);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* 2. CONTAINER PRINCIPAL */
#container {
    max-width: 960px;
    margin: 50px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 3. HEADER */
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    border-bottom: 1px solid #dee2e6;
}

#logo img {
    max-height: 50px;
}

/* 4. NAVBAR */
#nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 40px;
    background: #f9f9f9;
    border-bottom: 1px solid #dee2e6;
}

#nav a {
    padding: 10px 25px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background-color: #e9ecef;
    transition: all 0.3s ease;
    border: none;
}

#nav a.active,
#nav a:hover {
    background-color: #198754;
    color: #fff;
}

/* 5. CONTEÚDO PRINCIPAL */
#content {
    padding: 50px 30px;
    text-align: center;
}

#content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

#content p.lead {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px auto;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

/* 6. BOTÕES */
#content .sidebar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.button {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    color: #fff;
    background-color: #0d6efd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.button:hover {
    background-color: #0b5ed7;
    transform: translateY(-3px);
}

.button.secondary {
    background-color: #198754;
}

.button.secondary:hover {
    background-color: #157347;
}

/* 7. FORMULÁRIO DE TICKETS */
form#ticketForm, .ticket-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
}

form#ticketForm h1,
form#ticketForm h2,
.ticket-form h1,
.ticket-form h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

form#ticketForm p,
.ticket-form p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* INPUTS E TEXTAREAS */
form#ticketForm input[type="text"],
form#ticketForm input[type="email"],
form#ticketForm input[type="tel"],
form#ticketForm input[type="password"],
form#ticketForm select,
form#ticketForm textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0 20px 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

form#ticketForm input:focus,
form#ticketForm select:focus,
form#ticketForm textarea:focus {
    border-color: #198754;
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.2);
}

/* LABELS */
form#ticketForm label {
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

/* CAMPOS LADO A LADO */
.form-row {
    display: flex;
    gap: 15px;
}

.form-row > div {
    flex: 1;
}

/* CAPTCHA */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.captcha-row img {
    height: 38px;
    border-radius: 6px;
}

/* BOTÕES DO FORMULÁRIO */
form#ticketForm .btn,
.ticket-form .btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background-color: #0d6efd;
    border: none;
    border-radius: 8px;
    margin: 10px 10px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

form#ticketForm .btn:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

form#ticketForm .btn.cancel {
    background-color: #6c757d;
}

form#ticketForm .btn.cancel:hover {
    background-color: #5a6268;
}

/* 8. RODAPÉ */
#footer {
    text-align: center;
    padding: 25px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 0.9rem;
}

/* 9. RESPONSIVO */
@media (max-width: 600px) {
    #header,
    #nav,
    #content,
    #footer {
        padding: 20px;
    }

    #content .sidebar {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .captcha-row {
        flex-direction: column;
        align-items: stretch;
    }

    form#ticketForm .btn {
        width: 100%;
        margin: 10px 0;
    }
}
