/* ============================================
   ADD BUSINESS PAGE — Design System v2.0
   ============================================ */

:root {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-base, #0c0e14);
    color: var(--text-primary, #eef0f6);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── TOP NAV ── */
#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(20, 22, 30, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border, #252938);
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
    height: 60px;
    gap: 1rem;
}

.nav-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-secondary, #9ba3c0);
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--text-primary, #eef0f6);
}

.back-link i {
    font-size: 1rem;
}

#top-nav .logo-small {
    height: 34px;
    filter: brightness(1.15);
    transition: transform 0.2s ease;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #eef0f6);
    letter-spacing: 0.01em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-btn {
    border-radius: 10px;
    border: none;
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
}

.nav-btn-outline {
    background: transparent;
    border: 1px solid var(--border-light, #2e3348);
    color: var(--text-secondary, #9ba3c0);
}

.nav-btn-outline:hover {
    border-color: #5b8def;
    color: var(--text-primary, #eef0f6);
    background: rgba(91, 141, 239, 0.06);
    transform: translateY(-1px);
}

/* ── PAGE CONTAINER ── */
.page-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 84px 1.5rem 3rem;
}

/* ── STEP PROGRESS INDICATOR ── */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid var(--border-light, #2e3348);
    background: var(--bg-elevated, #1a1d28);
    color: var(--text-muted, #6b7394);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted, #6b7394);
    margin-top: 0.35rem;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--border, #252938);
    margin: 0 0.5rem;
    transition: background 0.3s ease;
    flex-shrink: 0;
    margin-bottom: 1.2rem;
}

.step-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Active step */
.step-item.active .step-circle {
    border-color: #5b8def;
    background: linear-gradient(135deg, #5b8def, #38bdf8);
    color: white;
    box-shadow: 0 0 16px rgba(91, 141, 239, 0.3);
}

.step-item.active .step-label {
    color: #5b8def;
}

/* Completed step */
.step-item.completed .step-circle {
    border-color: #34d399;
    background: linear-gradient(135deg, #059669, #34d399);
    color: white;
}

.step-item.completed .step-label {
    color: #34d399;
}

.step-item.completed+.step-item .step-connector,
.step-connector.completed {
    background: #34d399;
}

/* ── FORM CARD ── */
.form-card {
    background: var(--bg-surface, #14161e);
    border: 1px solid var(--border, #252938);
    border-radius: 20px;
    padding: 2rem 2.5rem 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #5b8def, #38bdf8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(91, 141, 239, 0.25);
}

.form-header-icon i {
    font-size: 1.6rem;
    color: white;
}

.form-header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary, #eef0f6);
    letter-spacing: 0.01em;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted, #6b7394);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

/* ── SUCCESS MESSAGE ── */
.success-message {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    font-size: 3.5rem;
    color: #34d399;
    margin-bottom: 1rem;
    animation: successPulse 1.5s ease infinite;
}

@keyframes successPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.success-message h2 {
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
    color: var(--text-primary, #eef0f6);
}

.success-message p {
    color: var(--text-secondary, #9ba3c0);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.success-message .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

/* ── FORM SECTIONS ── */
.form-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border, #252938);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.section-header i {
    font-size: 1rem;
    color: #5b8def;
}

.section-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #eef0f6);
    margin: 0;
    letter-spacing: 0.01em;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.form-group {
    flex: 1;
    min-width: 0;
}

.form-group.full-width {
    flex: 1 0 100%;
}

.form-group label {
    font-size: 0.8rem;
    color: #bac3e0;
    display: block;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
    font-weight: 500;
}

.required {
    color: #f87171;
    font-weight: 700;
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7394);
    margin: 0 0 0.35rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border, #252938);
    background: rgba(12, 14, 20, 0.85);
    color: var(--text-primary, #eef0f6);
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    font-family: inherit;
}

.form-group textarea {
    min-height: 4.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #4c5278;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #5b8def;
    box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.15);
    background: var(--bg-base, #0c0e14);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7394' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

/* ── WIZARD STEP VISIBILITY ── */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeStep 0.35s ease;
}

@keyframes fadeStep {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* ── WIZARD NAVIGATION BUTTONS ── */
.wizard-nav {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border, #252938);
}

.wizard-nav .btn-back {
    border-radius: 999px;
    border: 1px solid var(--border-light, #2e3348);
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary, #9ba3c0);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: inherit;
}

.wizard-nav .btn-back:hover {
    background: var(--bg-hover, #1f2330);
    border-color: #4b5270;
    color: var(--text-primary, #eef0f6);
}

.wizard-nav .btn-next {
    border-radius: 999px;
    border: none;
    padding: 0.7rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    background: linear-gradient(135deg, #5b8def, #38bdf8);
    color: #f5f7ff;
    box-shadow: 0 4px 16px rgba(91, 141, 239, 0.25);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.wizard-nav .btn-next:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(91, 141, 239, 0.35);
}

/* ── AMENITIES ── */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.amenity-checkbox {
    cursor: pointer;
}

.amenity-checkbox input[type="checkbox"] {
    display: none;
}

.amenity-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    border: 2px solid var(--border, #252938);
    background: rgba(20, 22, 30, 0.5);
    transition: all 0.2s ease;
}

.amenity-card i {
    font-size: 1.3rem;
    color: var(--text-muted, #6b7394);
    transition: color 0.2s ease;
}

.amenity-card span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted, #6b7394);
    text-align: center;
    transition: color 0.2s ease;
}

.amenity-checkbox:hover .amenity-card {
    border-color: #3b4260;
    background: rgba(26, 29, 40, 0.8);
}

.amenity-checkbox input:checked+.amenity-card {
    border-color: #5b8def;
    background: rgba(91, 141, 239, 0.08);
    box-shadow: 0 0 0 1px rgba(91, 141, 239, 0.15);
}

.amenity-checkbox input:checked+.amenity-card i {
    color: #5b8def;
}

.amenity-checkbox input:checked+.amenity-card span {
    color: var(--text-primary, #eef0f6);
}

/* ── IMAGE UPLOAD ── */
.image-upload-area {
    position: relative;
    width: 100%;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed var(--border, #252938);
    border-radius: 14px;
    background: rgba(20, 22, 30, 0.4);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    min-height: 160px;
}

.upload-placeholder:hover {
    border-color: #5b8def;
    background: rgba(91, 141, 239, 0.04);
}

.upload-placeholder.drag-over {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    transform: scale(1.01);
}

.upload-placeholder svg {
    color: #5b8def;
    margin-bottom: 0.75rem;
}

.upload-placeholder p {
    margin: 0.2rem 0;
    color: var(--text-secondary, #9ba3c0);
    font-size: 0.9rem;
}

.upload-hint {
    font-size: 0.78rem !important;
    color: var(--text-muted, #6b7394) !important;
}

.image-preview {
    position: relative;
    border: 2px solid var(--border, #252938);
    border-radius: 14px;
    padding: 1rem;
    background: rgba(20, 22, 30, 0.6);
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 260px;
    border-radius: 10px;
    object-fit: contain;
}

.remove-image-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(248, 113, 113, 0.9);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.remove-image-btn:hover {
    background: #f87171;
    transform: scale(1.1);
}

.image-name {
    margin-top: 0.6rem;
    color: var(--text-muted, #6b7394);
    font-size: 0.8rem;
    word-break: break-word;
}

/* ── SCHEDULE ── */
.schedule-container {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.schedule-day {
    display: grid;
    grid-template-columns: 90px 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
}

.day-label {
    color: var(--text-secondary, #9ba3c0);
    font-size: 0.85rem;
    font-weight: 600;
}

.schedule-day input[type="time"] {
    width: 100%;
    background: rgba(12, 14, 20, 0.85);
    border: 1px solid var(--border, #252938);
    border-radius: 8px;
    padding: 0.55rem 0.6rem;
    color: var(--text-primary, #eef0f6);
    font-size: 0.85rem;
    transition: all 0.15s ease;
    font-family: inherit;
    color-scheme: dark;
}

.schedule-day input[type="time"]:focus {
    outline: none;
    border-color: #5b8def;
    box-shadow: 0 0 0 2px rgba(91, 141, 239, 0.15);
}

.time-separator {
    color: var(--text-muted, #6b7394);
    font-size: 0.82rem;
    text-align: center;
}

/* ── FORM ACTIONS ── */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border, #252938);
}

.btn-primary {
    border-radius: 999px;
    border: none;
    padding: 0.7rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    background: linear-gradient(135deg, #5b8def, #38bdf8);
    color: #f5f7ff;
    box-shadow: 0 4px 16px rgba(91, 141, 239, 0.25);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(91, 141, 239, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    pointer-events: none;
}

.btn-primary.loading i {
    animation: spin 1s linear infinite;
}

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

.btn-secondary {
    border-radius: 999px;
    border: 1px solid var(--border-light, #2e3348);
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary, #9ba3c0);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: inherit;
}

.btn-secondary:hover {
    background: var(--bg-hover, #1f2330);
    border-color: #4b5270;
    color: var(--text-primary, #eef0f6);
}

/* ── ERROR MESSAGE ── */
.error-message {
    padding: 0.75rem 1rem;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.25);
    border-radius: 10px;
    color: #f87171;
    font-size: 0.85rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .page-container {
        padding: 76px 1rem 2rem;
    }

    .form-card {
        padding: 1.5rem 1.25rem 2rem;
        border-radius: 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 0.85rem;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule-day {
        grid-template-columns: 80px 1fr auto 1fr;
    }

    .btn-label {
        display: none;
    }

    .nav-title {
        font-size: 1rem;
    }

    .step-connector {
        width: 30px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .step-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 1.25rem 1rem 1.5rem;
    }

    .form-header h1 {
        font-size: 1.3rem;
    }

    .schedule-day {
        grid-template-columns: 70px 1fr auto 1fr;
        gap: 0.35rem;
    }

    .day-label {
        font-size: 0.78rem;
    }

    .form-actions,
    .wizard-nav {
        flex-direction: column-reverse;
    }

    .form-actions .btn-primary,
    .form-actions .btn-secondary,
    .wizard-nav .btn-next,
    .wizard-nav .btn-back {
        width: 100%;
        justify-content: center;
    }

    .step-connector {
        width: 20px;
    }
}