:root {
    --wpvr-primary: #6C63FF;
    --wpvr-green: #239654;
    --wpvr-white: #ffffff;
    --wpvr-text-dark: #333333;
    --wpvr-text-light: #6c757d;
    --wpvr-border: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--wpvr-text-dark);
    background: #f6f4ff;
    overflow-x: hidden;
}

#onboarding-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    position: relative;
}

/* Steps Container - 1170px white container with sidebar and content */
.steps-container {
    display: none;
    width: 100%;
    max-width: 1170px;
    background: var(--wpvr-white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 40px auto;
    /* min-height: calc(100vh - 80px); */
    position: relative;
}

#onboarding-app.sidebar-visible .steps-container {
    display: flex;
}

#onboarding-app.sidebar-visible .main-content-welcome {
    display: none;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: #FBFAFF;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    flex-shrink: 0;
    border-right: 1px solid #E5E5E5;
}

/* Vertical border - not full height */
.sidebar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    bottom: 15%;
    width: 1px;
}

.logo {
    margin-bottom: 40px;
    padding: 20px 20px 20px 20px;
    margin-left: -20px;
    margin-right: -20px;
    border-bottom: 1px solid #E5E5E5;
    text-align: center;
}

.logo-img {
    max-width: 180px;
    height: auto;
    display: inline-block;
}

.logo span {
    color: var(--wpvr-primary);
}

.nav-steps {
    flex: 1;
    padding-right: 30px;
    padding-left: 50px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    color: #76708c;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
}

.nav-item::before {
    content: attr(data-number);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--wpvr-text-light);
    border-radius: 50%;
    margin-right: 12px;
    color: var(--wpvr-text-light);
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: #3f04fe;
    font-weight: 500;
    background: #FFFFFF;
    padding: 9px 11px;
    border-radius: 40px;
    margin-left: -15px;
    width: 200px;
    height: 42px;
    border: 1px solid #F1EEFF;
    gap: 10px;
}

.nav-item.active::before {
    background-color: var(--wpvr-primary);
    color: var(--wpvr-white);
    border-color: var(--wpvr-primary);
}

.nav-item.completed {
    color: var(--wpvr-green);
}

/* .nav-item.completed::before {
    content: '✓';
    background-color: var(--wpvr-green);
    color: var(--wpvr-white);
    border-color: var(--wpvr-green);
} */


.nav-item.completed::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--wpvr-green);
    border-color: var(--wpvr-green);

    /* SVG as data URI */
    background-image: url("data:image/svg+xml,%3Csvg width='11' height='7' viewBox='0 0 11 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.86765 0.315308C9.55824 0.0282706 9.05582 0.0284515 8.74601 0.315308L3.69788 4.9925L1.4542 2.91379C1.14438 2.62675 0.64218 2.62675 0.332366 2.91379C0.0225527 3.20082 0.0225527 3.66611 0.332366 3.95314L3.13684 6.55144C3.29165 6.69487 3.49465 6.76676 3.69766 6.76676C3.90067 6.76676 4.10386 6.69505 4.25867 6.55144L9.86765 1.35465C10.1775 1.06781 10.1775 0.602326 9.86765 0.315308Z' fill='white'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: center;
    background-size: auto;
}


.nav-item.completed .nav-text {
    color: #6D667D;
}

.version-tag {
    margin-top: auto;
    font-size: 12px;
    color: #9CA3AF;
    line-height: 1.5;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--wpvr-border);
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
}

.main-content-welcome {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.main-content-steps {
    /* padding: 40px; */

    padding: 40px 40px 0;
    position: relative;
}

.step {
    display: none;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out;
}

.step:not(#step-welcome) {
    padding: 0;
}

.step.active {
    display: block;
    opacity: 1;
}

.step.full-width {
    padding: 0;
    max-width: none;
    width: 100%;
}

.step-indicator {
    font-size: 12px;
    font-weight: 600;
    color: var(--wpvr-text-light);
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.step-indicator.centered {
    font-weight: 400;
    font-size: 14px;
    line-height: 15.6px;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    color: #6D667D;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Welcome Step */
.step#step-welcome {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.step#step-welcome .welcome-container {
    background: var(--wpvr-white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 960px;
    width: 100%;
    overflow: hidden;
}

.step#step-welcome .welcome-top {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid #e8e8f0;
}

.step#step-welcome .welcome-bottom {
    padding: 81px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fbfaff;
}

.step#step-welcome .consent-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    font-size: 13px;
    color: var(--wpvr-text-light);
    cursor: pointer;
}

