/* 
  Modern Professional Light Theme 
  Classic Glassmorphism UI
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-gradient: radial-gradient(circle at top right, #f8fafc, #f1f5f9, #e2e8f0);
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --input-bg: rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Perfect Center Layout */
.main-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.form-wrapper-outer {
    width: 100%;
    max-width: 850px; /* Increased width for col-md-6 side-by-side */
    position: relative;
    z-index: 10;
}

/* Eye Tracking SVG Wrapper */
#face-wrapper {
    margin-bottom: -35px;
    position: relative;
    z-index: 20;
    pointer-events: none; /* Let clicks pass through to inputs if they overlap */
}

/* --- Classic Glassmorphism --- */
.interactive-form {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 60px 45px 50px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    animation: slideUpFade 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.form-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Input Styles */
.single-input {
    position: relative;
    margin-bottom: 25px;
}

.form-input {
    width: 100%;
    height: 60px;
    background: var(--input-bg);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 20px 24px 10px;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* select specific fix */
select.form-input {
    padding-top: 20px;
    cursor: pointer;
}

/* Floating Label Logic */
.floating-label label {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus + label,
.form-input:not(:placeholder-shown) + label {
    top: 15px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.single-input i {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.3s;
}

.form-input:focus ~ i {
    color: var(--primary);
}

/* Professional Button */
.button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-icon {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.button:hover .btn-icon {
    transform: translate(4px, -4px) scale(1.1);
}

.button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.35);
}

.button:active {
    transform: translateY(0) scale(0.98);
}

/* Modal Styles Refined for Light Theme */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.9);
    width: 90%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    padding: 45px 35px;
    text-align: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
    transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active, .custom-modal.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal.active {
    transform: translate(-50%, -50%) scale(1);
}

.modal-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 45px;
}

.modal-icon.success { background: #ecfdf5; color: #10b981; }
.modal-icon.error { background: #fef2f2; color: #ef4444; }

.custom-modal h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-main);
}

.custom-modal p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Animations */
.rotating-icon {
    animation: spin 1s linear infinite;
}

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

/* --- SVG Eyes Fix & Refinement --- */
#faceSVG circle, #faceSVG path {
    transition: all 0.2s ease-out;
}

/* Bootstrap Overrides */
.row { --bs-gutter-x: 24px; }
@media (max-width: 768px) {
    .interactive-form { padding: 40px 25px; }
    .main-container { padding: 40px 15px; }
}