/* Flowex WP plugin — Solimap form styles (same as Data with API solimap-form.css) */
/* Solimap Multi-Step Form Styling - Matching pay2go.solimap.com/forms/modulo-di-adesione */

.solimap-form-wrapper {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f3f4f6;
    padding: 30px 15px;
    box-sizing: border-box;
    color: #1f2937;
    width: 100%;
}

.solimap-form-container {
    max-width: 780px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    padding: 35px 30px;
    box-sizing: border-box;
}

.solimap-form-header {
    margin-bottom: 25px;
}

.solimap-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

/* Progress Steps Indicator */
.solimap-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    padding: 0;
    list-style: none;
    overflow-x: auto;
}

.solimap-step-item {
    display: flex;
    align-items: center;
    position: relative;
}

.solimap-step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
    user-select: none;
}

.solimap-step-item.active .solimap-step-number {
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.solimap-step-item.completed .solimap-step-number {
    background-color: #10b981;
    color: #ffffff;
}

.solimap-step-line {
    width: 20px;
    height: 2px;
    background-color: #e5e7eb;
    margin: 0 6px;
}

.solimap-step-item.completed .solimap-step-line,
.solimap-step-item.active .solimap-step-line,
.solimap-step-item.completed + .solimap-step-item .solimap-step-line {
    background-color: #2563eb;
}

/* Section Title */
.solimap-section-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1f2937;
    text-transform: uppercase;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

/* Form Groups & Fields */
.solimap-form-step {
    display: none;
}

.solimap-form-step.active {
    display: block;
    animation: solimapFadeIn 0.3s ease-in-out;
}

@keyframes solimapFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.solimap-field-group {
    margin-bottom: 22px;
}

.solimap-field-group label.solimap-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
    line-height: 1.4;
}

.solimap-required-star {
    color: #ef4444;
    margin-left: 3px;
}

.solimap-input-text,
.solimap-select,
.solimap-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    color: #111827;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    font-family: inherit;
}

.solimap-input-text:focus,
.solimap-select:focus,
.solimap-textarea:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.solimap-input-text.error,
.solimap-select.error,
.solimap-textarea.error,
.solimap-field-group.has-error .solimap-input-text,
.solimap-field-group.has-error .solimap-select,
.solimap-field-group.has-error .solimap-textarea {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.solimap-error-msg,
.solimap-field-group.has-error .solimap-error-msg {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.solimap-field-group.has-error .solimap-error-msg {
    display: block;
    font-weight: 500;
}

/* Normal Form Layout (without steps) */
.solimap-no-steps .solimap-form-step.solimap-form-section {
    display: block;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.solimap-no-steps .solimap-form-step.solimap-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 10px;
}

.solimap-single-submit-footer {
    justify-content: flex-end;
}

.solimap-help-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.4;
}

/* Information Field Content (Step 4, Step 5, etc.) */
.solimap-info-content {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 20px;
}

.solimap-info-content p {
    margin-top: 0;
    margin-bottom: 12px;
}

.solimap-info-content ul,
.solimap-info-content ol {
    margin-top: 0;
    margin-bottom: 16px;
    padding-left: 20px;
}

.solimap-info-content li {
    margin-bottom: 6px;
}

.solimap-info-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-top: 0;
    margin-bottom: 12px;
}

/* Checkbox & Radio Options */
.solimap-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.solimap-option-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    cursor: pointer;
}

.solimap-option-item input[type="checkbox"],
.solimap-option-item input[type="radio"] {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: #2563eb;
    cursor: pointer;
    flex-shrink: 0;
}

/* File Upload Dropzone */
.solimap-file-uploader {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    background-color: #f9fafb;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    position: relative;
}

.solimap-file-uploader:hover,
.solimap-file-uploader.dragover {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.solimap-file-uploader input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.solimap-file-btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 8px;
    pointer-events: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.solimap-file-name {
    font-size: 13px;
    color: #2563eb;
    font-weight: 500;
    margin-top: 8px;
    word-break: break-all;
}

/* Terms Link */
.solimap-terms-link {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}
.solimap-terms-link:hover {
    color: #1d4ed8;
}

/* Step Buttons Footer */
.solimap-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.solimap-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.solimap-btn-prev {
    background-color: #ffffff;
    color: #374151;
    border-color: #d1d5db;
}

.solimap-btn-prev:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.solimap-btn-next,
.solimap-btn-submit {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.solimap-btn-next:hover,
.solimap-btn-submit:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

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

/* Loading Overlay & Spinner */
.solimap-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: solimapSpin 0.8s linear infinite;
}

@keyframes solimapSpin {
    to { transform: rotate(360deg); }
}

/* Success & Error Alert Boxes */
.solimap-alert-success {
    background-color: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
    font-size: 15px;
}

.solimap-alert-error {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Bottom Step Progress Indicator Bar */
.solimap-bottom-step-container {
    margin-top: 25px;
    padding-top: 15px;
    text-align: center;
}

.solimap-step-counter-text {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 8px;
}

.solimap-progress-bar-track {
    width: 100%;
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.solimap-progress-bar-fill {
    height: 100%;
    background-color: #2563eb;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Responsive adjust */
@media (max-width: 640px) {
    .solimap-form-container {
        padding: 20px 16px;
    }

    .solimap-form-title {
        font-size: 18px;
    }

    .solimap-step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .solimap-step-line {
        width: 10px;
        margin: 0 3px;
    }

    .solimap-btn {
        padding: 9px 16px;
        font-size: 13px;
    }
}
