/* Custom Utility Classes */

/* Line Clamp Utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Margin Top for Slider - No unwanted margin */
.mt-slider {
    margin-top: 0 !important;
}

/* Alternative margin values if needed */
.mt-slider-sm {
    margin-top: 0.5rem !important;
}

.mt-slider-md {
    margin-top: 1rem !important;
}

.mt-slider-lg {
    margin-top: 2rem !important;
}

/* Padding adjustments for slider components */
.pt-slider {
    padding-top: 0 !important;
}

.pb-slider {
    padding-bottom: 0 !important;
}

/* Container styles - No margins and gutters */
.container, 
.container-fluid,
.container-lg, 
.container-md, 
.container-sm, 
.container-xl,
.container-xxl {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0) !important;
    padding-left: var(--bs-gutter-x, 0) !important;
    margin-right: auto;
    margin-left: auto;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Container max-widths for different screen sizes */
/* Standard sizes (Bootstrap default) */
@media (min-width: 576px) {
    .container-sm {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container-md {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container-lg {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container-xl {
        max-width: 1215px;
    }
}

/* Extra large (1215px for wider displays) */
@media (min-width: 1400px) {
    .container-xl {
        max-width: 1320px;
    }
}

/* 4K and Ultra-wide displays (2560px+) */
@media (min-width: 2560px) {
    .container-xl {
        max-width: 2400px;
    }
}

/* 5K displays (3840px+) */
@media (min-width: 3840px) {
    .container-xl {
        max-width: 3600px;
    }
}

/* ====== ADVANCED KEYFRAME ANIMATIONS ====== */

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes glidingBlur {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes floatingGlow {
    0%, 100% {
        transform: translateY(-5px);
        box-shadow: 0 0 20px rgba(0, 61, 122, 0.3);
    }
    50% {
        transform: translateY(5px);
        box-shadow: 0 0 40px rgba(0, 61, 122, 0.6);
    }
}

@keyframes stormGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 61, 122, 0.3), 
                    inset 0 0 5px rgba(0, 61, 122, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 61, 122, 0.8), 
                    inset 0 0 20px rgba(0, 61, 122, 0.3),
                    0 0 30px rgba(74, 159, 216, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 61, 122, 0.3), 
                    inset 0 0 5px rgba(0, 61, 122, 0.1);
    }
}

@keyframes shimmerShine {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ====== ENHANCED BUTTONS WITH ADVANCED EFFECTS ====== */
.btn-ripple,
button[type="submit"].btn {
    position: relative;
    overflow: hidden;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 14px 24px !important;
    background: linear-gradient(135deg, #003D7A 0%, #4a9fd8 100%) !important;
    background-size: 200% 200%;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 61, 122, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-ripple:hover,
button[type="submit"].btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 61, 122, 0.5) !important;
    animation: stormGlow 2s ease-in-out;
    background-position: 100% 0;
}

.btn-ripple:active,
button[type="submit"].btn:active {
    transform: translateY(-1px);
    animation: glitch 0.3s ease-out;
}

/* ====== FORM INPUTS WITH ADVANCED EFFECTS ====== */
.form-control {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 2px solid rgba(0, 61, 122, 0.1) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    position: relative;
}

.form-control::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #003D7A !important;
    box-shadow: 0 8px 25px rgba(0, 61, 122, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
    outline: none !important;
    animation: glidingBlur 0.5s ease-out;
}

.form-control::placeholder {
    color: rgba(0, 61, 122, 0.4) !important;
    transition: color 0.3s ease;
}

.form-control:focus::placeholder {
    color: rgba(0, 61, 122, 0.6) !important;
}

/* ====== CARD WITH SHINY TILE EFFECT ====== */
.card.border-0.shadow-lg {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 61, 122, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
    animation: slideInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card.border-0.shadow-lg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    transform: rotate(45deg);
    animation: shimmerShine 3s infinite;
    pointer-events: none;
}

.card.border-0.shadow-lg:hover {
    box-shadow: 0 12px 40px rgba(0, 61, 122, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-5px);
}

/* ====== CHECKBOX WITH PULSE ====== */
.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 61, 122, 0.3) !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    background: white !important;
    position: relative;
}