.step#step-welcome .consent-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--wpvr-primary);
    cursor: pointer;
}

.step#step-welcome .consent-label span {
    line-height: 1.4;
}

.step#step-welcome .logo-img {
    width: 120px;
    height: auto;
    margin-bottom: 30px;
}

.step#step-welcome .step-label {
    font-size: 14px;
    font-weight: 400;
    line-height: 15.6px;
    color: #6D667D;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.step#step-welcome .hero-title {
    font-size: 32px;
    font-weight: 600;
    color: #3F04FE;
    margin-bottom: 7px;
    line-height: 80px;
    letter-spacing: 0%;
    text-align: center;
}

.step#step-welcome .hero-sub {
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 0%;
    text-align: center;
    color: #6D667D;
    margin-bottom: 40px;
}

.step#step-welcome .welcome-checklist {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    list-style: none;
}

.step#step-welcome .welcome-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--wpvr-text-dark);
}

.step#step-welcome .welcome-checklist li span {
    font-weight: 500;
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 0%;
    color: #0E003C;
}

.step#step-welcome .welcome-checklist li svg {
    flex-shrink: 0;
}

.step#step-welcome .btn-primary {
    height: 60px;
    padding: 16px 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #3F04FE;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 2%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step#step-welcome .btn-primary:hover {
    background-color: #5a52d5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.3);
}

.step#step-welcome .upload-link {
    font-size: 14px;
    color: var(--wpvr-text-light);
    text-decoration: underline;
    cursor: pointer;
    margin-top: 16px;
    display: inline-block;
}

.step#step-welcome .upload-link:hover {
    color: var(--wpvr-primary);
}

/* Steps 2-5: Layout within white container */
.step:not(#step-welcome) {
    background: transparent;
    max-width: none;
    margin: 0;
    /* padding: 20px 0; */
    border-radius: 0;
    box-shadow: none;
}

/* Section Title and Sub */
.section-title {
    font-size: 32px;
    font-weight: 600;
    color: #3F04FE;
    margin-bottom: 7px;
    line-height: 80px;
    letter-spacing: 0%;
    text-align: center;
}

.section-sub {
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 0%;
    text-align: center;
    color: #6D667D;
    padding-bottom: 25px;
}

/* UI Components */
.btn-primary {
    height: 50px;
    padding: 11px 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #3F04FE;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 2%;
    border: none;
    opacity: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #5a52d5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.3);
}

.btn-primary.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.95;
    padding-left: 46px;
}

.btn-primary.is-loading::before,
.btn-primary-outline.is-loading::before,
.next-btn.is-loading::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wpvrSpin 0.8s linear infinite;
}

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

.btn-primary-outline {
    height: 50px;
    padding: 11px 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #3F04FE;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 2%;
    border: none;
    opacity: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-outline:hover {
    background-color: var(--wpvr-primary);
    color: var(--wpvr-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.3);
}

/* Cards */
.vertical-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 40px;
    max-height: none;
    overflow-y: visible;
    padding: 1px 0 0 1px;
    max-width: 690px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 2000px) {
    .vertical-selection-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.v-card {
    width: calc(100% + 1px);
    height: 161px;
    padding: 20px 16px;
    border: 1px solid var(--wpvr-border);
    border-radius: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: -1px 0 0 -1px;
}

.v-card:hover {
    border-color: var(--wpvr-primary);
    transform: none;
    box-shadow: none;
    z-index: 1;
}

.v-card.active {
    background: var(--wpvr-primary);
    color: white;
    border-color: var(--wpvr-primary);
    z-index: 2;
}

.v-card h3 {
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: -1%;
    color: #76708C;
    margin: 27px 0 0 0;
}

.v-card.active h3 {
    color: white;
}

.v-card p {
    font-size: 13px;
    color: var(--wpvr-text-light);
    margin: 8px 0 0 0;
    line-height: 1.4;
    display: none;
}

.v-card.active p {
    color: rgba(255, 255, 255, 0.8);
    display: none;
}

.v-icon {
    font-size: 36px;
    margin-bottom: 0;
    line-height: 1;
}

/* Footer */
.onboarding-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    margin: 0 -40px;
    background: #FBFAFF;
    border-top: 1px solid #ede9ff;
}

