/* Visa Wizard Frontend Styles */

.visa-wizard-elementor-widget {
    width: 100%;
    display: flex;
    justify-content: center;
}

.wizard-container {
    width: 100%;
    background: white;
    border-radius: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: #f9fafb;
}

.progress-bar {
    height: 100%;
    background: #2563eb;
    transition: width 1s ease-out;
}

.header-indicator {
    position: absolute;
    top: 32px;
    right: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sequence-label {
    font-size: 10px;
    font-weight: 900;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.step-counter {
    background: #eff6ff;
    color: #2563eb;
    font-family: monospace;
    font-weight: 900;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid #dbeafe;
}

.content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 80px;
}

@media (max-width: 1024px) {
    .content-container {
        padding: 40px 48px;
    }
}

@media (max-width: 768px) {
    .content-container {
        padding: 48px 20px;
    }
}

.slide-content {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.title {
    font-size: 30px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
    text-align: center;
}

.title-large {
    font-size: 60px;
    font-weight: 900;
    letter-spacing: -2px;
}

.subtitle {
    color: #6b7280;
    margin-bottom: 40px;
    text-align: center;
    max-width: 448px;
    margin-left: auto;
    margin-right: auto;
}

/* Layouts */
.vw-layout-grid .vw-grid-2,
.vw-layout-grid .vw-grid-4,
.vw-layout-grid .vw-grid-5,
.vw-layout-grid .vw-grid-6 {
    display: grid;
    gap: 16px;
    width: 100%;
}

.vw-layout-grid .vw-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
}

.vw-layout-grid .vw-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.vw-layout-grid .vw-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1100px) {

    .vw-layout-grid .vw-grid-4,
    .vw-layout-grid .vw-grid-5,
    .vw-layout-grid .vw-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Grid count handled by Elementor Responsive Controls */
}

.vw-layout-list .vw-grid-2,
.vw-layout-list .vw-grid-4,
.vw-layout-list .vw-grid-5 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.vw-layout-carousel .vw-grid-2,
.vw-layout-carousel .vw-grid-4,
.vw-layout-carousel .vw-grid-5 {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 20px 0;
    width: 100%;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.vw-layout-carousel .vw-grid-2::-webkit-scrollbar,
.vw-layout-carousel .vw-grid-4::-webkit-scrollbar,
.vw-layout-carousel .vw-grid-5::-webkit-scrollbar {
    display: none;
}

.vw-layout-carousel .vw-option-card,
.vw-layout-carousel .vw-role-card,
.vw-layout-carousel .vw-market-card,
.vw-layout-carousel .vw-stage-card,
.vw-layout-carousel .vw-funding-card,
.vw-layout-carousel .vw-team-card {
    flex: 0 0 200px;
    scroll-snap-align: center;
}

/* Slide 6 & 7: Funding & Team Size - Grid Layout (Controllable) */
.vw-step-5 .vw-grid,
.vw-step-6 .vw-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    /* Default desktop, will be overridden by control */
    gap: 16px !important;
    padding: 10px 0;
}

.vw-step-5 .vw-card,
.vw-step-6 .vw-card {
    flex: none !important;
    min-width: 0 !important;
    padding: 24px;
}

.vw-step-5 .vw-card .vw-image-box,
.vw-step-6 .vw-card .vw-image-box {
    width: 64px !important;
    height: 64px !important;
    margin-bottom: 16px !important;
}

.vw-step-5 .vw-card .vw-label,
.vw-step-6 .vw-card .vw-label {
    font-size: 14px !important;
}

