body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #0c5285;
}

.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('../assets/fundo.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.card-container {
    background: #ffffff;
    width: calc(100% - 5px);
    max-width: 650px;
    padding: 25px 50px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    margin-top: 40px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.card-banner {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin: -40px -50px 25px -50px; /* "Puxa" a imagem para prender exatamente nas bordas superiores do card */
    width: calc(100% + 100px); /* Compensa a margem do padding do card */
    background: #0c5285; /* Cor de fundo caso a imagem demore a carregar */
}

.card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
    display: block;
}

h2 {
    text-align: center;
    color: #0c5285;
    margin-top: 25px;
    margin-bottom: 5px;
    font-size: 26px;
}

.subtitle {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    background-color: #f1f3f5;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
}

input:focus, select:focus {
    background-color: #fff;
    border-color: #0c5285;
    outline: none;
    box-shadow: 0 0 0 3px rgba(12, 82, 133, 0.15);
}

.section-title {
    font-size: 16px;
    color: #0c5285;
    border-bottom: 2px solid #fee400;
    padding-bottom: 5px;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Bloco de Horários e Salas (Com suporte à animação moderna) */
.time-block {
    background: #f9fbfd;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden; /* Essencial para o efeito de recolher/expandir */
}

.time-header {
    background: #f8fafc;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #0c5285;
    font-size: 14px;
    user-select: none;
    transition: background 0.3s;
}

.time-header:hover {
    background: #f1f5f9;
}

.list-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-in-out, padding 0.4s ease-in-out;
    background: #fff;
    overflow: hidden;
    border-top: 1px solid transparent;
}

.list-wrapper.open {
    grid-template-rows: 1fr;
    border-top: 1px solid #edf2f7;
}

.list-wrapper > div {
    overflow: hidden;
}

.arrow-icon {
    font-size: 11px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.arrow-icon.rotated {
    transform: rotate(180deg);
}

.room-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

.room-info {
    flex: 1;
}

.room-card:hover {
    border-color: #0c5285;
    background: #fcfdfd;
}

.room-card.selected {
    border-color: #0c5285;
    background: #eef5fc;
    box-shadow: inset 3px 0 0 #0c5285;
}

.room-card.sold-out {
    opacity: 0.5;
    background: #edf2f7;
    cursor: not-allowed;
}

.room-info .room-title {
    font-weight: bold;
    color: #2d3748;
    font-size: 13px;
}

.room-info .room-speaker {
    font-size: 11px;
    color: #718096;
    margin-top: 2px;
}

.badge-vagas {
    background: #edf2f7;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 11px;
    color: #4a5568;
    font-weight: bold;
    text-align: center;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 75px;
    flex-shrink: 0;
}

/* Caixa de Resumo */
.status-box {
    background: #fff9db;
    border: 1px solid #ffbe1a;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 20px;
    color: #5c4300;
    font-size: 13px;
}

/* Botão de Envio */
.btn {
    background: #0c5285;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    font-size: 15px;
    text-align: center;
    margin-top: 25px;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.btn-clear {
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    text-align: right;
    margin-top: 10px;
    margin-left: auto;
    transition: background 0.3s;
}

.btn:hover {
    background: #093b5e;
}

.card-footer-links {
    text-align: center;
    margin-top: 20px;
}

.card-footer-links a {
    color: #0c5285;
    font-size: 13px;
    text-decoration: none;
    font-weight: bold;
}

.card-footer-links a:hover {
    text-decoration: underline;
}

/* Estilização do Rodapé */
.page-footer {
    text-align: center;
    color: #0c5285;
    font-size: 12px;
    margin-top: 20px;
    padding-bottom: 10px;
    opacity: 0.8;
}

.page-footer p {
    margin: 4px 0;
}