.template-footer {
    /* Only back button, no justify-content space-between needed visually, but flex is fine */
}

.footer-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-back {
    background: transparent;
    border: none;
    color: #6D667D;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    height: auto;
    padding: 8px 12px;
}

.btn-back svg {
    flex-shrink: 0;
}

.btn-back:hover {
    color: var(--wpvr-primary);
}

.btn-back:hover svg path {
    stroke: var(--wpvr-primary);
}

/* Next Button - Primary filled style */
.next-btn,
.btn-primary-outline.next-btn {
    height: auto;
    padding: 10px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #3F04FE;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    border: none;
    border-radius: 6px;
    opacity: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-btn:hover,
.btn-primary-outline.next-btn:hover {
    background-color: #5a52d5;
    border-color: #5a52d5;
    color: var(--wpvr-white);
}

/* Next Button Disabled State */
.next-btn:disabled,
.next-btn.disabled,
.btn-primary-outline.next-btn:disabled {
    background-color: #ccc;
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Publish Button - No fixed width */
#publish-btn {
    width: auto;
}

/* Skip Button - Outside white container, aligned with right edge */
.btn-skip {
    position: absolute;
    top: -30px;
    right: -13px;
    background: transparent;
    border: none;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 30px;
    letter-spacing: 0%;
    text-align: right;
    color: #6D667D;
    cursor: pointer;
    z-index: 1000;
    padding: 0px 14px;
    transition: color 0.3s ease;
}

.btn-skip:hover {
    color: var(--wpvr-primary);
}

/* Template Container Styles */
.template-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 102px;
}

.template-preview-box {
    width: 100%;
    max-width: 800px;
    background: #f0eeff;
    border-radius: 16px;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.icon-placeholder {
    font-size: 64px;
    margin-bottom: 10px;
}

.template-preview-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.template-preview-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--wpvr-text-dark);
}

.template-preview-desc {
    font-size: 14px;
    color: var(--wpvr-text-light);
    max-width: 400px;
}

.template-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

#use-template-btn {
    height: 60px;
    border: 1px solid #3F04FE;
    border-radius: 10px;
    opacity: 1;
    background-color: transparent;
    color: #3F04FE;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#use-template-btn:hover {
    background-color: #3F04FE;
    color: #ffffff;
}

.upload-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--wpvr-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.upload-link:hover {
    text-decoration: underline;
}

/* Upload/Drop Zone Styles */
.upload-section {
    width: 692px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-section-label {
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.01em;
    text-align: center;
    color: #333333;
    cursor: pointer;
    margin-top: 8px;
}

.drop-zone {
    background: #ffffff;
    border: 1px dashed #6D667D;
    border-radius: 10px;
    width: 100%;
    height: 299px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
}

.drop-zone:hover {
    background: #f8f8ff;
    border-color: #5a52d5;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.drop-zone-text {
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 28px;
    letter-spacing: 0%;
    text-align: center;
    color: #6D667D;
}

.drop-zone-link {
    font-weight: 600;
    font-style: normal;
    font-size: 14px;
    line-height: 28px;
    letter-spacing: 0%;
    text-align: center;
    text-decoration: underline;
    text-decoration-style: solid;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    text-decoration-skip-ink: auto;
    color: #3F04FE;
    cursor: pointer;
}

.drop-zone-hint {
    font-size: 13px;
    color: var(--wpvr-text-light);
}

/* Upload Preview */
.upload-preview {
    width: 100%;
}

.upload-preview-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8f8ff;
    border-radius: 8px;
    border: 1px solid var(--wpvr-border);
}

.upload-preview-content img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.upload-preview-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
}

.upload-preview-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--wpvr-text-dark);
    text-align: left;
}

.btn-remove-upload {
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.btn-remove-upload:hover {
    text-decoration: underline;
}

/* Tour Preview Window */
.tour-preview-window {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Shortcode Instructions Section */
.shortcode-instructions {
    width: 692px;
    margin: 10px auto;
    padding: 24px;
    background: #E8E1FF;
    border: 1px solid #E8E1FF;
    border-radius: 10px;
    text-align: left;
}

.shortcode-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.shortcode-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    color: #333333;
}

.shortcode-description {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #6d667d;
    line-height: 1.5;
}

.shortcode-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
}

