/* --- Global Reset & Page Background for White Aesthetic --- */
body {
    background-color: #f7f9fc;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    line-height: 1.6;
}

/* --- Main Container (.wmvw-wrap) --- */
.wmvw-wrap {
    max-width: 1100px;
    width: 90%;
    margin: 40px auto;
    background: #ffffff;
    color: #1f2937;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

/* --- Typography --- */
.wmvw-wrap h1,
.wmvw-wrap h2,
.wmvw-wrap h3 {
    color: #101828;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
}

/* --- Sections and Separators --- */
.wmvw-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 25px;
}

.wmvw-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* --- Inline Form Elements --- */
.wmvw-inline {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.wmvw-inline label {
    flex: 1;
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

/* --- Form Inputs --- */
.wmvw-form input[type="text"],
.wmvw-form input[type="number"],
.wmvw-form textarea,
.wmvw-form select {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #d2d6dc;
    border-radius: 8px;
    padding: 10px 12px;
    color: #1f2937;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wmvw-form input[type="text"]:focus,
.wmvw-form input[type="number"]:focus,
.wmvw-form textarea:focus,
.wmvw-form select:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
    background: #ffffff;
}

.wmvw-form input[type="file"] {
    color: #1f2937;
    padding: 10px 0;
}

/* --- Primary Button --- */
.wmvw-form .button.button-primary {
    background: #4f46e5;
    border: 1px solid #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    border-radius: 999px;
    padding: 10px 30px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: capitalize;
}

.wmvw-form .button.button-primary:hover {
    background: #4338ca;
    border-color: #4338ca;
    box-shadow: 0 6px 15px rgba(67, 56, 202, 0.4);
    transform: translateY(-1px);
}

/* --- Progress Bar --- */
.wmvw-progress-wrap {
    margin-top: 25px;
    display: none;
}

.wmvw-progress-bar {
    width: 100%;
    background: #e5e7eb;
    border-radius: 50px;
    overflow: hidden;
    height: 14px;
    border: none;
}

.wmvw-progress-inner {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #34d399, #10b981);
    transition: width 0.4s ease;
}

.wmvw-progress-text {
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
    text-align: right;
}

/* --- Results Grid and Items --- */
.wmvw-results {
    margin-top: 35px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.wmvw-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wmvw-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.wmvw-item-error {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

.wmvw-item video {
    width: 100%;
    max-height: 280px;
    border-radius: 10px;
    margin-top: 10px;
    background-color: #f3f4f6;
}

.wmvw-item .button {
    margin-top: 10px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #4b5563;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}

.wmvw-item .button:hover {
    background: #e5e7eb;
}

/* --- Responsive Layout --- */
@media (max-width: 768px) {
    .wmvw-wrap {
        margin: 10px auto;
        padding: 20px;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .wmvw-inline {
        flex-direction: column;
        gap: 15px;
    }

    .wmvw-form .button.button-primary {
        width: 100%;
        box-sizing: border-box;
    }

    .wmvw-results {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
