/* ANAF 230 — Frontend Form */

.anaf230-wrapper {
    max-width: 780px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: #1a1a1a;
}

/* Notices */
.anaf230-notice {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
}
.anaf230-notice--success { background: #d4edda; border-left: 4px solid #28a745; color: #155724; }
.anaf230-notice--error   { background: #f8d7da; border-left: 4px solid #dc3545; color: #721c24; }
.anaf230-notice--warning { background: #fff3cd; border-left: 4px solid #ffc107; color: #856404; }

/* Sections */
.anaf230-section {
    background: #FFFBF5;
    border: 1px solid #e0d8cc;
    border-radius: 8px;
    padding: 22px 26px;
    margin-bottom: 22px;
}
.anaf230-section legend {
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    padding: 0 8px;
    letter-spacing: .01em;
}

/* Grid rows */
.anaf230-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.anaf230-row:last-child { margin-bottom: 0; }
.anaf230-row--2col .anaf230-field { flex: 1 1 calc(50% - 8px); min-width: 180px; }
.anaf230-row--3col .anaf230-field { flex: 1 1 calc(33% - 12px); min-width: 140px; }
.anaf230-field--small             { flex: 0 0 110px !important; }
.anaf230-field--full              { flex: 1 1 100%; }

/* Fields */
.anaf230-field {
    display: flex;
    flex-direction: column;
}
.anaf230-field label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}
.anaf230-field input[type="text"],
.anaf230-field input[type="email"],
.anaf230-field input[type="tel"],
.anaf230-field input[type="number"] {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    transition: border-color .15s;
}
.anaf230-field input:focus {
    border-color: #004494;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,68,148,.1);
}
.anaf230-field input.anaf230-invalid { border-color: #dc3545; }
.anaf230-field-error { color: #dc3545; font-size: 12px; margin-top: 3px; display: block; }
.anaf230-hint { font-size: 12px; color: #777; margin-top: 4px; }
.required { color: #dc3545; }

/* Entity card */
.anaf230-entity-card {
    background: #fff;
    border: 1px solid #d0c8ba;
    border-radius: 6px;
    padding: 14px 18px;
    margin-top: 10px;
}
.anaf230-entity-name {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}
.anaf230-entity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.anaf230-entity-meta span {
    font-size: 13px;
    color: #444;
    background: #f5f0ea;
    border: 1px solid #e0d8cc;
    border-radius: 4px;
    padding: 3px 10px;
}

/* Checkboxes */
.anaf230-checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.anaf230-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.5;
}
.anaf230-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #004494;
}

/* Info box */
.anaf230-info-box {
    background: #f5f0ea;
    border-left: 3px solid #b0966e;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Legal note */
.anaf230-legal {
    font-size: 12px;
    color: #888;
    margin: 14px 0 16px;
}

/* Submit section */
.anaf230-section--submit { border-color: #d0c8ba; }

/* Button */
.anaf230-btn {
    display: inline-block;
    padding: 11px 30px;
    background: #004494;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background .18s;
}
.anaf230-btn:hover    { background: #003070; }
.anaf230-btn:disabled { background: #7da4c9; cursor: not-allowed; }

/* Responsive */
@media (max-width: 580px) {
    .anaf230-row--2col .anaf230-field,
    .anaf230-row--3col .anaf230-field { flex: 1 1 100%; }
    .anaf230-field--small { flex: 1 1 100% !important; }
}