.shortcode-code {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: -0.01em;
    color: #3F04FE;
    user-select: all;
}

.btn-copy-shortcode {
    width: 167px;
    height: 40px;
    padding: 0;
    background: #E8E1FF;
    border: 1px solid #E8E1FF;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 0.02em;
    text-align: center;
    color: #333333;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    opacity: 1;
}

.btn-copy-shortcode:hover {
    background: #F9F7FF;
    border-color: #3F04FE;
}

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

/* Edit Tour Button */
.edit-tour-container {
    text-align: right;
    margin: 0 auto 16px;
    width: 692px;
    max-width: 100%;
    padding-top: 8px;
    padding-bottom: 0;
}

.btn-edit-tour {
    display: inline-block;
    background-color: #ffffff;
    color: #3F04FE;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.01em;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit-tour:hover {
    background-color: #f8f6ff;
    transform: translateY(-1px);
}

/* Go to Listing Button - Success Step */
#step-success .footer-right .btn-primary-outline {
    background: #3F04FE;
    color: #ffffff;
    border-color: #3F04FE;
}

#step-success .footer-right .btn-primary-outline:hover {
    background: #5a52d5;
    border-color: #5a52d5;
    color: #ffffff;
}

#panorama-container,
.image-placeholder {
    width: 100%;
    height: 450px;
    background: #f0eeff;
    position: relative;
}

#panorama {
    width: 100%;
    height: 100%;
}

.preview-controls {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 14px;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.preview-controls span {
    font-size: 11px;
    color: var(--wpvr-text-dark);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Hotspot Modal Styles */
.hotspot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.hotspot-modal-content {
    background: var(--wpvr-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hotspot-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--wpvr-border);
}

.hotspot-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--wpvr-text-dark);
}

.hotspot-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--wpvr-text-light);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.hotspot-modal-close:hover {
    color: var(--wpvr-text-dark);
}

.hotspot-modal-body {
    padding: 24px;
}

.hotspot-modal-body label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--wpvr-text-dark);
    margin-bottom: 8px;
}

