:root {
    /* Brand Colors */
    --primary-blue: #2563EB;
    --dark-blue: #1e293b;
    --accent-orange: #F97316;

    /* Backgrounds */
    --bg-base: #F8FAFC;
    /* Clean off-white */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    /* Soft, premium shadow */

    /* Text Colors */
    --text-main: #0F172A;
    /* Deep dark blue for text */
    --text-muted: #64748B;
    --text-light: #F8FAFC;

    /* Form Inputs */
    --input-bg: #FFFFFF;
    --border-color: #E2E8F0;
    --focus-ring: rgba(37, 99, 235, 0.2);
}

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

body {
    min-height: 100vh;
    background-color: var(--bg-base);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Ambient "Aurora" Background Blobs */
/* Ambient "Aurora" Background Blobs */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    /* Stronger Blue Glow */
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    /* Sit above solid body bg */
    animation: drift 10s infinite alternate ease-in-out;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -10%;
    width: 800px;
    height: 800px;
    /* Stronger Orange Glow */
    background: radial-gradient(circle, rgba(249, 115, 22, 0.25) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    animation: drift 12s infinite alternate-reverse ease-in-out;
    pointer-events: none;
}

/* Ensure content sits above the glows */
.main-content,
.footer,
.navbar {
    position: relative;
    z-index: 10;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

/* Background Shapes */
.background-shape {
    position: fixed;
    z-index: -1;
    opacity: 0.4;
    filter: blur(80px);
    pointer-events: none;
    /* Ensure they don't block clicks */
}

.shape-1 {
    top: -10%;
    left: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
}

.shape-2 {
    bottom: -10%;
    right: -5%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
}

.shape-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}

/* Top Bar */
.top-bar {
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 100px;
    /* Increased size as requested */
    width: auto;
    object-fit: contain;
}

.company-name {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-blue);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 5;
}

/* Form Card */
.form-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-card:hover {
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* Input Fields */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 1rem 1rem 1rem 0;
    /* Left padding 0 for clean look, adjusted below */
    padding-left: 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    background: var(--input-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    cursor: text;
}

.input-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 0 0.2rem;
}

/* Floating Label Animation */
.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group select:focus~label,
.input-group select:not([value=""]):valid~label {
    top: 0;
    left: 0.8rem;
    transform: translateY(-50%) scale(0.85);
    background: white;
    /* Or match bg */
    color: var(--primary-blue);
    font-weight: 500;
    border-radius: 4px;
}

/* File Upload */
.file-upload-container {
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.3);
}

.file-upload-container:hover,
.file-upload-container.drag-over {
    border-color: var(--brand-orange);
    background: rgba(249, 115, 22, 0.05);
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--brand-orange);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.file-upload-container:hover .upload-icon {
    transform: translateY(-5px);
}

.upload-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.file-name {
    display: block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 0.9rem;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-blue), #1E40AF);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, #3B82F6, #1E3A8A);
}

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

/* Footer - Aurora Light Theme */
.footer {
    margin-top: 5rem;
    padding: 3rem 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
    color: var(--text-main);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr;
        text-align: left;
        align-items: start;
    }
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centered on mobile */
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .footer-brand {
        align-items: flex-start;
        /* Left on desktop */
    }
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: none;
    /* Cleaner look without shadow */
}

/* Brand Section */
.footer-brand h3 {
    color: var(--dark-blue);
    font-size: 1.25rem;
    font-weight: 700;
}

.tagline {
    color: var(--text-muted);
}

/* Info Section */
.info-item {
    color: var(--text-muted);
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    align-items: flex-start;
    gap: 10px;
}

.info-item:hover {
    background: transparent;
    border: none;
    transform: none;
}

.info-item svg {
    color: var(--primary-blue);
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.info-item p {
    margin: 0;
    line-height: 1.5;
}

/* Social Section */
.footer-social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-social-section {
        align-items: flex-start;
    }
}

.social-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #94A3B8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    /* Softer square */
    background: #1E293B;
    /* Dark button */
    color: #CBD5E1;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    transform: translateY(-2px);
    color: white;
    border-color: transparent;
}

.social-icon.instagram:hover {
    background: #E1306C;
}

.social-icon.linkedin:hover {
    background: #0077b5;
}

.social-icon.mail:hover {
    background: #EA4335;
}

.social-icon.whatsapp:hover {
    background: #25D366;
}

.social-icon.website:hover {
    background: var(--primary-blue);
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #64748B;
    font-size: 0.8rem;
    grid-column: 1 / -1;
    width: 100%;
}

/* Success Message */
.hidden {
    display: none !important;
}

.success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: flex-start;
    padding-top: 6rem;
    align-items: center;
    flex-direction: column;
    z-index: 20;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.5s ease;
    text-align: center;
    padding: 2rem;
    border-radius: 24px;
}

.success-content {
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-logo {
    width: 80px;
    margin-bottom: 1.5rem;
}

.success-message h2 {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

    .top-bar {
        padding: 1rem;
        justify-content: center;
    }

    .logo {
        height: auto;
        width: 180px;
        /* Make it significantly wider */
        max-width: 80%;
        /* Ensure it fits on very small screens */
    }

    .form-card {
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .form-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .footer {
        padding: 3rem 1.5rem;
        text-align: left;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        align-items: flex-start;
        text-align: left;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
    }

    .footer-info {
        align-items: flex-start;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
    }

    .footer-social-section {
        align-items: flex-start;
        text-align: left;
    }

    .info-item {
        justify-content: flex-start;
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
    }

    /* Tame background blobs on mobile */
    body::before,
    body::after {
        width: 300px;
        height: 300px;
        filter: blur(40px);
    }
}

/* Select2 Customization */
.select2-container .select2-selection--single {
    height: 3.5rem !important;
    /* Match input height */
    padding: 0 1rem;
    font-size: 1rem;
    color: var(--text-main);
    background: var(--input-bg) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.select2-container .select2-selection--single:focus-within {
    border-color: var(--primary-blue) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-main) !important;
    line-height: normal !important;
    padding-left: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 1rem !important;
}

.select2-dropdown {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    z-index: 9999;
}

.select2-search__field {
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 0.5rem !important;
}

.select2-results__option {
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem;
}

.select2-results__option--highlighted {
    background: #EFF6FF !important;
    /* Light blue */
    color: var(--primary-blue) !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--text-muted) !important;
}

/* Adjust label visibility for Select2 */
.input-group:has(.select2) label {
    z-index: 10;
    display: none;
    /* Hide default label as Select2 has placeholder */
}

/* --- Modal Overlay & Card --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    /* Dark backdrop */
    backdrop-filter: blur(8px);
    z-index: 99999;
    /* Boosted for mobile safety */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.modal-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 2rem;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeIn 0.5s ease;
}

.modal-state h2 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-state p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* Spinner Large */
.spinner-large {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(37, 99, 235, 0.1);
    border-left-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success Checkmark Animation */
.success-animation {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #22c55e;
    /* Green */
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #22c55e;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #22c55e;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #dcfce7;
    }

    /* Light green bg */
}

/* Hide Form Class */
.form-hidden {
    opacity: 0 !important;
    transform: scale(0.95);
    pointer-events: none;
    transition: all 0.5s ease;
}

.hidden {
    display: none !important;
}

/* Blur Effect Class */
.blur-effect-active form {
    filter: blur(8px);
    pointer-events: none;
    transition: filter 0.5s ease;
    opacity: 0.4;
}

/* Error Message Below Field */
.error-msg {
    display: block;
    color: #ef4444;
    /* Red color */
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
    /* Reserve space */
    font-weight: 500;
    transition: all 0.3s ease;
}