:root {
    --primary: #013c60;
    --primary-hover: #012a43;
    --secondary: #000000;
    --accent: #013c60;
    --bg-color: #FFFFFF;
    --card-bg: #FFFFFF;
    --text-main: #000000;
    --text-muted: #555555;
    --border-color: #E2E8F0;
    --focus-ring: rgba(1, 60, 96, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --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 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(15, 118, 110, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.glow-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    background: radial-gradient(circle 600px at 50% 50%, rgba(255, 255, 255, 0.05), transparent 80%);
    transition: background 0.1s ease;
}

.waves-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    z-index: -1;
    pointer-events: none;
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100px;
    max-height: 300px;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 17s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 20s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 23s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 30s; }

@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}

/* Typography & Colors */
.text-primary-custom { color: var(--primary) !important; }
.text-dark-custom { color: var(--text-main) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.bg-light-custom { background-color: var(--bg-color) !important; }

/* Hero Section */
.hero-section {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.shape {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

.shape-1 {
    top: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

.shape-2 {
    bottom: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

/* Logo Styling & Animation */
.logo-container {
    width: 65px;
    height: 65px;
    background: var(--card-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: pulseGlow 2.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.hero-illustration {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.hero-illustration:hover {
    transform: translateY(-10px);
}

/* Cards */
.premium-card {
    border-radius: var(--radius-lg);
    background-color: var(--card-bg);
    z-index: 2;
    position: relative;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(226, 232, 240, 0.5);
}

.section-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-main);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}

/* Form Controls */
.form-floating > label {
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
}

.custom-input, .custom-select {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    background-color: #F8FAFC !important;
    min-height: 56px;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.custom-input:focus, .custom-select:focus {
    background-color: #FFFFFF !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--focus-ring) !important;
}

.char-count {
    position: absolute;
    bottom: -20px;
    right: 5px;
    font-size: 0.75rem;
}

/* Radios and Checkboxes */
.custom-radio .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border-color: var(--border-color);
    margin-top: 0.15rem;
}

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

.custom-radio .form-check-input:focus {
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.custom-radio-group {
    flex-wrap: wrap;
}

.custom-checkbox .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
    border-color: var(--border-color);
}

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

.custom-checkbox .form-check-input:focus {
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.custom-checkbox label {
    line-height: 1.5;
    margin-top: 0.15rem;
}

/* File Upload */
.upload-area {
    border: 2px dashed var(--border-color);
    background-color: #F8FAFC;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
    background-color: rgba(15, 118, 110, 0.02);
}

.upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-badge {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 2rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(1, 60, 96, 0.39);
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 60, 96, 0.23);
    color: white;
}

.btn-primary-custom:active {
    transform: translateY(0);
}

.btn-primary-custom.loading .btn-text {
    opacity: 0;
}

.btn-primary-custom.loading .spinner-border {
    display: inline-block !important;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .premium-card {
        margin-top: 0;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .custom-input, .custom-select {
        min-height: 50px;
    }
    
    .custom-radio-group {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .header-content {
        flex-direction: column !important;
        text-align: center;
    }
    
    /* Shrink Logo */
    .logo-container {
        width: 60px !important;
        height: 60px !important;
        padding: 6px !important;
        border-radius: 14px !important;
    }
    
    .header-content .logo-container {
        margin-right: 0 !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Shrink Title & Subtitle */
    .header-content h2 {
        font-size: 1.25rem !important;
    }
    
    .header-content p {
        font-size: 0.85rem !important;
    }
}

/* Animated Checkmark */
.success-checkmark-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.animated-check {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 4;
    stroke: #ffffff;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--primary);
    animation: checkFill .4s ease-in-out .4s forwards, checkScale .3s ease-in-out .9s both;
}
.animated-check-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: var(--primary);
    fill: none;
    animation: checkStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.animated-check-path {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #ffffff;
    animation: checkStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
@keyframes checkStroke {
    100% { stroke-dashoffset: 0; }
}
@keyframes checkScale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}
@keyframes checkFill {
    100% { box-shadow: inset 0px 0px 0px 60px var(--primary); }
}
