.fos-grupo {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.fos-grupo--2col {
    grid-template-columns: 1fr 1fr;
}

.fos-grupo--3col {
    grid-template-columns: 1fr 1fr 1fr;
}

.fos-grupo--full {
    grid-template-columns: 1fr;
}

.fos-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fos-field label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.fos-field label span {
    color: #ef4444;
}

.fos-field input,
.fos-field select,
.fos-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.fos-field input:focus,
.fos-field select:focus,
.fos-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.fos-field--error input,
.fos-field--error select,
.fos-field--error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.fos-field--error .fos-checkbox-visual {
    border-color: #ef4444;
}

.fos-error {
    font-size: 12px;
    color: #ef4444;
    min-height: 16px;
}

.fos-field--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
}

.fos-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: 400 !important;
    line-height: 1.5;
}

.fos-checkbox-label input[type="checkbox"] {
    display: none;
}

.fos-checkbox-visual {
    display: inline-flex;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    position: relative;
    transition: all 0.2s;
    margin-top: 2px;
}

.fos-checkbox-label input:checked + .fos-checkbox-visual {
    border-color: #2563eb;
    background: #2563eb;
}

.fos-checkbox-label input:checked + .fos-checkbox-visual::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.fos-submit-wrapper {
    text-align: center;
    margin-top: 24px;
}

.fos-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.fos-submit:hover {
    background: #1d4ed8;
}

.fos-submit:active {
    transform: scale(0.98);
}

.fos-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fos-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fos-spin 0.6s linear infinite;
}

.fos-submit:disabled .fos-spinner {
    display: inline-block;
}

@keyframes fos-spin {
    to { transform: rotate(360deg); }
}

.fos-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fos-modal__box {
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.fos-modal__box svg {
    margin-bottom: 16px;
}

.fos-modal__box h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #1e293b;
}

.fos-modal__box p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.fos-form-error {
    color: #ef4444;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

@media (max-width: 768px) {
    .fos-grupo--2col,
    .fos-grupo--3col {
        grid-template-columns: 1fr;
    }
}
