/* Corpo e contêiner principal */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f9f9f9;
}

.form-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    padding: 32px;
    box-sizing: border-box;
}

/* Cabeçalho do formulário */
.form-header {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
    color: #333333;
}

/* Grupos de campos */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: #333333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007aff;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3);
}

/* Mensagens de erro */
span.error-message {
    font-size: 12px;
    color: #ff3b30;
    margin-top: 4px;
    display: block;
}

/* Cartão de equipamento */
.equipment-card {
    border: 1px solid #e6e6e6;
    padding: 24px;
    border-radius: 12px;
    background-color: #ffffff;
    margin-bottom: 32px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Cabeçalho do equipamento */
.equipment-header {
    font-size: 20px;
    font-weight: 600;
    color: #007aff;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Botão para adicionar equipamento */
.add-button {
    margin-top: 24px;
    font-size: 15px;
    color: #007aff;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.add-button:hover {
    color: #005bb5;
}

/* Botão de envio */
.form-submit {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    background-color: #007aff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.form-submit:hover {
    background-color: #005bb5;
}

.form-submit.loading {
    cursor: not-allowed;
    background-color: #005bb5;
}

.form-submit .button-text {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.form-submit.loading .button-text {
    opacity: 0;
}

/* Barra de progresso */
.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.progress {
    width: 0;
    height: 100%;
    background: #5be284;
    transition: width 0.3s linear;
}

/* Feedback visual */
#feedbackMessage {
    margin-top: 20px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    display: none;
}

#feedbackMessage.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

#feedbackMessage.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}