/* ─── Global Layout Fixes ─── */
body.register-page {
    height: auto !important;
    min-height: 100vh !important;
    background: #f4f6f9 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0 !important;
}

.register-box {
    width: 95% !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    transition: max-width 0.4s ease-in-out, width 0.4s ease-in-out;
}

.register-box.step-2-active {
    width: 98% !important;
    max-width: 1400px !important;
}

@media (min-width: 992px) {
    .register-box {
        max-width: 950px !important;
    }
}

@media (max-width: 576px) {
    .register-box {
        width: 100% !important;
        margin: 0 auto !important;
        padding: 10px !important;
    }

    .package-grid {
        grid-template-columns: 1fr !important;
    }
}

.steps-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
    background: #f8f9fa;
    color: #adb5bd;
}

.step-dot.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #007bff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.35);
}

.step-dot.completed {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.step-connector {
    width: 40px;
    height: 2px;
    background: #dee2e6;
    align-self: center;
    transition: background 0.3s;
}

.step-connector.active {
    background: #007bff;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fdfdfd;
}

.package-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    background: #fff;
}

.package-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.package-card.selected {
    border-color: #007bff;
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.2);
}

.package-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 22px;
    height: 22px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.package-card .pkg-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.package-card .pkg-name {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.package-card .pkg-price {
    font-size: 20px;
    font-weight: 800;
    color: #28a745;
    margin-bottom: 4px;
}

.package-card .pkg-price.free {
    color: #007bff;
}

.package-card .pkg-details {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.4;
}

.package-card .pkg-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 6px;
}

.pkg-badge.trial {
    background: #fff3cd;
    color: #856404;
}

.pkg-badge.popular {
    background: #d4edda;
    color: #155724;
}

.pkg-features-panel {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px;
    margin-top: 12px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.pkg-features-panel.show {
    display: block;
}

.pkg-features-panel h6 {
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.pkg-features-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pkg-features-panel ul li {
    padding: 3px 0;
    font-size: 12px;
    color: #555;
}

.pkg-features-panel ul li::before {
    content: '✅ ';
}

.step-section {
    display: none;
}

.step-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

.step-nav {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.step-nav .btn {
    flex: 1;
}

.skip-link {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
}