:root {
    --naturale-red: #c0392b;
    --naturale-red-dark: #962d22;
    --naturale-green: #6fae3f;
    --text: #333333;
    --muted: #666666;
    --border: #d9d9d9;
    --bg: #f5f5f5;
    --white: #ffffff;
    --error: #b30000;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--naturale-green);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
}

.brand-logo {
    height: 54px;
    width: auto;
}

.header-nav a {
    color: var(--text);
    text-decoration: none;
    margin-left: 18px;
    font-weight: 600;
}

.header-nav a:hover {
    color: var(--naturale-green);
}

.main-content {
    padding: 28px 0 48px;
}

.hero-card,
.form-section,
.alert {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.page-title {
    margin: 0 0 12px;
    text-align: center;
    font-size: 1.8rem;
    color: var(--naturale-green);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.company-line {
    text-align: center;
    margin: 0 0 16px;
}

.company-box {
    max-width: 520px;
    margin: 0 auto;
    padding: 14px 18px;
    border: 1px solid var(--border);
    background: #fafafa;
    text-align: center;
}

.company-box p {
    margin: 4px 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.section-header h2 {
    margin: 0;
    font-size: 1.15rem;
    flex: 1;
}

.required-note {
    color: var(--naturale-green);
    font-size: 0.9rem;
    font-weight: 600;
}

.section-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--naturale-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.section-icon-user::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 7px;
}

.section-icon-user::after {
    content: '';
    width: 22px;
    height: 10px;
    border-radius: 10px 10px 0 0;
    background: #fff;
    position: absolute;
    bottom: 5px;
}

.section-icon-doc::before {
    content: '';
    width: 14px;
    height: 18px;
    background: #fff;
    border-radius: 2px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 16px;
}

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

.form-group-full {
    grid-column: 1 / -1;
}

label,
.group-label {
    font-size: 0.92rem;
    font-weight: 600;
}

.req {
    color: var(--naturale-green);
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font: inherit;
    background: var(--white);
}

textarea {
    resize: vertical;
    min-height: 110px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--naturale-green);
    box-shadow: 0 0 0 2px rgba(111, 174, 63, 0.15);
}

.is-invalid {
    border-color: var(--error) !important;
    background-image: linear-gradient(45deg, transparent 96%, var(--error) 96%);
}

.field-error {
    color: var(--error);
    font-size: 0.82rem;
}

.radio-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.radio-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

.char-counter {
    font-size: 0.82rem;
    color: var(--muted);
    text-align: right;
}

.definitions {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.definitions p {
    margin: 0 0 8px;
}

.def-num {
    color: var(--naturale-green);
}

.definitions em {
    color: var(--muted);
}

.upload-group .help-text {
    color: var(--muted);
}

.form-footer {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.legal-notes ul {
    margin: 0 0 16px;
    padding-left: 18px;
}

.legal-notes li {
    margin-bottom: 10px;
}

.legal-notes li::marker {
    color: var(--naturale-green);
}

.privacy-note {
    font-weight: 700;
}

.privacy-note a {
    color: #1a5fb4;
}

.captcha-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.captcha-image-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    padding: 8px;
    background: #fafafa;
}

.icon-btn {
    border: 1px solid var(--border);
    background: var(--white);
    width: 34px;
    height: 34px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
}

.icon-btn:hover {
    border-color: var(--naturale-green);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border: none;
    border-radius: 4px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: #1a5fb4;
    color: var(--white);
    align-self: flex-end;
    margin-top: 8px;
}

.btn-primary:hover {
    background: #124a8c;
}

.btn-secondary {
    background: var(--naturale-green);
    color: var(--white);
}

.alert-success {
    border-left: 5px solid var(--naturale-green);
}

.alert-error {
    border-left: 5px solid var(--error);
    color: var(--error);
    font-weight: 600;
}

.site-footer {
    background: #2f2f2f;
    color: #f0f0f0;
    padding: 28px 0;
    margin-top: 24px;
}

.footer-inner {
    text-align: center;
}

.footer-logo {
    height: 42px;
    margin-bottom: 12px;
}

.site-footer a {
    color: #fff;
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-nav a {
        margin-left: 0;
        margin-right: 14px;
    }

    .btn-primary {
        width: 100%;
        align-self: stretch;
    }
}
