        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            line-height: 1.6;
            color: var(--text);
            background: var(--bg);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
        }

        .main-content {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 120px;
            width: 100%;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
        }

        
        .card {
            background: var(--card);
            border: 1px solid var(--stroke);
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg);
            overflow: hidden;
            animation: slideUp 0.5s ease-out;
            width: 100%;
        }

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

        /* Header */
        .card-header {
            background: linear-gradient(135deg, var(--bg-2) 0%, #0a1017 100%);
            border-bottom: 1px solid var(--stroke);
            color: var(--text);
            padding: 40px 20px;
            text-align: center;
        }

        .card-header h1 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .card-header p {
            color: var(--muted);
            font-size: 1rem;
        }

        .form-container {
            padding: 40px 20px;
        }

        .form-selector {
            margin-bottom: 32px;
            text-align: center;
        }

        .form-selector label {
            display: block;
            margin-bottom: 12px;
            font-weight: 600;
            color: var(--text);
            font-size: 1.1rem;
        }

        .form-type-select {
            width: 100%;
            max-width: 400px;
            padding: 14px 20px;
            border: 1px solid var(--stroke);
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 500;
            color: var(--text);
            background: var(--bg-2);
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 0 auto;
            display: block;
        }

        .form-type-select:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-muted);
        }

        .form-type-select option {
            background: var(--card);
            color: var(--text);
        }

        /* Form Sections */
        .form-section {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .form-section.active {
            display: block;
        }

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

        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .form-group {
            width: 100%;
            margin-bottom: 0;
        }

         .form-group.full-width {
            width: 100%;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text);
            font-size: 0.95rem;
        }

        .required::after {
            content: " *";
            color: var(--accent-3);
        }

        input, select, textarea {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--stroke);
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s ease;
            font-family: inherit;
            background: var(--bg-2);
            color: var(--text);
        }

        input::placeholder, textarea::placeholder {
            color: var(--muted);
            opacity: 0.7;
        }

        input:focus, select:focus, textarea:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-muted);
        }

        textarea {
            min-height: 120px;
            resize: vertical;
        }

        .job-dropdown-container {
            position: relative;
            width: 100%;
        }

        .job-dropdown-select {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--stroke);
            border-radius: 8px;
            font-size: 1rem;
            background-color: var(--bg-2);
            color: var(--text);
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8c3cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 16px center;
            background-size: 16px;
        }

        .job-dropdown-select:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-muted);
        }

        /* File Upload */
        .file-upload-area {
            border: 2px dashed var(--stroke);
            border-radius: 8px;
            padding: 30px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: var(--bg-2);
        }

        .file-upload-area:hover {
            border-color: var(--accent);
            background: rgba(23, 162, 255, 0.06);
        }

        .upload-icon {
            font-size: 2rem;
            color: var(--accent);
            margin-bottom: 12px;
            opacity: 0.9;
        }

        .upload-text {
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--text);
        }

        .upload-subtext {
            color: var(--muted);
            font-size: 0.875rem;
        }

        .file-list {
            margin-top: 16px;
        }

        .file-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: var(--bg-2);
            border-radius: 8px;
            margin-bottom: 8px;
            border: 1px solid var(--stroke);
            animation: slideIn 0.3s ease;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-10px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .file-icon {
            color: var(--accent);
        }

        .file-info {
            flex: 1;
        }

        .file-name {
            font-weight: 500;
            font-size: 0.95rem;
            color: var(--text);
        }

        .file-size {
            font-size: 0.75rem;
            color: var(--muted);
        }

        .file-remove {
            color: var(--accent-3);
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        .file-remove:hover {
            background: rgba(255, 107, 107, 0.12);
        }

        .submit-section {
            width: 100%;
            text-align: center;
            margin-top: 24px;
        }

        .submit-btn {
            background: var(--accent);
            color: #04121e;
            border: none;
            padding: 16px 48px;
            font-size: 1.125rem;
            font-weight: 700;
            border-radius: 999px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 12px;
        }

        .submit-btn:hover {
            background: var(--accent-2);
            transform: translateY(-2px);
            box-shadow: var(--shadow-glow);
        }

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

        .submit-btn:disabled {
            background: var(--stroke);
            color: var(--muted);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* Status Messages */
        .status-message {
            padding: 16px;
            border-radius: 8px;
            margin-top: 20px;
            text-align: center;
            font-weight: 500;
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .status-success {
            background: rgba(103, 232, 166, 0.12);
            color: var(--accent-2);
            border: 1px solid rgba(103, 232, 166, 0.35);
            display: block;
        }

        .status-error {
            background: rgba(255, 107, 107, 0.12);
            color: var(--accent-3);
            border: 1px solid rgba(255, 107, 107, 0.35);
            display: block;
        }

        .spinner {
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
            display: inline-block;
        }

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

        footer {
            background: #0f151c;
            padding: clamp(3rem, 6vw, 4rem) 0 0;
            margin-top: auto;
            position: relative;
            border-top: 1px solid #223040;
            width: 100%;
            left: 0;
            right: 0;
        }

        footer .container,
        .footer-social-section .container {
            width: 100% !important;
            max-width: 100% !important;
            padding: 0 15px !important;
            margin: 0 auto !important;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 3rem;
            margin-bottom: 3rem;
            padding: 0 15px !important;
            max-width: 1200px;
            margin: 0 auto 3rem auto;
        }
        

        .footer-section h3 {
            color: #17a2ffdb;
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .footer-section:last-child .footer-contact-info {
            padding-top: 1.65rem;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.75rem;
        }

        .footer-links a {
            color: #b8c3cc;
            transition: color 120ms ease;
            font-size: 0.95rem;
            text-decoration: none;
        }

        .footer-links a:hover {
            color: #17a2ffdb;
            text-decoration: none;
        }

        .footer-contact-info {
            color: #b8c3cc;
            font-size: 0.95rem;
            line-height: 1.6;
            margin-top: -1.5rem;
        }

        .footer-contact-info p:first-child {
            margin-bottom: 0.5rem !important; 
        }

        .footer-contact-info p {
            margin-bottom: 0.75rem;
        }

        .footer-contact-info a {
            color: #b8c3cc;
            transition: color 120ms ease;
            text-decoration: none;
        }

        .footer-contact-info a:hover {
            color: #17a2ffdb;
        }

        /* Social media icons in footer bottom */
        .footer-social-section {
            background: #131a22;
            padding: 2rem 0;
            border-top: 1px solid #223040;
        }

        .footer-social {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        .social-icons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .social-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #0f151c;
            color: #e9eef2;
            font-size: 1.1rem;
            transition: all 120ms ease;
            border: 1px solid #223040;
            text-decoration: none;
        }

        .social-icon:hover {
            background: #17a2ffdb;
            color: #0a0f14;
            transform: translateY(-3px);
            border-color: #17a2ffdb;
        }

        .copyright {
            color: #b8c3cc;
            font-size: 0.9rem;
        }

        .footer-contact-info strong {
            color: #17a2ffdb;
            font-weight: 700;
            font-size: 1.1rem;
        }

        @media (max-width: 992px) {
            .footer-content {
                grid-template-columns: repeat(2, 1fr);
                gap: 2rem;
            }
        }

        /* Fix for mobile & tablet: prevent navbar overlap & form shrinking */
@media (max-width: 880px) {
    .main-content {
        padding: 90px 20px 40px !important; /* top: clears navbar, sides: comfortable, bottom: space */
        align-items: flex-start !important;  /* content sticks to top – no more vertical centering */
        box-sizing: border-box;               /* padding included in width/height – no shrinkage */
    }
}

        @media (max-width: 768px) {
            .footer-content {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            
            .footer-social {
                flex-direction: column;
                gap: 1.5rem;
                text-align: center;
            }
            
            .social-icons {
                gap: 0.75rem;
                justify-content: center;
            }

            /* Adjust main content for mobile */
            .main-content {
                padding: 20px;
            }
            
            .form-container {
                padding: 24px 20px;
            }
            
            .card-header {
                padding: 24px 20px;
            }
            
            .card-header h1 {
                font-size: 1.75rem;
            }
        }

        @media (max-width: 480px) {
            .form-container {
                padding: 20px 16px;
            }

            .card-header {
                padding: 20px 16px;
            }

            .card-header h1 {
                font-size: 1.5rem;
            }
            
            .form-type-select {
                max-width: 100%;
            }
        }

        /* Keep submission follow-up within the existing contact card. */
        .pev-refined .contact-fallback { width: 100%; box-sizing: border-box; border: 1px solid var(--stroke); border-radius: 14px; padding: 18px; margin-top: 16px; font-size: .83rem; line-height: 1.7; text-align: left; }
        .pev-refined .contact-fallback[hidden], .pev-refined .contact-copy-text[hidden], .pev-refined .contact-attachment-note[hidden] { display: none !important; }
        .pev-refined .contact-fallback p { margin: 0 0 12px; color: var(--muted); overflow-wrap: anywhere; }
        .pev-refined .contact-fallback-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
        .pev-refined .contact-draft-link { color: var(--accent-2); text-underline-offset: 3px; }
        .pev-refined .contact-copy-button { font: inherit; padding: 8px 14px; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--stroke); border-radius: 12px; cursor: pointer; }
        .pev-refined .contact-copy-button:focus-visible, .pev-refined .contact-draft-link:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }
        .pev-refined .contact-copy-text { display: block; box-sizing: border-box; width: 100%; min-height: 180px; margin-top: 15px; padding: 12px; background: var(--bg); color: var(--text); border: 1px solid var(--stroke); border-radius: 10px; resize: vertical; }
        .pev-refined .contact-attachment-note { font-size: .8rem; margin-top: 13px; }
        .pev-refined .contact-fallback [role="status"]:empty { display: none; }
        .pev-refined .status-message { overflow-wrap: anywhere; }

        /* Contact form specific responsive */
        @media (max-width: 768px) {
            .contact-form {
                gap: 16px;
            }

            .submit-btn {
                width: 100%;
                justify-content: center;
            }
        }
    
/* A purpose-specific entry keeps its service/routing context visible and fixed.
   Hidden selectors/irrelevant sections stay absent despite existing form CSS. */
body .form-selector[hidden], body .form-section[hidden], body .form-group[hidden], body #contact-context-back[hidden] { display:none !important; }
body #contact-context-back { display:inline-block; margin-top:.75rem; color:#67e8a6; text-decoration:underline; }
body #contact-heading { overflow-wrap:anywhere; }

/* A typo hint asks for an explicit choice; it never silently rewrites email.
   Buttons wrap naturally in the narrow dedicated application and Contact. */
.email-address-suggestion { margin-top:.75rem; padding:.75rem; border:1px solid #67e8a6; border-radius:.6rem; color:#f5f7fa; background:#10221b; overflow-wrap:anywhere; }
.email-address-suggestion p { margin:0 0 .5rem; }
.email-address-suggestion button { min-height:44px; max-width:100%; margin:.2rem .4rem .2rem 0; padding:.55rem .75rem; border:1px solid #67e8a6; border-radius:.4rem; color:#67e8a6; background:#10221b; font:inherit; cursor:pointer; }
.email-address-suggestion button:focus-visible { outline:2px solid #8cc8ff; outline-offset:3px; }
