/* ============================================
   PROFESSIONAL TRUSTWORTHY DESIGN
   ============================================ */

/* Import Professional Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables for Professional Theme */
:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #059669;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-light: #eff6ff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Professional Background Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%),
        url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    z-index: -1;
    pointer-events: none;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.preloader::after {
    content: '';
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Sticky Banner / Header */
.sticky-banner {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    text-align: center;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    
    border-bottom: 3px solid var(--primary-color);
    transition: var(--transition);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    animation: fadeInDown 0.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo img {
    max-width: 100%;
    height: auto;
   
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo img:hover {
    transform: scale(1.02);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Headings */
h1 {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 35px 20px 15px;
    animation: fadeIn 0.6s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

h3 {
    color: rgba(255, 255, 255, 0.95) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.15rem;
    font-weight: 400;
    text-align: center;
    margin: 0 20px 35px;
    line-height: 1.7;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.8s ease-out;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Column Layout */
.column {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
    color: white;
    text-align: center;
    gap: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.text {
    font-size: 20px;
    margin: 10px 0;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

/* Main Content Area */
main {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-grow: 1;
    padding: 20px;
    animation: fadeIn 0.6s ease-out;
}

/* Form Container */
.form-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    position: relative;
}

.form-container:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

/* Form Styles */
.user-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Select Container */
.select-container {
    display: flex;
    align-items: center;
    background-color: #f9fafb;
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    border: 2px solid #e5e7eb;
    transition: var(--transition);
}

.select-container:hover {
    border-color: var(--primary-light);
    background-color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04), 0 0 0 3px rgba(30, 64, 175, 0.05);
}

.select-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04), 0 0 0 4px rgba(30, 64, 175, 0.1);
    background-color: #ffffff;
}

.select-container i {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 18px;
}

.select-wrapper {
    position: relative;
    flex: 1;
}

.custom-select {
    width: 100%;
    padding: 8px 32px 8px 10px;
    font-size: 15px;
    color: var(--text-primary);
    background: transparent;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.select-wrapper::after {
    content: "\f078";
    font-family: "FontAwesome";
    font-size: 13px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
    transition: var(--transition);
}

.select-container:focus-within .select-wrapper::after {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary-color);
}

.custom-select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 var(--text-primary);
}

/* Input Container */
.input-container {
    position: relative;
    width: 100%;
}

.input-container i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
    transition: var(--transition);
    z-index: 1;
}

.input-container input {
    padding: 16px 18px 16px 50px;
    font-size: 15px;
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    background: #f9fafb;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

.input-container input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.input-container input:hover {
    border-color: var(--primary-light);
    background-color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04), 0 0 0 3px rgba(30, 64, 175, 0.05);
}

.input-container input:focus {
    border-color: var(--primary-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04), 0 0 0 4px rgba(30, 64, 175, 0.1);
    background-color: #ffffff;
}

.input-container input:focus ~ i {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.05);
}

/* Validation Icons */
.input-container input:valid:not(:placeholder-shown) {
    border-color: var(--success-color);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2310b981" viewBox="0 0 16 16"><path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Submit Button */
.user-form button {
    padding: 17px 28px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.user-form button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.user-form button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e3a8a 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.5);
}

.user-form button:hover::after {
    left: 100%;
}

.user-form button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.4);
}

/* Banner Container */
.banner-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.banner-slide {
    display: none;
    width: 100%;
    transition: opacity 0.3s ease;
}

.banner-slide.active {
    display: block;
}

.banner-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    text-align: center;
    width: 100%;
    padding: 25px 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    margin-top: 40px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    border-top: 3px solid rgba(255, 255, 255, 0.2);
}

footer p {
    margin: 8px 0;
    font-size: 13px;
    opacity: 0.95;
}

footer p:first-child {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

footer p:first-child::before {
    content: '✓';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--success-color);
    border-radius: 50%;
    line-height: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* Loading State for Inputs */
.input-container input:disabled {
    background: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        margin: 25px 15px 12px;
    }

    h3 {
        font-size: 1rem;
        margin: 0 15px 25px;
    }

    .form-container {
        padding: 35px 25px;
        margin: 0 15px;
    }
}

@media (max-width: 600px) {
    main {
        padding: 15px 10px;
    }

    .form-container {
        padding: 30px 20px;
        border-radius: 12px;
        margin: 0 10px;
    }

    .user-form {
        gap: 18px;
    }

    .user-form button {
        font-size: 15px;
        padding: 16px 24px;
        letter-spacing: 0.8px;
    }

    .input-container input {
        font-size: 15px;
        padding: 15px 15px 15px 48px;
    }

    .input-container i {
        left: 16px;
        font-size: 17px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 0.95rem;
    }

    .column {
        flex-direction: column;
        gap: 10px;
    }

    .text {
        font-size: 18px;
    }

    footer {
        padding: 20px 15px;
        margin-top: 35px;
    }

    footer p {
        font-size: 12px;
    }

    .logo::before {
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    .form-container {
        padding: 25px 18px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .input-container input {
        padding: 14px 14px 14px 46px;
    }

    .user-form button {
        padding: 15px 20px;
        font-size: 14px;
    }
}

/* Accessibility Improvements */
.input-container input:focus,
.custom-select:focus,
.user-form button:focus {
    outline: 3px solid rgba(30, 64, 175, 0.5);
    outline-offset: 3px;
}

.user-form button:focus {
    outline-color: rgba(255, 255, 255, 0.8);
}

/* Print Styles */
@media print {
    .sticky-banner,
    footer,
    .banner-container {
        display: none;
    }

    body {
        background: white;
    }

    .form-container {
        box-shadow: none;
        border: 2px solid #000;
    }
}

/* 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;
    }
}

/* Additional Professional Touches */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}