.hotspot-modal-body input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--wpvr-border);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hotspot-modal-body input[type="text"]:focus {
    border-color: var(--wpvr-primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.hotspot-modal-body input[type="text"]::placeholder {
    color: var(--wpvr-text-light);
}

.hotspot-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.hotspot-modal-actions .btn-secondary {
    background: transparent;
    color: var(--wpvr-text-light);
    border: 1px solid var(--wpvr-border);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hotspot-modal-actions .btn-secondary:hover {
    background: #f5f5f5;
    color: var(--wpvr-text-dark);
}

.hotspot-modal-actions .btn-primary {
    background: var(--wpvr-primary);
    color: var(--wpvr-white);
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hotspot-modal-actions .btn-primary:hover {
    background: #5a52d5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

/* ========================================
   HOTSPOT LIST
   ======================================== */

.hotspot-list {
    margin-top: 16px;
    padding-bottom: 10px;
}

.hotspot-list-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--wpvr-text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hotspot-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.hotspot-item {
    display: inline-flex;
    align-items: center;
    background: #f8f7ff;
    border: 1px solid #e8e4fd;
    border-radius: 20px;
    padding: 5px 10px 5px 12px;
    font-size: 13px;
    color: var(--wpvr-text-dark);
    white-space: nowrap;
}

.hotspot-item-text {
    white-space: nowrap;
}

.hotspot-item-remove {
    flex-shrink: 0;
    margin-left: 8px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.hotspot-item-remove:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* ========================================
   PREMIUM POPUP — wizard-page override
   (the popup is fixed but the wizard has no
    WP admin sidebar, so use full viewport width)
   ======================================== */

#wpvr_premium_feature_popup.wpvr-premium-feature {
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
}

#wpvr_premium_feature_popup .wpvr-premium-feature__subheading {
    max-width: 485px;
    padding: 0 30px;
}

#wpvr_premium_feature_popup .wpvr-premium-feature__wrapper {
    max-width: 580px;
}

#wpvr_premium_feature_popup .wpvr-premium-feature__subheading p {
    margin: 0 0 8px;
}

#wpvr_premium_feature_popup .wpvr-premium-feature__subheading p:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    #wpvr_premium_feature_popup.wpvr-premium-feature {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
    }

    #wpvr_premium_feature_popup .wpvr-premium-feature__wrapper {
        max-width: 100%;
        margin-top: 20px;
    }

    #wpvr_premium_feature_popup .wpvr-premium-feature__body {
        padding: 24px 16px;
    }

    #wpvr_premium_feature_popup .wpvr-premium-feature__subheading {
        max-width: 100%;
        padding: 0 10px;
    }

    #wpvr_premium_feature_popup .wpvr-premium-feature__btn-area {
        padding-top: 24px;
        margin-top: 20px;
        gap: 10px;
    }

    #wpvr_premium_feature_popup .wpvr-premium-feature__discount-price {
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }

    #wpvr_premium_feature_popup .wpvr-premium-feature__btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }

    #wpvr_premium_feature_popup .wpvr-premium-feature__heading {
        font-size: 18px;
    }
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Large Tablets and Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    .steps-container {
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .sidebar {
        width: 220px;
        padding: 20px 15px;
    }

    .logo-img {
        max-width: 140px;
    }

    .nav-item {
        font-size: 14px;
    }

    .nav-item::before {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .main-content-steps {
        padding: 30px;
    }

    .onboarding-footer {
        margin: 0 -30px;
        padding: 30px;
    }

    .vertical-selection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .v-card {
        width: calc(100% + 1px);
        height: 161px;
        padding: 20px 12px;
        border-radius: 0;
    }

    .v-card h3 {
        font-size: 14px;
    }

    .v-card:hover {
        transform: none;
        box-shadow: none;
    }

    .v-icon {
        font-size: 40px;
    }

    .section-title {
        font-size: 24px;
        font-weight: 600;
        color: #3F04FE;
        line-height: 60px;
        letter-spacing: 0%;
        text-align: center;
    }

    .tour-preview-window {
        max-width: 100%;
    }

    #panorama-container,
    .image-placeholder {
        height: 350px;
    }

    /* Shortcode Section - Small Desktop/Large Tablet */
    .shortcode-instructions {
        width: auto;
        max-width: 620px;
    }

    .edit-tour-container {
        width: auto;
        max-width: 620px;
        padding-bottom: 150px;
    }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        margin: 10px;
        max-width: calc(100% - 20px);
        min-height: auto;
    }

    .sidebar {
        width: 100%;
        padding: 15px 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .sidebar::after {
        display: none;
    }

    .logo {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .logo-img {
        max-width: 100px;
    }

    .nav-steps {
        display: flex;
        flex-direction: row;
        gap: 5px;
        flex: none;
    }

    .nav-item {
        padding: 8px;
        gap: 6px;
        font-size: 0;
    }

    .nav-item .nav-text {
        display: none;
    }

    .nav-item::before {
        margin-right: 0;
        width: 24px;
        height: 24px;
    }

    .nav-item.active {
        margin-left: 0;
        width: auto;
        padding: 8px;
        border-radius: 50%;
    }

    .version-tag {
        display: none;
    }

    .main-content-steps {
        padding: 20px;
    }

    .main-content-welcome {
        padding: 20px;
    }

    .step#step-welcome .welcome-container {
        max-width: 100%;
    }

    .step#step-welcome .welcome-top {
        padding: 40px 25px;
    }

    .step#step-welcome .welcome-bottom {
        padding: 54px 25px;
    }

    .step#step-welcome .consent-label {
        margin-top: 35px;
    }

    .step#step-welcome .hero-title {
        font-size: 24px;
        font-weight: 600;
        color: #3F04FE;
        line-height: 60px;
        letter-spacing: 0%;
        text-align: center;
    }

    .step#step-welcome .hero-sub {
        font-weight: 400;
        font-size: 14px;
        line-height: 26px;
        letter-spacing: 0%;
        text-align: center;
        color: #6D667D;
        margin-bottom: 30px;
    }

    .step#step-welcome .welcome-checklist {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .step#step-welcome .welcome-checklist li {
        font-size: 14px;
    }

    .section-title {
        font-size: 22px;
        font-weight: 600;
        color: #3F04FE;
        line-height: 55px;
        letter-spacing: 0%;
        text-align: center;
    }

    .section-sub {
        font-weight: 400;
        font-size: 14px;
        line-height: 26px;
        letter-spacing: 0%;
        text-align: center;
        color: #6D667D;
        margin-bottom: 30px;
    }

    .vertical-selection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        max-height: none;
    }

    .v-card {
        width: calc(100% + 1px);
        height: 151px;
        padding: 18px 12px;
        border-radius: 0;
    }

    .v-card:hover {
        transform: none;
        box-shadow: none;
    }

    .v-icon {
        font-size: 36px;
        margin-bottom: 0;
    }

    .v-card h3 {
        font-size: 13px;
    }

    .template-preview-box {
        padding: 40px 25px;
    }

    #panorama-container,
    .image-placeholder {
        height: 300px;
    }

    .onboarding-footer {
        flex-direction: column-reverse;
        gap: 20px;
        padding: 20px;
        margin: 0 -20px;
    }

    .footer-right {
        width: 100%;
        justify-content: center;
    }

    .btn-back {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 12px;
        border: 1px solid var(--wpvr-border);
        border-radius: 4px;
    }

    .btn-skip {
        position: static;
        margin-bottom: 10px;
    }

    .hotspot-modal-content {
        max-width: calc(100% - 40px);
        margin: 0 20px;
    }

    .drop-zone {
        padding: 40px 25px;
    }

    .upload-preview-content {
        flex-direction: column;
        text-align: center;
    }

    /* Shortcode Section - Tablet */
    .shortcode-instructions {
        width: auto;
        max-width: 100%;
        margin: 30px 20px;
    }

    .edit-tour-container {
        width: auto;
        max-width: 100%;
        margin: 0 20px 24px;
        padding-bottom: 100px;
    }

    .shortcode-box {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .btn-copy-shortcode {
        width: 100%;
    }
}

