/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1a2332;
    color: #ffffff;
    min-height: 100vh;
}

/* Page Container */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

/* Logo */
.logo-container {
    margin-bottom: 2rem;
}

.logo {
    height: 4rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #ffffff;
}

/* Container do Formulário */
.container {
    width: 100%;
    max-width: 56rem;
    background-color: #22303f;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    width: 100%;
}

/* Labels */
label {
    display: block;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Inputs, Selects, Textareas */
input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    background-color: #1a2332;
    border: 1px solid #374151;
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 1rem;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #22c55e;
    box-shadow: 0 0 0 2px #22c55e;
}

textarea {
    resize: none;
}

select {
    cursor: pointer;
}

/* Seção de Prestadores */
.prestadores-section {
    margin-top: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
}

/* Botão Adicionar */
.btn-add {
    background-color: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-add:hover {
    background-color: #2563eb;
}

/* Container de Prestadores */
#prestadoresContainer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Cards de Prestadores */
.prestador-card {
    background-color: #1a2332;
    border-radius: 0.5rem;
    padding: 1rem;
    position: relative;
}

.btn-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #f87171;
    cursor: pointer;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    transition: color 0.2s;
}

.btn-remove:hover {
    color: #fca5a5;
}

.btn-remove svg {
    width: 1.5rem;
    height: 1.5rem;
}

.prestador-number {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.prestador-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Inputs dentro dos cards de prestadores */
.prestador-card input[type="text"] {
    background-color: #22303f;
}

/* Botões de Ação */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit {
    background-color: #22c55e;
    color: white;
}

.btn-submit:hover {
    background-color: #16a34a;
}

.btn-clear {
    background-color: #f59e0b;
    color: white;
}

.btn-clear:hover {
    background-color: #d97706;
}

/* Responsividade */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
}

/* Copyright */
.copyright {
    margin-top: 2rem;
    text-align: center;
    padding: 1rem;
}

.copyright p {
    font-size: 0.75rem;
    color: #9ca3af;
}