.form-check-input:hover {
    border-color: #003D7A !important;
    box-shadow: 0 0 15px rgba(0, 61, 122, 0.2);
    animation: pulse 0.5s ease-out;
}

.form-check-input:checked {
    background: linear-gradient(135deg, #003D7A 0%, #4a9fd8 100%) !important;
    border-color: #003D7A !important;
    animation: glitch 0.3s ease-out;
    box-shadow: 0 4px 15px rgba(0, 61, 122, 0.4);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 61, 122, 0.15) !important;
    border-color: #003D7A !important;
}

.form-check-label {
    color: #003D7A !important;
    font-weight: 500 !important;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

/* ====== FORM LABELS ====== */
.form-label {
    color: #003D7A !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.form-label::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #003D7A, #4a9fd8);
    transition: width 0.3s ease;
}

.form-control:focus + .form-label::before,
.form-control:focus ~ .form-label::before {
    width: 100%;
}

/* ====== ANIMATED LINKS ====== */
.animate-link {
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.animate-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #003D7A, #4a9fd8);
    transition: width 0.3s ease;
}

.animate-link:hover::before {
    width: 100%;
}

.animate-link:hover {
    color: #003D7A !important;
    text-shadow: 0 0 10px rgba(0, 61, 122, 0.3);
}

/* ====== ALERTS WITH SPARKLE ====== */
.alert {
    background: rgba(220, 53, 69, 0.1) !important;
    border: 2px solid rgba(220, 53, 69, 0.3) !important;
    color: #721c24 !important;
    border-radius: 10px !important;
    animation: slideInLeft 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 12px 16px !important;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
    pointer-events: none;
}

/* ====== USER TYPE BUTTONS WITH ADVANCED EFFECTS ====== */
.user-type-btn {
    animation: glidingBlur 0.6s ease-out;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    border-radius: 12px !important;
    border: 2px solid rgba(0, 61, 122, 0.1) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    position: relative;
    overflow: hidden;
}

.user-type-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.3s ease;
}

.user-type-btn:hover::before {
    left: 100%;
}

.user-type-btn:nth-child(1) { animation-delay: 0.1s; }
.user-type-btn:nth-child(2) { animation-delay: 0.2s; }
.user-type-btn:nth-child(3) { animation-delay: 0.3s; }
.user-type-btn:nth-child(4) { animation-delay: 0.4s; }
.user-type-btn:nth-child(5) { animation-delay: 0.5s; }

.user-type-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 61, 122, 0.2) !important;
    border-color: #003D7A !important;
    background: rgba(255, 255, 255, 0.95) !important;
    animation: floatingGlow 1.5s ease-in-out infinite;
}

.user-type-btn.active {
    border-color: #003D7A !important;
    background: linear-gradient(135deg, rgba(0, 61, 122, 0.1) 0%, rgba(74, 159, 216, 0.1) 100%) !important;
    box-shadow: 0 8px 25px rgba(0, 61, 122, 0.2) !important;
    animation: pulse 0.5s ease-out;
}

/* ====== RIPPLE EFFECT ====== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Apply animations to elements */
.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-slide-left {
    animation: slideInLeft 0.7s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.7s ease-out;
}

