/* FS Form Builder - Frontend Styles */

.fs-form-wrapper {
    max-width: 100%;
    margin: 20px 0;
}

.fs-form-description {
    margin-bottom: 20px;
    color: #666;
}

.fs-form {
    width: 100%;
}

.fs-form-field {
    margin-bottom: 20px;
}

.fs-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.fs-required {
    color: #dc3232;
    margin-left: 2px;
}

.fs-form-input {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.fs-form-input:focus {
    border-color: #007cba;
    outline: 0;
    box-shadow: 0 0 0 1px #007cba;
}

.fs-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.fs-form-input[type="date"] {
    width: auto;
    min-width: 200px;
}

.fs-form-checkbox {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    cursor: pointer;
}

.fs-form-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.fs-form-checkbox span {
    vertical-align: middle;
}

.fs-form-submit {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    background-color: #007cba;
    border: 1px solid #007cba;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.fs-form-submit:hover {
    background-color: #005a87;
    border-color: #005a87;
}

.fs-form-submit:focus {
    outline: 0;
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba;
}

/* Success message */
.fs-form-success {
    padding: 15px 20px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Error messages */
.fs-form-errors {
    padding: 15px 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    margin-bottom: 20px;
}

.fs-form-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fs-form-error {
    margin-bottom: 5px;
}

.fs-form-error:last-child {
    margin-bottom: 0;
}

/* Select field */
.fs-form-input[type="select"],
select.fs-form-input {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .fs-form-input {
        font-size: 16px; /* Prevent zoom on mobile */
    }

    .fs-form-submit {
        width: 100%;
        text-align: center;
    }
}