/* =========================================================
   Josh Model Configurator – Inner UI Card
   ========================================================= */

body.page-template-page-model-configurator .model-configurator {
    position: relative;
    max-width: 900px;
    margin: 80px auto;
    padding: 60px 32px;
    text-align: center;

    /* INNER RAINBOW / AURORA GRADIENT */
    background: linear-gradient(
        120deg,
        rgba(255, 90, 90, 0.45),
        rgba(90, 170, 255, 0.45),
        rgba(170, 90, 255, 0.45),
        rgba(90, 255, 210, 0.45)
    );
    background-size: 300% 300%;
    animation: josh-card-gradient 18s ease infinite;

    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

/* Gradient motion */
@keyframes josh-card-gradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =========================================================
   TITLE
   ========================================================= */

body.page-template-page-model-configurator .model-configurator h1 {
    margin-bottom: 36px;
    font-size: 2.6rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

/* =========================================================
   OPTIONS
   ========================================================= */

#config-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;       /* ✅ FIX: centers wrapped rows */
    gap: 22px;

    max-width: 1100px;           /* ✅ keeps rows balanced */
    margin: 0 auto;
}

#config-options button {
    width: 200px;                /* ✅ consistent sizing */
    max-width: 100%;

    padding: 18px 26px;
    font-size: 1.05rem;
    font-weight: 600;

    border-radius: 16px;
    border: none;
    cursor: pointer;

    background: rgba(255,255,255,0.95);
    color: #111;

    box-shadow: 0 10px 26px rgba(0,0,0,0.2);
    transition: all 0.25s ease;
}

#config-options button:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.3);
}

#config-options button.active {
    background: #111;
    color: #fff;
}

/* =========================================================
   RESULT PANEL
   ========================================================= */

#config-result {
    margin-top: 48px;
    padding: 28px;
    border-radius: 18px;

    background: rgba(0,0,0,0.65);
    color: #ffffff;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {
    body.page-template-page-model-configurator .model-configurator {
        margin: 40px 16px;
        padding: 40px 20px;
    }

    #config-options button {
        width: 100%;
    }
}
