/* Frontend Styles for INFOVE Registration System */

:root {
    --primary: 210 79% 46%; /* #1F7CE8 */
    --primary-dark: 210 79% 36%; /* #1A64B8 */
    --secondary: 210 11% 71%; /* #B0BCC9 */
    --success: 142 76% 36%; /* #198754 */
    --danger: 354 70% 54%; /* #DC3545 */
    --warning: 45 100% 51%; /* #FFC107 */
    --info: 188 78% 41%; /* #17A2B8 */
    --light: 210 11% 98%; /* #F5F7FA */
    --dark: 210 24% 16%; /* #1F2937 */
    --background: 0 0% 100%; /* #FFFFFF */
    --surface: 210 11% 98%; /* #F5F7FA */
    --text: 210 24% 16%; /* #1F2937 */
    --text-muted: 210 11% 71%; /* #B0BCC9 */
    --border: 210 11% 91%; /* #E5E7EB */
    --shadow: 210 40% 8%; /* #0F172A */
}

/* Base styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: hsl(var(--text));
    background-color: hsl(var(--background));
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-scrolled {
    background-color: hsla(0, 0%, 100%, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary)) !important;
}

.nav-link {
    font-weight: 500;
    color: hsl(var(--text)) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: hsl(var(--primary)) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-dark)) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

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

.floating-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Benefits Section */
.benefit-card {
    padding: 2rem 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Plans Section */
.plan-card {
    border: 2px solid hsl(var(--border));
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: hsl(var(--primary));
}

.plan-card.featured {
    border-color: hsl(var(--success));
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.plan-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: hsl(var(--success));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.plan-header {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
}

.plan-body {
    padding: 0 1.5rem 2rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.plan-features li svg {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.plan-cta {
    margin-top: auto;
}

/* Contact Section */
.contact-item {
    padding: 2rem 1rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-section {
    position: relative;
}

.form-section h5 {
    border-bottom: 2px solid hsl(var(--light));
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-control,
.form-select {
    border: 2px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 0.2rem hsla(var(--primary), 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: hsl(var(--text));
    margin-bottom: 0.5rem;
}

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

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: white;
}

.btn-primary:hover {
    background-color: hsl(var(--primary-dark));
    border-color: hsl(var(--primary-dark));
    color: white;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: hsl(var(--primary));
    border-color: hsl(var(--primary));
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: white;
    transform: translateY(-2px);
}

.btn-warning {
    background-color: hsl(var(--warning));
    border-color: hsl(var(--warning));
    color: hsl(var(--dark));
}

.btn-warning:hover {
    background-color: hsl(45, 100%, 45%);
    border-color: hsl(45, 100%, 45%);
    color: hsl(var(--dark));
    transform: translateY(-2px);
}

.btn-outline-light {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: white;
    border-color: white;
    color: hsl(var(--primary));
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Cards */
.card {
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-body {
    padding: 1.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid;
}

.alert-info {
    background-color: hsla(var(--info), 0.1);
    color: hsl(var(--info));
    border-left-color: hsl(var(--info));
}

.alert-success {
    background-color: hsla(var(--success), 0.1);
    color: hsl(var(--success));
    border-left-color: hsl(var(--success));
}

.alert-danger {
    background-color: hsla(var(--danger), 0.1);
    color: hsl(var(--danger));
    border-left-color: hsl(var(--danger));
}

.alert-warning {
    background-color: hsla(var(--warning), 0.1);
    color: hsl(45, 100%, 35%);
    border-left-color: hsl(var(--warning));
}

/* Feather icon sizes */
.feather-xs {
    width: 14px;
    height: 14px;
}

.feather-sm {
    width: 18px;
    height: 18px;
}

.feather-lg {
    width: 32px;
    height: 32px;
}

.feather-xl {
    width: 48px;
    height: 48px;
}

/* Text utilities */
.text-primary {
    color: hsl(var(--primary)) !important;
}

.text-success {
    color: hsl(var(--success)) !important;
}

.text-danger {
    color: hsl(var(--danger)) !important;
}

.text-warning {
    color: hsl(45, 100%, 35%) !important;
}

.text-info {
    color: hsl(var(--info)) !important;
}

.text-muted {
    color: hsl(var(--text-muted)) !important;
}

/* Background utilities */
.bg-primary {
    background-color: hsl(var(--primary)) !important;
}

.bg-success {
    background-color: hsl(var(--success)) !important;
}

.bg-danger {
    background-color: hsl(var(--danger)) !important;
}

.bg-warning {
    background-color: hsl(var(--warning)) !important;
}

.bg-info {
    background-color: hsl(var(--info)) !important;
}

.bg-light {
    background-color: hsl(var(--light)) !important;
}

.bg-dark {
    background-color: hsl(var(--dark)) !important;
}

/* Page-specific styles */
.preregister-page {
    background-color: hsl(var(--surface));
    min-height: 100vh;
}

.custom-link-page {
    background: linear-gradient(135deg, hsl(var(--light)) 0%, hsl(var(--background)) 100%);
    min-height: 100vh;
}

/* Footer */
footer {
    margin-top: auto;
}

.social-links a {
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: hsl(var(--primary)) !important;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 60px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .benefit-icon,
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .plan-header {
        padding: 1.5rem 1rem 0.5rem;
    }
    
    .plan-body {
        padding: 0 1rem 1.5rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .form-section h5 {
        font-size: 1rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn,
    .alert-info,
    .social-links {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .text-primary,
    .text-success,
    .text-danger,
    .text-warning,
    .text-info {
        color: #000 !important;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid hsl(var(--primary));
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: 210 100% 30%;
        --text: 0 0% 0%;
        --background: 0 0% 100%;
        --border: 0 0% 50%;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
