:root {
    --primary-blue: #2c4b91;
    --primary-orange: #ff6b35;
    --gradient-bg: linear-gradient(135deg, var(--primary-blue) 0%, #1a365d 100%);
    --gradient-orange: linear-gradient(135deg, var(--primary-orange) 0%, #e55a2b 100%);
    --shadow-light: 0 4px 20px rgba(44, 75, 145, 0.1);
    --shadow-medium: 0 8px 30px rgba(44, 75, 145, 0.15);
    --shadow-heavy: 0 15px 40px rgba(44, 75, 145, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-section {
    background: var(--gradient-bg);
    margin: -2rem -15px 0 -15px;
    padding: 2rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><path d="M20 0v40M0 20h40" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transform: translateX(-5px);
}

.role-badge {
    background: var(--gradient-orange);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.registration-container {
    background: white;
    border-radius: 24px;
    padding: 0;
    margin-top: -1rem;
    position: relative;
    z-index: 3;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
}

.main-form-card {
    border: none;
    border-radius: 24px 0 0 24px;
    box-shadow: none;
    height: 100%;
}

.sidebar-card {
    border: none;
    border-radius: 0 24px 24px 0;
    box-shadow: none;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    height: 100%;
}

.form-header {
    background: var(--gradient-bg);
    color: white;
    padding: 2rem;
    margin: 0;
    border-radius: 24px 0 0 0;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.form-header h4 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 2;
}

.form-body {
    padding: 3rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient-orange);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(44, 75, 145, 0.1);
    outline: none;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.invalid-feedback {
    display: block;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-check {
    margin-bottom: 1rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(44, 75, 145, 0.1);
}

.form-check-label {
    color: #374151;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.form-check-label a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-check-label a:hover {
    color: var(--primary-orange);
}

.submit-btn {
    background: var(--gradient-bg);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    width: 100%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: var(--gradient-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Sidebar Styling */
.plan-card-header {
    background: var(--gradient-bg);
    color: white;
    padding: 1.5rem;
    border-radius: 0 24px 0 0;
    margin: 0;
}

.plan-card-body {
    padding: 2rem;
}

.plan-icon {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.plan-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.price-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.plan-details {
    background: rgba(44, 75, 145, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.plan-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.plan-detail-item:last-child {
    margin-bottom: 0;
}

.plan-detail-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.features-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

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

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.features-list li:hover {
    background: rgba(44, 75, 145, 0.05);
    padding-left: 0.5rem;
    border-radius: 8px;
    border-bottom: 1px solid transparent;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    margin-right: 0.75rem;
}

.card-footer {
    background: rgba(44, 75, 145, 0.05);
    border: none;
    padding: 1.5rem 2rem;
    border-radius: 0 0 24px 0;
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
}

.benefits-card {
    border: none;
    border-radius: 0 0 24px 0;
    background: transparent;
}

.benefits-card .card-body {
    padding: 2rem;
}

.benefit-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-bg);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.benefit-content h6 {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.benefit-content p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

/* Modal Styling */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    background: var(--gradient-bg);
    color: white;
    border: none;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 2rem;
}

.modal-header .modal-title {
    font-weight: 700;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-body {
    padding: 2rem;
    color: #374151;
    line-height: 1.6;
}

.modal-body h5 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body h5:first-child {
    margin-top: 0;
}

.modal-footer {
    border: none;
    padding: 1.5rem 2rem;
}

.modal-footer .btn {
    background: var(--gradient-bg);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 10px;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

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

/* Floating elements */
.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 4s;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.registration-container {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

/* Progress indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: var(--primary-blue);
    color: white;
}

.progress-step.completed {
    background: #10b981;
    color: white;
}

.progress-line {
    width: 50px;
    height: 2px;
    background: #e5e7eb;
    margin: 19px 0;
    transition: all 0.3s ease;
}

.progress-line.active {
    background: var(--primary-blue);
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0 0.5rem;
    }

    .registration-container {
        margin: 1rem;
        border-radius: 20px;
    }

    .main-form-card {
        border-radius: 20px 20px 0 0;
    }

    .sidebar-card {
        border-radius: 0 0 20px 20px;
    }

    .form-body {
        padding: 2rem 1.5rem;
    }

    .plan-card-body {
        padding: 1.5rem;
    }

    .form-header {
        border-radius: 20px 20px 0 0;
        padding: 1.5rem;
    }

    .plan-card-header {
        border-radius: 0;
    }

    .price {
        font-size: 2rem;
    }
}

/* Focus states for accessibility */
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.submit-btn:focus,
.back-btn:focus {
    outline: 3px solid rgba(44, 75, 145, 0.3);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange);
}