.scf-form-container {
    width: 100%;
    box-sizing: border-box;
}

.scf-form {
    display: flex;
    flex-direction: column;
}

.scf-row {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

.scf-field-group {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
}

.scf-col {
    flex: 1;
    min-width: 0;
}

.scf-label {
    font-weight: 600;
    margin-bottom: 6px;
    text-align: left; /* Default left-aligned across all viewports */
    display: inline-block;
    width: 100%;
}

.scf-required {
    color: #dc3545;
    margin-left: 3px;
}

.scf-input,
.scf-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.scf-input:focus,
.scf-textarea:focus {
    border-color: #0073aa;
    outline: none;
}

.scf-btn-container {
    width: 100%;
}

.scf-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scf-btn-submit:hover {
    background-color: #005177;
}

.scf-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Width modes */
.scf-btn-width-auto .scf-btn-container {
    text-align: inherit;
}
.scf-btn-width-center .scf-btn-container {
    text-align: center;
}
.scf-btn-width-full .scf-btn-submit {
    width: 100%;
}

/* Notices */
.scf-notice {
    margin-top: 15px;
    font-size: 14px;
    padding: 10px;
    border-radius: 4px;
    text-align: inherit;
}

.scf-notice-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.scf-notice-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Loading animation for submit button */
.scf-btn-submit.scf-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive side-by-side rendering */
@media (max-width: 767px) {
    .scf-row.scf-name-row {
        flex-direction: column;
        gap: 0 !important; /* Let margins take over */
    }
    .scf-row.scf-name-row .scf-col:not(:last-child) {
        margin-bottom: 20px; /* Space between First and Last name when stacked */
    }
}
