@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Eventofu Onboarding - Premium Razorpay Aesthetic */
:root {
    --primary: #1a7ae8;
    --primary-hover: #155dfc;
    --sidebar-bg: #f9fafb;
    --border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-main: #ffffff;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* Loading Overlay & Skeleton */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.skeleton-container {
    width: 100%;
    max-width: 600px;
    padding: 40px;
}

.skeleton-box {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 20px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Layout - Stable & Error Free */
.onboarding-layout {
    display: block; /* Removed grid to stop doubling */
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: #fcfcfd;
    position: relative;
}

/* Sidebar Styling - Locked */
.onboarding-sidebar {
    background: #ffffff;
    border-right: 1px solid var(--border);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-header { margin-bottom: 48px; }
.logo-mini-box { margin-bottom: 32px; }
.logo-img { height: 24px; }

.logout-btn {
    padding: 8px 16px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #f8f9fa;
    border-color: #cbd5e1;
    color: var(--text-main);
}

.onboarding-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.business-name-display {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

/* Navigation Steps */
.onboarding-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: all 0.2s;
}

.step.active {
    background: #ffffff;
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.step.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: #10b981; /* Green indicator like Razorpay */
    border-radius: 0 4px 4px 0;
}

/* Main Content Area */
.onboarding-main {
    padding: 60px 80px;
    overflow-y: auto;
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
}

/* Soft Gradient Background Blobs */
.onboarding-main::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26,122,232,0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.content-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.step-heading {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.step-subheading {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 48px;
}

/* Form Elements */
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
}

.form-control-minimal {
    width: 100%;
    padding: 14px 20px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
}

.form-control-minimal:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,122,232,0.1);
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0 20px;
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,122,232,0.1);
}

.phone-input-wrapper .form-control-minimal {
    border: none;
    padding: 14px 0;
}

.country-code {
    font-weight: 700;
    color: var(--text-main);
    margin-right: 12px;
}

/* Footer Navigation */
.form-footer {
    position: fixed;
    bottom: 40px;
    left: 360px;
    right: 40px;
    z-index: 100;
}

.btn-continue {
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-continue:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(26,122,232,0.25);
}

.btn-back {
    background: white;
    color: var(--text-main);
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #f8f9fa;
    border-color: #cbd5e1;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.location-picker-card {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.location-picker-card:hover {
    border-color: var(--primary);
    background: rgba(26,122,232,0.02);
}

.location-picker-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}

.btn-verify {
    margin-top: 16px;
    background: #f1f5f9;
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-verify:hover {
    background: #e2e8f0;
}

.input-with-validation {
    position: relative;
}

.validation-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    display: none;
}

.validation-icon.valid { color: #10b981; }
.validation-icon.invalid { color: #ef4444; }

.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chip i {
    cursor: pointer;
    color: #94a3b8;
}

.chip i:hover { color: #ef4444; }

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 25%;
    background: #22c55e;
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Notification Override to prevent layout shift */
.global-notification {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 99999 !important;
    margin: 0 !important;
    transform: none !important;
}

/* Sidebar - Strictly Locked */
.onboarding-sidebar {
    background: #ffffff;
    border-right: 1px solid var(--border);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    z-index: 100;
}

/* Main Content - Correct Alignment */
.onboarding-main {
    margin-left: 280px;
    padding: 60px 80px;
    overflow-y: auto;
    height: 100vh;
    width: calc(100% - 280px);
    display: flex;
    justify-content: center;
    position: relative;
}

/* Help Popup Styling */
.help-popup {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    border: 1px solid var(--border);
    animation: slideUp 0.3s ease-out;
}

.help-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-header h4 { margin: 0; font-size: 14px; color: var(--text-main); }
.close-help { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); }

.help-body { padding: 16px; }
.help-body p { margin: 0 0 12px 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.help-link { color: var(--primary); text-decoration: none; font-weight: 600; font-size: 13px; }

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Help Center Refinements */
.help-center {
    width: 320px;
    padding: 0;
    overflow: hidden;
    background: #f8fafc;
}

.help-header-dark {
    background: #1e293b;
    padding: 24px 20px;
    color: white;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.header-main h4 { margin: 0; font-size: 18px; font-weight: 700; }
.header-sub { margin: 0; font-size: 13px; color: #94a3b8; }

.search-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.search-container i { color: #94a3b8; }
.search-container input { border: none; outline: none; font-size: 14px; width: 100%; }

.faq-section h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 16px 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.faq-item {
    background: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-item:hover { background: #f8fafc; }
.faq-item span { font-size: 13px; color: #475569; font-weight: 500; }
.faq-item i { font-size: 12px; color: #94a3b8; }

.help-footer-action {
    margin-top: 24px;
    text-align: center;
    padding: 0 20px 20px;
}

.help-footer-action p { font-size: 12px; color: #64748b; margin-bottom: 12px; font-weight: 600; }

.btn-contact-us {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-contact-us:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Select Dropdown Styling */
select.form-control-minimal {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Map Modal Fix */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
}

#map-container {
    flex: 1;
    width: 100%;
    background: #f1f5f9;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

#address-search-container {
    flex: 1;
    margin-right: 20px;
}

#address-search-container input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.btn-confirm-location {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel-location {
    background: #f1f5f9;
    color: var(--text-main);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 768px) {
    .onboarding-layout { grid-template-columns: 1fr; }
    .onboarding-sidebar { display: none; }
    .form-footer { left: 0; right: 0; bottom: 0; padding: 16px; background: white; border-top: 1px solid var(--border); }
    .button-group { justify-content: space-between; width: 100%; }
    .btn-continue, .btn-back { flex: 1; padding: 12px; font-size: 14px; }
    .onboarding-main { padding: 20px; padding-bottom: 100px; }
    .step-heading { font-size: 24px; }
    .help-popup { left: 10px; right: 10px; width: auto; bottom: 80px; }
}