/* --- Coworking Pricing Configurator ---
   Design aliniat cu shortcode-ul coworking_pricing_table:
   card intunecat cu contur gradient, butoane gradient, font Inter. */

.fablab-configurator-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px;
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
    background:
        linear-gradient(var(--e-global-color-9a6815b), var(--e-global-color-9a6815b)) padding-box,
        linear-gradient(252.69deg, #18AB50 1.05%, #C43E82 54.35%, #0CB0D0 99.45%) border-box;
    border: 2px solid transparent;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);

    /* Culoarea reprezentativa a locatiei selectate (implicit Fab Lab 1) */
    --loc-accent: #19A89F;
    --loc-accent-bg: rgba(25, 168, 159, 0.12);
}

.fablab-configurator-wrapper[data-location="Fab Lab 2"] {
    --loc-accent: #00ABEC;
    --loc-accent-bg: rgba(0, 171, 236, 0.12);
}

.fablab-configurator-wrapper[data-location="Fab Central"] {
    --loc-accent: #F5851F;
    --loc-accent-bg: rgba(245, 133, 31, 0.12);
}

.configurator-columns {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2.5rem;
    align-items: start;
}

.configurator-main {
    min-width: 0;
}

.configurator-step {
    margin-bottom: 2rem;
}

.configurator-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #ffffff;
}

.location-buttons,
.type-toggle,
.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* --- Butoane locatie: fiecare Fab tintat cu propria culoare de brand --- */
.loc-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #19A89F;
    background: transparent;
    color: #d1d5db;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
}

.loc-btn[data-location="Fab Lab 1"] {
    border-color: #19A89F;
}

.loc-btn[data-location="Fab Lab 2"] {
    border-color: #00ABEC;
}

.loc-btn[data-location="Fab Central"] {
    border-color: #F5851F;
}

.loc-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.loc-btn.active {
    background: linear-gradient(252.69deg, #18AB50 1.05%, #C43E82 54.35%, #0CB0D0 99.45%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- Toggle tip serviciu: gradientul universal de brand (Coworking / Rooms) --- */
.type-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid #19A89F;
    background: transparent;
    color: #d1d5db;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
}

.type-btn:hover {
    background: rgba(25, 168, 159, 0.12);
    color: #ffffff;
}

.type-btn.active {
    background: linear-gradient(252.69deg, #18AB50 1.05%, #C43E82 54.35%, #0CB0D0 99.45%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- Lista de servicii --- */
.service-list {
    flex-direction: column;
    gap: 0.75rem;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-item:hover {
    border-color: var(--loc-accent);
    background: var(--loc-accent-bg);
}

.service-item.active {
    border-color: var(--loc-accent);
    background: var(--loc-accent-bg);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.service-name {
    font-weight: 500;
    color: #f1f5f9;
}

.service-price {
    font-weight: 700;
    color: #d1d5db;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.service-item:hover .service-price,
.service-item.active .service-price {
    color: var(--loc-accent);
}

/* --- Coloana de preview a serviciului selectat --- */
.configurator-preview {
    position: sticky;
    top: 24px;
}

.preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 2rem;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #94a3b8;
    text-align: center;
    font-size: 0.95rem;
}

.preview-card {
    background:
        linear-gradient(var(--e-global-color-9a6815b), var(--e-global-color-9a6815b)) padding-box,
        linear-gradient(252.69deg, #18AB50 1.05%, #C43E82 54.35%, #0CB0D0 99.45%) border-box;
    border: 1px solid var(--loc-accent);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease;
}

.preview-header {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.preview-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.preview-price {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
}

#price-value {
    color: var(--loc-accent);
    transition: color 0.2s ease;
}

.fablab-price-note {
    font-size: 0.75rem;
    font-weight: 400;
    color: #ffffff;
    margin-top: 6px;
}

.preview-description {
    flex-grow: 1;
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.preview-description p {
    margin: 0 0 0.75rem 0;
}

.preview-description p:last-child {
    margin-bottom: 0;
}

.preview-footer {
    margin-top: auto;
}

/* --- Butoane CTA: aceeasi tratare ca .fablab-pricing-btn din pricing table --- */
#cta-container button,
#cta-container form button {
    display: block;
    width: 100%;
    padding: 14px 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: inherit;
    transition: background-position 0.6s ease-in-out, transform 0.1s ease;
}

.buy-btn,
.contract-btn {
    background: linear-gradient(252.69deg, #18AB50 1.05%, #C43E82 54.35%, #0CB0D0 99.45%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.buy-btn:hover,
.contract-btn:hover {
    background-position: 100% 50%;
}

#cta-container button:active,
#cta-container form button:active {
    transform: scale(0.98);
}

.success-message {
    padding: 1rem;
    background: rgba(74, 222, 128, 0.1);
    color: #86efac;
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

/* --- Contract Modal --- */
.contract-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.contract-modal-content {
    background: var(--e-global-color-9a6815b);
    background-image:
        linear-gradient(var(--e-global-color-9a6815b), var(--e-global-color-9a6815b)),
        linear-gradient(252.69deg, #18AB50 1.05%, #C43E82 54.35%, #0CB0D0 99.45%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    color: #f1f5f9;
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #C43E82;
}

/* --- Contract Form --- */
.fablab-contract-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fablab-contract-form h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    color: #ffffff;
}

.fablab-contract-form fieldset {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1rem;
    margin: 0;
}

.fablab-contract-form legend {
    font-weight: 600;
    color: #ffffff;
    padding: 0 0.5rem;
}

.fablab-contract-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-weight: 500;
    color: #d1d5db;
}

.gdpr-consent-label {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 0.6rem !important;
}

.gdpr-consent-label input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    accent-color: #19A89F;
}

.fablab-contract-form input,
.fablab-contract-form select {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    font-family: inherit;
}

.fablab-contract-form input:focus,
.fablab-contract-form select:focus {
    outline: none;
    border-color: #19A89F;
    box-shadow: 0 0 0 3px rgba(25, 168, 159, 0.15);
}

.submit-btn {
    padding: 14px 12px;
    background: linear-gradient(252.69deg, #18AB50 1.05%, #C43E82 54.35%, #0CB0D0 99.45%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: inherit;
    transition: background-position 0.6s ease-in-out, transform 0.1s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-position: 100% 50%;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 960px) {
    .configurator-columns {
        grid-template-columns: 1fr;
    }

    .configurator-preview {
        position: static;
    }
}

@media (max-width: 640px) {
    .fablab-configurator-wrapper {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .configurator-step h3 {
        font-size: 1rem;
    }

    .location-buttons,
    .type-toggle {
        gap: 0.5rem;
    }

    .loc-btn,
    .type-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .preview-header {
        text-align: center;
    }

    .contract-modal-content {
        padding: 1.5rem;
    }
}