/* Modern Visitor Registration Design System */

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #10b981;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
}

.modern-container {
    padding: 40px 15px;
    max-width: 900px !important;
    margin: 0 auto;
}

.modern-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.modern-card-header {
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    padding: 30px;
    color: white;
    text-align: center;
    position: relative;
}

.modern-card-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white !important;
}

.modern-card-header .expo-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 14px;
    margin-top: 10px;
    backdrop-filter: blur(5px);
}

.modern-card-body {
    padding: 40px;
}

/* Form Grid */
.modern-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .modern-form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group-full {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .form-group-full {
        grid-column: span 1;
    }
}

/* Form Elements */
.modern-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}

.modern-label i {
    margin-right: 8px;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.modern-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.modern-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background-color: white;
    outline: none;
}

/* Special Select2 Styling */
.select2-container--default .select2-selection--single {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    height: 48px !important;
    padding: 10px 16px !important;
    background-color: #f9fafb !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px !important;
    padding-left: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

/* Interested In Grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 15px;
    background: #f3f4f6;
    border-radius: var(--radius-md);
}

.modern-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.modern-checkbox:hover {
    background: rgba(79, 70, 229, 0.05);
}

.modern-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.modern-checkbox label {
    margin-bottom: 0px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-main);
    display: inline-block;
    vertical-align: middle;
}

/* Button Styling */
.modern-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    color: white !important;
    font-weight: 700;
    font-size: 18px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    text-decoration: none !important;
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(to right, #4338ca, #6d28d9);
}

.modern-btn-submit:active {
    transform: translateY(0);
}

.modern-btn-submit i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.modern-btn-submit:hover i {
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Note Styling */
.modern-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.color-red {
    color: #ef4444;
}

.blink_me {
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0.5;
    }
}

/* Field Icons */
.field-icon-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Action Buttons Group */
.modern-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.modern-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

.modern-btn-primary {
    background: var(--primary-color);
    color: white !important;
}

.modern-btn-info {
    background: #0ea5e9;
    color: white !important;
}

.modern-btn-success {
    background: #10b981;
    color: white !important;
}

.modern-btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main) !important;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    opacity: 0.95;
}

/* Status Messages */
.modern-alert {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    margin-top: 15px;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.modern-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.modern-alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Info Section */
.modern-info-section {
    margin-top: 30px;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.modern-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.modern-info-item:last-child {
    margin-bottom: 0;
}

.modern-info-icon {
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    font-size: 18px;
}

.modern-info-content h4 {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.modern-info-content p {
    margin: 4px 0 0;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    font-size: 15px;
}

/* OTP Input Group */
.otp-divider {
    height: 1px;
    background: var(--border-color);
    margin: 30px 0;
    position: relative;
    width: 100%;
}

.otp-divider::after {
    content: "Security Verification";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.unselectable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.horizontal-align-center {
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .modern-card-body {
        padding: 20px;
    }

    .modern-card-header h2 {
        font-size: 20px;
    }
}