.animate-card-enter {
    animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-input-enter {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-button {
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-checkbox {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-list-item {
    animation: slideInLeft 0.5s ease-out forwards;
    opacity: 0;
}

.animate-link {
    position: relative;
    transition: all 0.3s ease;
}

.animate-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #003D7A, #4a9fd8);
    transition: width 0.3s ease;
}

.animate-link:hover::after {
    width: 100%;
}

/* ====== GLASSMORPHISM CARD ====== */
.card.border-0.shadow-lg {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 61, 122, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
    animation: slideInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.3s ease;
}

.card.border-0.shadow-lg:hover {
    box-shadow: 0 12px 40px rgba(0, 61, 122, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-5px);
}

/* ====== FORM INPUTS - MODERN STYLE ====== */
.form-control {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 2px solid rgba(0, 61, 122, 0.1) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.form-control:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #003D7A !important;
    box-shadow: 0 8px 25px rgba(0, 61, 122, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
    outline: none !important;
}

.form-control::placeholder {
    color: rgba(0, 61, 122, 0.4) !important;
}

/* ====== FORM LABELS ====== */
.form-label {
    color: #003D7A !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
    transition: all 0.3s ease;
}

/* ====== CHECKBOX MODERN ====== */
.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 61, 122, 0.3) !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    background: white !important;
}

.form-check-input:hover {
    border-color: #003D7A !important;
    box-shadow: 0 0 10px rgba(0, 61, 122, 0.1);
}

.form-check-input:checked {
    background: linear-gradient(135deg, #003D7A 0%, #4a9fd8 100%) !important;
    border-color: #003D7A !important;
    animation: pulseGlow 0.5s ease-out;
    box-shadow: 0 4px 15px rgba(0, 61, 122, 0.3);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 61, 122, 0.15) !important;
    border-color: #003D7A !important;
}

.form-check-label {
    color: #003D7A !important;
    font-weight: 500 !important;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

/* ====== BUTTONS - MODERN & INTERACTIVE ====== */
.btn-ripple,
button[type="submit"].btn {
    position: relative;
    overflow: hidden;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 14px 24px !important;
    background: linear-gradient(135deg, #003D7A 0%, #4a9fd8 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 61, 122, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    cursor: pointer;
}

.btn-ripple:hover,
button[type="submit"].btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 61, 122, 0.4) !important;
    background: linear-gradient(135deg, #0a4da1 0%, #5baee8 100%) !important;
}

.btn-ripple:active,
button[type="submit"].btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 61, 122, 0.3) !important;
}

/* Ripple effect styles */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ====== ALERTS ====== */
.alert {
    background: rgba(220, 53, 69, 0.1) !important;
    border: 2px solid rgba(220, 53, 69, 0.3) !important;
    color: #721c24 !important;
    border-radius: 10px !important;
    animation: slideInLeft 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 12px 16px !important;
}

/* ====== HR LINE ====== */
hr {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(0, 61, 122, 0.2), transparent) !important;
    margin: 20px 0 !important;
}

/* ====== USER TYPE BUTTONS (REGISTER) ====== */
.user-type-btn {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    border-radius: 12px !important;
    border: 2px solid rgba(0, 61, 122, 0.1) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.user-type-btn:nth-child(1) { animation-delay: 0.1s; }
.user-type-btn:nth-child(2) { animation-delay: 0.2s; }
.user-type-btn:nth-child(3) { animation-delay: 0.3s; }
.user-type-btn:nth-child(4) { animation-delay: 0.4s; }
.user-type-btn:nth-child(5) { animation-delay: 0.5s; }

.user-type-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 61, 122, 0.2) !important;
    border-color: #003D7A !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.user-type-btn.active {
    border-color: #003D7A !important;
    background: linear-gradient(135deg, rgba(0, 61, 122, 0.1) 0%, rgba(74, 159, 216, 0.1) 100%) !important;
    box-shadow: 0 8px 25px rgba(0, 61, 122, 0.2) !important;
}

/* ====== RIGHT SIDE IMAGE ====== */
.col-md-7 img {
    animation: slideInRight 0.7s ease-out;
}

/* ====== FORM STEP TRANSITIONS ====== */
div[id^="step"] {
    animation: fadeInUp 0.5s ease-out;
}

/* ====== DISABLED STATE ====== */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button:disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0, 61, 122, 0.2) !important;
}
