/* Frontend Form CSS Grid Layout */
.fbc-form-wrapper {
    box-sizing: border-box;
}

.fbc-form-wrapper * {
    box-sizing: border-box;
}

.fbc-form-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.fbc-form-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.fbc-form-group {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fbc-col-100 {
    width: 100%;
}

.fbc-col-50 {
    width: 100%; /* Mặc định mobile 100% */
}

@media(min-width: 576px) {
    .fbc-col-50 {
        width: 50%; /* Lên màn tablet/desktop chia đôi */
    }
}

.fbc-label {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    opacity: 0.9;
}

.fbc-required {
    color: #ef4444;
    margin-left: 4px;
}

/* Radio & Checkbox Styles */
.fbc-radio-group, 
.fbc-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px 0;
}

.fbc-radio-label, 
.fbc-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.fbc-radio-label input[type="radio"], 
.fbc-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

/* Spinner inside button */
.fbc-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: fbc-spin 0.8s ease-in-out infinite;
    margin-left: 8px;
}

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

/* Feedback alerts */
.fbc-form-feedback {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    animation: fbc-slideDown 0.3s ease;
}

@keyframes fbc-slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fbc-feedback-success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.fbc-feedback-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.fbc-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