.option-card,
.vw-option-card,
.vw-role-card,
.vw-market-card,
.vw-stage-card,
.vw-funding-card,
.vw-team-card {
    padding: 24px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #f3f4f6;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.option-card:hover,
.vw-option-card:hover,
.vw-role-card:hover,
.vw-market-card:hover,
.vw-stage-card:hover,
.vw-funding-card:hover,
.vw-team-card:hover {
    border-color: #bfdbfe;
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.option-card.selected,
.vw-option-card.selected,
.vw-role-card.selected,
.vw-market-card.selected,
.vw-stage-card.selected,
.vw-funding-card.selected,
.vw-team-card.selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
    transform: scale(1.02);
}

.vw-image-box {
    /* width: 100px !important; */
    height: auto !important;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px !important;
    overflow: hidden;
    background: #f9fafb;
}

.vw-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.option-card.selected .vw-image-box img,
.vw-option-card.selected .vw-image-box img {
    transform: scale(1.1);
}

.option-card .emoji,
.vw-emoji {
    font-size: 40px;
    margin-bottom: 0px;
    /* Reduced from 16px as label is gone */
}

/* Step 1 Wrapper for External Label */
.vw-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

/* Ensure click on wrapper triggers card click (optional extended UX) */
/* For now, click is on card, but let's make sure wrapper looks good */

.vw-item-wrapper .vw-label {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    transition: color 0.3s ease;
}

/* Active State for External Label */
.vw-card.selected+.vw-label {
    color: #2563eb !important;
}

.vw-card:hover+.vw-label {
    color: #1d4ed8;
}

.option-card .label,
.vw-label,
.vw-amount {
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    text-align: center;
}

.option-card.selected .label,
.vw-option-card.selected .vw-label,
.vw-role-card.selected .vw-label,
.vw-market-card.selected .vw-label,
.vw-stage-card.selected .vw-label,
.vw-funding-card.selected .vw-amount,
.vw-team-card.selected .vw-label,
.vw-country-item.selected span {
    color: #1d4ed8;
}

.vw-item-icon {
    font-size: 20px;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

/* Slide 1 Custom Button */
.vw-slide1-btn-container {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.vw-slide1-next-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.vw-slide1-next-btn:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -5px rgba(37, 99, 235, 0.3);
}

/* Robust Navigation Removal for Slide 1 & 2 */
.vw-current-step-0 .dots-indicator,
.vw-current-step-0 .next-btn,
.vw-current-step-1 .next-btn {
    display: none !important;
}

.vw-slide1-next-btn:disabled {
    background: #f3f4f6;
    color: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Slide 2 Welcome Buttons */
.vw-welcome-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.vw-welcome-btn {
    padding: 24px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f3f4f6;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    min-width: 150px;
}

.vw-welcome-btn:hover {
    border-color: #bfdbfe;
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: #1d4ed8;
}

.vw-welcome-btn:active {
    transform: scale(0.95);
}

.vw-welcome-btn-not-now.active {
    background: #fef2f2;
    border-color: #fecaca;
    color: #ef4444;
}

.footer-nav {
    padding: 0 80px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .footer-nav {
        padding: 20px;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.nav-btn:active {
    transform: scale(0.95);
}

.back-btn {
    background: #f3f4f6;
    color: #6b7280;
}

.back-btn:hover {
    background: #e5e7eb;
}

.back-btn.hidden {
    display: none !important;
}

.next-btn {
    padding: 16px 40px;
    background: #2563eb;
    color: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.next-btn:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-4px);
}

.next-btn:disabled {
    background: #f3f4f6;
    color: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
}

.next-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.dots-indicator {
    display: flex;
    gap: 8px;
}

@media (max-width: 768px) {
    .dots-indicator {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

.vw-dot {
    height: 8px;
    width: 8px;
    border-radius: 9999px;
    transition: all 0.5s ease;
    background: #e5e7eb;
}

.vw-dot.active {
    width: 40px;
    background: #2563eb;
}

.vw-dot.completed {
    background: #34d399;
}

/* Form styles */
.vw-contact-form,
.form-container {
    width: 100%;
    max-width: 672px;
    margin: 0 auto;
}

.vw-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.vw-form-row .vw-form-group {
    flex: 1;
    margin-bottom: 0;
}

.vw-form-group {
    margin-bottom: 24px;
    text-align: left;
}

.vw-form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.vw-form-label .required {
    color: #ef4444;
    margin-left: 2px;
}

.vw-form-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: white;
    color: #1f2937;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.vw-form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

textarea.vw-form-input {
    min-height: 120px;
    resize: vertical;
}

.vw-cta-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.vw-cta-text {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Slide 10 CTA Buttons */
.vw-cta-container {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    /* Default, overridden by alignment control if using flex */
}

@media (max-width: 768px) {
    .vw-cta-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

.vw-cta-btn-wrapper {
    display: inline-block;
}

@media (max-width: 768px) {
    .vw-cta-btn-wrapper {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

.vw-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.vw-cta-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .vw-cta-btn {
        width: 100% !important;
        max-width: 400px;
        box-sizing: border-box !important;
    }
}

/* Slide 8: Citizenship / Country Search */
.vw-citizenship-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    gap: 20px;
    min-height: 250px;
    justify-content: flex-start;
}

.vw-country-search {
    width: 100%;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    outline: none;
    background: #fff;
    transition: border-color 0.3s ease;
}

.vw-country-search:focus {
    border-color: #2563eb;
}

.vw-country-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    margin-bottom: 10px;
}

/* Premium Scrollbar */
.vw-country-list::-webkit-scrollbar {
    width: 6px;
}

.vw-country-list::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 10px;
}

.vw-country-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.vw-country-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.vw-country-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    background: #ffffff;
    border: 2px solid #f3f4f6;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vw-country-item:hover {
    border-color: #bfdbfe;
    background: #f9fafb;
    transform: translateX(4px);
}

.vw-country-item.selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
}

.vw-country-item img {
    width: 32px;
    height: 32px;
    margin-right: 16px;
    object-fit: contain;
}

.vw-country-item .vw-item-icon {
    font-size: 24px;
    margin-right: 16px;
}

.vw-country-item span {
    font-weight: 600;
    color: #4b5563;
    font-size: 15px;
}

/* Visibility Utility */
.vw-step {
    display: none;
}

.vw-step.active {
    display: block;
    animation: slideIn 0.4s ease-out forwards;
}

.hidden {
    display: none !important;
}

/* Footer Nav Improvements */
.footer-nav .nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-nav .dot {
    cursor: pointer;
}

@media (max-width: 480px) {
    .vw-grid {
        grid-template-columns: 1fr !important;
    }
}