/*
 * Biocellar - Premium Biotech Custom CSS
 * Layered on top of Bootstrap 5.
 */

:root {
    --bg-dark: #060b0e;
    --bg-card: rgba(13, 22, 28, 0.75);
    --border-color: rgba(16, 185, 129, 0.15);
    --border-hover: rgba(6, 182, 212, 0.4);
    
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --bg-glow: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.02) 50%, transparent 100%);
    
    --emerald-glow: 0 0 20px rgba(16, 185, 129, 0.35);
    --cyan-glow: 0 0 20px rgba(6, 182, 212, 0.35);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

body {
    background-color: var(--bg-dark);
    background-image: var(--bg-glow), radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 2rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glassmorphism Containers */
.biocellar-container {
    max-width: 950px;
    width: 95%;
    margin: auto;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    padding: 3rem;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.glass-card:hover {
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.05);
}

/* Info Section Content */
.info-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.feature-list {
    margin-top: 2rem;
    padding-left: 0;
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.feature-icon-wrapper {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Premium Form Elements */
.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.form-control-cyber {
    background-color: rgba(8, 14, 18, 0.6) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease !important;
}

.form-control-cyber::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.8;
}

.form-control-cyber:focus {
    background-color: rgba(8, 14, 18, 0.9) !important;
    border-color: #06b6d4 !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2) !important;
    outline: none !important;
}

/* Custom Styled Select Dropdown */
select.form-control-cyber {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2310b981' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px !important;
    padding-right: 2.5rem !important;
}

select.form-control-cyber option {
    background-color: #0d1519;
    color: var(--text-primary);
}

/* Submit Button */
.btn-cyber {
    background: var(--primary-gradient);
    border: none;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-cyber:hover {
    transform: translateY(-2px);
    box-shadow: var(--emerald-glow), 0 5px 15px rgba(16, 185, 129, 0.3);
    color: #ffffff;
}

.btn-cyber:hover::before {
    opacity: 1;
}

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

/* Validation Styling */
.is-invalid {
    border-color: #ef4444 !important;
}

.invalid-feedback {
    color: #ef4444 !important;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: none;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Custom Loading Spinner */
.spinner-border-cyber {
    width: 1.25rem;
    height: 1.25rem;
    border-width: 0.15em;
    margin-right: 0.5rem;
    display: none;
}

/* Success Card States */
.form-panel {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.success-panel {
    display: none;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-align: center;
}

.success-panel.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

/* Animated Checkmark Circle */
.checkmark-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    position: relative;
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--emerald-glow);
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.checkmark-icon {
    font-size: 3rem;
    color: #10b981;
    opacity: 0;
    transform: scale(0.5);
    animation: popIn 0.3s 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Footer Section */
.footer-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 3rem;
    text-align: center;
}

.footer-text a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-text a:hover {
    color: #10b981;
}

/* Media Queries */
@media (max-width: 768px) {
    body {
        padding: 1rem 0;
    }
    
    .glass-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .biocellar-container {
        width: 100%;
        padding: 0 1rem;
    }
    
    .info-section {
        margin-bottom: 2rem;
    }
}