/* Mobile (max-width: 576px) */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .steps-container {
        margin: 0;
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
    }

    .sidebar {
        padding: 12px 15px;
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--wpvr-white);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .logo-img {
        max-width: 80px;
    }

    .nav-item::before {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .main-content-steps {
        padding: 15px;
    }

    .main-content-welcome {
        padding: 15px;
    }

    .step#step-welcome .welcome-top {
        padding: 30px 20px;
    }

    .step#step-welcome .welcome-bottom {
        padding: 40px 20px;
    }

    .step#step-welcome .consent-label {
        margin-top: 25px;
        font-size: 12px;
    }

    .step#step-welcome .logo-img {
        width: 80px;
        margin-bottom: 20px;
    }

    .step#step-welcome .hero-title {
        font-size: 20px;
        font-weight: 600;
        color: #3F04FE;
        line-height: 50px;
        letter-spacing: 0%;
        text-align: center;
    }

    .step#step-welcome .hero-sub {
        font-weight: 400;
        font-size: 13px;
        line-height: 24px;
        letter-spacing: 0%;
        text-align: center;
        color: #6D667D;
    }

    .step#step-welcome .btn-primary {
        width: 100%;
        padding: 14px 20px;
    }

    .section-title {
        font-size: 18px;
        font-weight: 600;
        color: #3F04FE;
        line-height: 45px;
        letter-spacing: 0%;
        text-align: center;
    }

    .section-sub {
        font-weight: 400;
        font-size: 13px;
        line-height: 24px;
        letter-spacing: 0%;
        text-align: center;
        color: #6D667D;
        margin-bottom: 20px;
    }

    .step-indicator {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .vertical-selection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        max-height: none;
    }

    .v-card {
        width: calc(100% + 1px);
        height: 141px;
        padding: 16px 10px;
        justify-content: center;
        border-radius: 0;
    }

    .v-card:hover {
        transform: none;
        box-shadow: none;
    }

    .v-icon {
        font-size: 32px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .v-card h3 {
        font-size: 12px;
        margin: 10px 0 0 0;
    }

    .template-preview-box {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .icon-placeholder {
        font-size: 48px;
    }

    .template-preview-title {
        font-size: 18px;
    }

    .template-preview-desc {
        font-size: 13px;
    }

    #panorama-container,
    .image-placeholder {
        height: 250px;
    }

    .tour-preview-window {
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .preview-controls {
        padding: 6px 10px;
        gap: 12px;
    }

    .preview-controls span {
        font-size: 10px;
    }

    .onboarding-footer {
        margin: 20px -15px 0;
        padding: 15px;
    }

    .btn-primary,
    .btn-primary-outline {
        padding: 12px 20px;
        font-size: 13px;
        width: 100%;
    }

    .footer-right {
        flex-direction: column;
        gap: 10px;
    }

    .drop-zone {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .upload-section-label {
        font-size: 14px;
        line-height: 20px;
        margin-top: 6px;
    }

    .drop-zone-icon {
        font-size: 36px;
    }

    .drop-zone-text {
        font-size: 13px;
        line-height: 24px;
    }

    .hotspot-modal-content {
        max-width: calc(100% - 20px);
        margin: 0 10px;
    }

    .hotspot-modal-header {
        padding: 16px 20px;
    }

    .hotspot-modal-body {
        padding: 20px;
    }

    .hotspot-modal-actions {
        flex-direction: column;
    }

    .hotspot-modal-actions .btn-secondary,
    .hotspot-modal-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Shortcode Section - Mobile */
    .shortcode-instructions {
        width: auto;
        max-width: 100%;
        margin: 20px 15px;
        padding: 20px;
    }

    .shortcode-title {
        font-size: 16px;
    }

    .shortcode-description {
        font-size: 13px;
    }

    .shortcode-box {
        flex-direction: column;
        gap: 12px;
        padding: 14px 16px;
    }

    .shortcode-code {
        font-size: 14px;
        word-break: break-all;
    }

    .btn-copy-shortcode {
        width: 100%;
        height: 40px;
        padding: 0;
    }

    .edit-tour-container {
        width: auto;
        max-width: 100%;
        margin: 0 15px 24px;
        padding-bottom: 60px;
    }

    .btn-edit-tour {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
    .step#step-welcome .hero-title {
        font-size: 18px;
        font-weight: 600;
        color: #3F04FE;
        line-height: 45px;
        letter-spacing: 0%;
        text-align: center;
    }

    .step#step-welcome .welcome-checklist {
        gap: 12px;
    }

    .step#step-welcome .welcome-checklist li {
        font-size: 13px;
    }

    .nav-item::before {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .section-title {
        font-size: 16px;
        font-weight: 600;
        color: #3F04FE;
        line-height: 40px;
        letter-spacing: 0%;
        text-align: center;
    }

    #panorama-container,
    .image-placeholder {
        height: 200px;
    }
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Custom additions for 11-point feedback implementation */
.skip-industry-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.skip-link {
    color: #3F04FE;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

.custom-upload-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: #FAFAFA;
    border: 1px dashed #E5E7EB;
    border-radius: 8px;
    width: 100%;
}

.wizard-consent-block {
    max-width: 692px;
    margin: 0 auto 16px;
    padding: 14px 16px;
    background: #F8F9FA;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    text-align: left;
}

.wizard-consent-block .consent-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.wizard-consent-block .consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

/* ── Template Step Redesign ─────────────────────────────────────── */
.template-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.template-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 48px 32px;
    border: 2px dashed #c0b8f0;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.template-upload-zone:hover {
    border-color: #3F04FE;
    background: #faf8ff;
}

.template-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.template-upload-label {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    text-align: center;
}

.template-upload-hint {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    text-align: center;
}

.template-browse-link {
    color: #3F04FE;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.template-browse-link:hover {
    color: #2a00c0;
}

.template-upload-supported {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
    text-align: center;
}

.template-cta-row {
    width: 100%;
}

.btn-use-template {
    display: block;
    width: 100%;
    padding: 18px 32px;
    background: #fff;
    border: 2px solid #3F04FE;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #3F04FE;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-use-template:hover {
    background: #3F04FE;
    color: #fff;
}

.btn-use-template:disabled,
.btn-use-template.is-loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Step Progress Bar ──────────────────────────────────────────── */
.step-progress {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin-bottom: 28px;
}

.step-seg {
    height: 5px;
    width: 72px;
    border-radius: 10px;
    background: #e0dcf5;
    transition: background 0.3s ease;
}

.step-seg.filled {
    background: #3F04FE;
}

.step-count {
    margin-left: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    white-space: nowrap;
}

/* Template container full-width layout: zone + button same width */
.template-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.template-upload-zone,
.template-cta-row,
.btn-use-template {
    width: 100%;
    box-sizing: border-box;
}