/* DVWE Submit Form – Stil wie die moderne Liste */

.dvwe-submit-wrapper.modern-ui {
    max-width: 1200px;
    margin: 40px auto;
    padding: 32px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #111;
}

.dvwe-start-gate {
    display: flex;
    justify-content: center;
    margin: 0 0 28px;
}

.dvwe-start-button {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    transition: all 0.2s ease;
}

.dvwe-start-button:hover {
    background: #f8f7f7;
}

.dvwe-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 24px;
}

.dvwe-stepper-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    padding: 10px 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dvwe-stepper-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    border: 1px solid currentColor;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    background: #fff;
}

.dvwe-stepper-label {
    font-size: 0.95rem;
}

.dvwe-stepper-item.is-current {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.dvwe-stepper-item.is-completed {
    background: #ecfdf5;
    border-color: #10b981;
    color: #047857;
}

.dvwe-stepper-item.is-locked {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.dvwe-step {
    display: block;
    transition: all 0.3s ease-in-out;
    margin-bottom: 24px;
}

.dvwe-step label {
    display: block;
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
}

.dvwe-form-field {
    margin-bottom: 14px;
}

.dvwe-required-note {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.5;
}

.dvwe-required-note span {
    color: #dc2626;
    font-weight: 700;
}

.dvwe-field-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px !important;
}

.dvwe-field-label-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dvwe-required-star {
    color: #dc2626;
    font-weight: 700;
}

.dvwe-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    outline: none;
}

.dvwe-info-toggle {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    transition: all 0.2s ease;
}

.dvwe-info:hover .dvwe-info-toggle,
.dvwe-info:focus-within .dvwe-info-toggle {
    transform: translateY(-1px);
    border-color: #60a5fa;
    color: #1d4ed8;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
}

.dvwe-info-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    width: min(340px, 80vw);
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.45;
    text-wrap: pretty;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 40;
}

.dvwe-info-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translateX(-50%) rotate(45deg);
    background: rgba(15, 23, 42, 0.96);
    border-left: 1px solid rgba(148, 163, 184, 0.45);
    border-top: 1px solid rgba(148, 163, 184, 0.45);
}

.dvwe-info:hover .dvwe-info-tooltip,
.dvwe-info:focus-within .dvwe-info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dvwe-form-field.dvwe-field-error input,
.dvwe-form-field.dvwe-field-error select,
.dvwe-form-field.dvwe-field-error textarea {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

.dvwe-incomplete-message {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    border-radius: 12px;
    font-weight: 600;
}

.dvwe-reference-errors {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
    font-size: 0.95rem;
}

.dvwe-step input[type="text"],
.dvwe-step input[type="email"],
.dvwe-step input[type="url"],
.dvwe-step select,
.dvwe-step textarea,
.dvwe-step input[type="file"] {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f9fafb;
    font-size: 1rem;
    color: #111;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.dvwe-step input:focus,
.dvwe-step select:focus,
.dvwe-step textarea:focus {
    border-color: #0077ff;
    box-shadow: 0 0 0 2px rgba(0,119,255,0.15);
    outline: none;
}

.dvwe-step textarea {
    resize: vertical;
    min-height: 100px;
}

#dvwe-field-area {
    min-height: 150px;
}

#dvwe-field-branch {
    min-height: 150px;
}

.dvwe-step fieldset.dvwe-reference textarea{
    background: #fff;
}

.dvwe-step fieldset.dvwe-reference {
    border: 1px solid #e2e8f0;
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    background: #f8fafc;
}

.dvwe-step fieldset.dvwe-reference  input{
    background: #fff;
}

.dvwe-step fieldset.dvwe-reference legend {
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
    background: #f8fafc;
    padding: 5px 10px;
    border-radius: 10px;
}

/* Buttons */
.dvwe-next,
.dvwe-prev,
.dvwe-submit-button {
    display: inline-block;
    margin-top: 12px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.dvwe-next {
    background: #fff;
    color: #111;
    border: 1px solid #ddd;
}

.dvwe-prev {
    background: #f8fafb;
    color: #111;
    margin-right: 12px;
}

.dvwe-submit-button {
    background: #fff;
    color: #111;
    border: 1px solid #ddd;
}

.dvwe-next:hover {
    background: #fdfdfd;
}

.dvwe-prev:hover {
    background: #f8f7f7;
}

.dvwe-submit-button:hover {
    background: #f8f7f7;
}

.dvwe-submit-button[disabled],
.dvwe-submit-button.is-loading {
    opacity: 0.7;
    cursor: wait;
}

.dvwe-submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.dvwe-submit-loading[hidden] {
    display: none !important;
}

.dvwe-submit-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(29, 78, 216, 0.2);
    border-top-color: #1d4ed8;
    animation: dvwe-spin 0.8s linear infinite;
}

@keyframes dvwe-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Stepper animation: fade in/out */
.dvwe-step {
    opacity: 1;
}

.dvwe-step[style*="display:none"] {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .dvwe-submit-wrapper {
        padding: 20px;
    }
    .dvwe-stepper {
        grid-template-columns: 1fr;
    }
    .dvwe-stepper-item {
        justify-content: flex-start;
    }
    .dvwe-next,
    .dvwe-prev,
    .dvwe-submit-button {
        width: 100%;
        text-align: center;
    }
}

.dvwe-captcha{
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    display: block;
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
}
.dvwe-captcha p{
    margin: 0 0 10px;
    display: block;
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
}
.dvwe-captcha img{ display:block; margin: 8px 0 12px; }

.dvwe-captcha .dvwe-field-label {
    margin-bottom: 10px !important;
}












