/* Frontend styles for A4M GForm Builder */

.a4m-gform-wrapper {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.a4m-gform-field {
    margin-bottom: 16px;
}

.a4m-gform-label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.a4m-gform-required {
    color: #c0392b;
}

.a4m-gform-input,
.a4m-gform-textarea,
.a4m-gform-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #d0d4da;
    font-size: 14px;
}

.a4m-gform-input:focus,
.a4m-gform-textarea:focus,
.a4m-gform-select:focus {
    outline: none;
    border-color: #2c7be5;
    box-shadow: 0 0 0 1px rgba(44,123,229,0.25);
}

.a4m-gform-description {
    font-size: 14px;
    color: #555;
}

.a4m-gform-section-title {
    font-size: 18px;
    margin: 12px 0 6px;
    border-bottom: 1px solid #e3e6eb;
    padding-bottom: 4px;
}

.a4m-gform-options .a4m-gform-option {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 4px;
}

.a4m-gform-options .a4m-gform-option input {
    margin-right: 4px;
}

.a4m-gform-yesno .a4m-gform-option {
    margin-right: 15px;
}

.a4m-gform-rating-star {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
}

.a4m-gform-rating-star.active {
    color: #f1c40f;
}

.a4m-gform-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    background: #2c7be5;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.a4m-gform-button:hover {
    background: #1b6ed6;
}

.a4m-gform-button-prev {
    background: #95a5a6;
}

.a4m-gform-button-next {
    background: #18a085;
}

.a4m-gform-notice {
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 14px;
}

.a4m-gform-notice-success {
    background: #eafaf1;
    border: 1px solid #0f9d58;
    color: #0f9d58;
}

.a4m-gform-notice-error {
    background: #fdecea;
    border: 1px solid #e74c3c;
    color: #c0392b;
}

/* Multi-page container */
.a4m-gform-pages {
    position: relative;
}

/* Basic page style */
.a4m-gform-page {
    display: none;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.a4m-gform-page-active {
    display: block;
    opacity: 1;
}

/* Fade animation (default) */
.a4m-gform-pages[data-animation="fade"] .a4m-gform-page {
    transform: none;
}

/* Slide animation */
.a4m-gform-pages[data-animation="slide"] .a4m-gform-page {
    transform: translateX(8px);
}
.a4m-gform-pages[data-animation="slide"] .a4m-gform-page-active {
    transform: translateX(0);
}

/* No animation */
.a4m-gform-pages[data-animation="none"] .a4m-gform-page {
    transition: none;
}

/* Responsive */
@media (max-width: 600px) {
    .a4m-gform-wrapper {
        padding: 15px;
        margin: 10px;
    }
}


/* Ensure hidden / locked fields never display */
.a4m-gform-field.a4m-hidden-flag,
.a4m-gform-field.a4m-locked-hidden-flag {
    display: none !important;
}
