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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f6f8;
    padding: 20px;
    color: #24313d;
}

/* Container Principal */
.container {
    max-width: 920px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(27, 39, 51, 0.12);
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    gap: 18px;
    position: relative;
}

.logo {
    width: 180px;
    max-width: 100%;
    position: absolute;
    left: 0;
}

.header-text {
    padding-left: 170px;
    padding-right: 20px;
}

.header-text h1 {
    font-size: 20px;
    color: #1f2c37;
    text-align: center;
    font-weight: bold;
    line-height: 1.4;
}

.header-text p {
    margin-top: 6px;
    font-size: 13px;
    color: #5f6b76;
    text-align: center;
}

/* Títulos */
h2 {
    font-size: 16px;
    color: #1f2c37;
    margin: 28px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8ee;
}

/* Caixa de Introdução/Informação */
.intro-box {
    background: #f7fafc;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 24px;
    color: #52606d;
    line-height: 1.6;
    font-size: 14px;
}

/* Formulário - Grid System */
.form-row {
    display: grid;
    gap: 15px;
    margin-bottom: 15px;
}

.cols-1 { grid-template-columns: 1fr; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3-1 { grid-template-columns: 3fr 1fr; }
.cols-2-1-1 { grid-template-columns: 2fr 1fr 1fr; }
.cols-2-3 { grid-template-columns: 1fr 1.5fr; }

.form-row > div {
    display: flex;
    flex-direction: column;
}

/* Form Groups (Sistema alternativo) */
.form-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-group.full {
    flex-basis: 100%;
}

.form-control {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.form-control.full {
    flex-basis: 100%;
}

/* Fields */
.field {
    display: flex;
    flex-direction: column;
}

/* Labels */
label {
    font-size: 12px;
    font-weight: bold;
    color: #33414d;
    margin-bottom: 7px;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="date"],
input[type="tel"] {
    padding: 11px 12px;
    font-size: 13px;
    border: 1px solid #d4dde5;
    border-radius: 6px;
    font-family: Arial, sans-serif;
}

input:focus {
    outline: none;
    border-color: #1f6f50;
    box-shadow: 0 0 0 3px rgba(31, 111, 80, 0.12);
}

input[readonly] {
    background-color: #f9f9f9;
    cursor: not-allowed;
}

/* Lista de Documentos */
.document-list {
    background: #fcfdfd;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 8px;
}

.document-list ol {
    margin-left: 18px;
    color: #52606d;
    line-height: 1.7;
    font-size: 14px;
}

.document-list li {
    margin-bottom: 8px;
}

/* Info Text */
.info-text {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* Buttons Group */
.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Buttons */
button,
.button-link {
    padding: 12px 26px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover,
.button-link:hover {
    transform: translateY(-1px);
}

.btn-submit {
    background: #1f6f50;
    color: #ffffff;
}

.btn-submit:hover {
    background: #195a41;
}

.btn-reset {
    background: #8b98a5;
    color: #ffffff;
}

.btn-reset:hover {
    background: #74808b;
}

.button-link {
    background: #eef2f5;
    color: #33414d;
}

.button-link:hover {
    background: #e1e7ed;
}

/* Responsividade */
@media (max-width: 860px) {
    body {
        padding: 12px;
    }

    .container {
        padding: 22px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 52px;
    }

    .logo {
        position: static;
        width: 170px;
    }

    .header-text {
        padding-left: 0;
        padding-right: 0;
    }

    .cols-2,
    .cols-3,
    .cols-4,
    .cols-3-1,
    .cols-2-1-1,
    .cols-2-3 {
        grid-template-columns: 1fr;
    }

    .form-control {
        min-width: 100%;
    }

    .button-group {
        flex-direction: column;
    }

    button,
    .button-link {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .header-text h1 {
        font-size: 18px;
    }

    .container {
        padding: 18px;
    }
}
