/* Make form-section background white with subtle border and shadow */
/* ===========================
   Corporate Font Declarations
   =========================== */

@font-face {
  font-family: 'Invention';
  src: url('/fonts/Invention_W_Rg.woff2') format('woff2'),
       url('/fonts/Invention_W_Rg.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Invention';
  src: url('/fonts/Invention_W_It.woff2') format('woff2'),
       url('/fonts/Invention_W_It.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Invention';
  src: url('/fonts/Invention_W_Lt.woff2') format('woff2'),
       url('/fonts/Invention_W_Lt.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Invention';
  src: url('/fonts/Invention_W_LtIt.woff2') format('woff2'),
       url('/fonts/Invention_W_LtIt.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Invention';
  src: url('/fonts/Invention_W_Bd.woff2') format('woff2'),
       url('/fonts/Invention_W_Bd.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Invention';
  src: url('/fonts/Invention_W_BdIt.woff2') format('woff2'),
       url('/fonts/Invention_W_BdIt.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ===========================
   Global font application
   =========================== */

body {
  font-family: 'Invention', sans-serif;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  padding: 0;
  /* Add any other global styles you want */
}

/* Example usage of font weights and styles */

h1, h2, h3, strong {
  font-weight: 700; /* Bold */
}

em, i {
  font-style: italic;
}

.light {
  font-weight: 300;
}

.light-italic {
  font-weight: 300;
  font-style: italic;
}


.form-section {
    background: #fff !important;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    padding: 24px 20px;
    margin-bottom: 24px;
}
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Invention', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Main layout container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation Bar - Black background with increased height */
.navbar {
    background-color: black;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 90px;
    max-width: none;
    width: 100%;
}

.navbar-left {
    display: flex;
    align-items: flex-end;
    gap: 40px;
    background: transparent;
    border: none;
}

/* Logo section with app title */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -10px;
}

.logo {
    height: 60px;
    width: auto;
    margin-bottom: -10px;
}
.app-title {
    display: block;
    text-align: center;
    margin-left: 0;
    margin-top: 5px;
    font-family: 'Invention', sans-serif;
    font-size: 20px;
    font-weight: 700; /* Maximum available */
    letter-spacing: 0.5px;
    font-variant: small-caps;
    transform: scaleX(1.15); /* Makes all letters wider */
    transform-origin: center;
    color: #00857C;
    line-height: 1;
    -webkit-text-stroke: 0.5px #00857C; /* Add stroke to make thicker */
    text-stroke: 0.5px #00857C;
}

.e-teal {
    color: #FFFFFF !important;
    font-variant: inherit;
    font-size: 16px;
    margin-right: 0.5px;
    -webkit-text-stroke: 0.5px #00857C; /* Match stroke to text color */
    text-stroke: 0.5px #00857C;
}

.ontracts-text {

    font-size: 16px; /* Adjust to your preference */

    font-variant: inherit; /* Keep small-caps */

}

.e-lower {
    font-size: 18px; /* Slightly smaller lowercase e */
}

.c-capital {
    font-size: 20px; /* Regular capital C */
}

.rest-smallcaps {
    font-size: 16px; /* Smaller capitals to simulate small-caps */
}

/* Remove .rest-smallcaps styling - let it inherit from parent */


/* Teal highlight color style */
.teal-highlight {
    color: #009999 !important;
}

/* Tabs container - Full width and centered */
.nav-tabs {
    display: flex !important;
    list-style: none !important;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    justify-content: center;
    max-width: 800px;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
}

.nav-tab {
    position: relative;
    flex: 1;
    max-width: 200px;
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

/* Tab styling - Black background with white text */
/* .nav-tab a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: white;
    background-color: black;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 0;
} */

.nav-tab a:hover {
    background-color: rgba(206,255,241,0.2);
    color: white;
}

/* Active tab - Teal background with white text */
/* .nav-tab.active a {
    color: white !important;
    background-color: #009999 !important;
    position: relative;
    z-index: 2;
    border-radius: 4px;
    margin: 0;
} */

/* Focus styles for accessibility */
.nav-tab a:focus {
    outline: 3px solid #007acc;
    outline-offset: 2px;
    z-index: 3;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    text-align: right;
    font-size: 14px;
    color: white;
}

.user-name {
    font-weight: 600;
    color: white;
}

.user-role {
    color: #ccc;
    font-size: 12px;
}

.logout-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.logout-btn:hover {
    background-color: #c82333;
    color: #009999;
}

.logout-btn:focus {
    outline: 3px solid #007acc;
    outline-offset: 2px;
}

/* Main Content Area - Closer to tabs */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 20px 20px 20px;
    overflow: auto;
}

.content-area {
    background-color: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.content-title {
    font-size: 24px;
    font-weight: 600;
    color: #009999;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    flex-shrink: 0;
}

.content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    flex: 1;
    overflow: auto;
}

/* Tab content styling */
.tab-content {
    height: 100%;
}

.tab-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.tab-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.tab-content li {
    margin-bottom: 8px;
}

.stats-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid;
}

.stats-box.primary {
    background-color: #e8f4fd;
    border-left-color: #0066cc;
}

.stats-box.warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
}

.stats-box.info {
    background-color: #d1ecf1;
    border-left-color: #17a2b8;
}

/* Form styling for contract eligibility */
.contract-form {
    max-width: 800px;
}

.eligibility-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: 2px solid #009999;
    border-color: #009999;
}

.form-section {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.form-section legend {
    font-weight: 600;
    color: #009999;
    padding: 0 10px;
}

/* Form action buttons */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-start;
}

.submit-btn, .reset-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn {
    background-color: #009999;
    color: white;
}

.submit-btn:hover {
    background-color: #007777;
}

.reset-btn {
    background-color: #6c757d;
    color: white;
}

.reset-btn:hover {
    background-color: #545b62;
}

.submit-btn:focus, .reset-btn:focus {
    outline: 3px solid #007acc;
    outline-offset: 2px;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #009999;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Footer/Disclaimer */
.disclaimer {
    background-color: #f8f9fa;
    color: #666;
    padding: 10px;
    text-align: center;
    font-size: 8px;
    line-height: 1.5;
    flex-shrink: 0;
    border-top: 1px solid #e0e0e0;
}

.disclaimer h4 {
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 600;
    color: #333;
}

.disclaimer a {
    color: #009999;
    text-decoration: none;
}

.disclaimer a:hover {
    text-decoration: underline;
}

.disclaimer a:focus {
    outline: 2px solid #009999;
    outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-tab a {
        border-width: 3px;
    }
    
    .nav-tab.active a {
        border-width: 3px;
        font-weight: 700;
    }
    
    .content-area {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .nav-tab a,
    .logout-btn,
    .loading::after {
        transition: none;
        animation: none;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
        align-items: center;
    }

    .navbar-left {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        align-items: center;
    }

    .nav-tabs {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }

    .nav-tab {
        flex: 1;
        min-width: 100px;
        max-width: 140px;
    }

    .nav-tab a {
        padding: 12px 8px;
        font-size: 11px;
    }

    .navbar-right {
        flex-direction: row;
        gap: 15px;
        justify-content: center;
    }

    .main-container {
        padding: 0 10px 10px 10px;
    }

    .content-area {
        padding: 20px;
        border-radius: 8px;
        margin-top: 5px;
    }

    .user-info {
        text-align: center;
    }

    .logo {
        height: 50px;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .nav-tabs {
        flex-direction: column;
        width: 100%;
        gap: 2px;
    }

    .nav-tab {
        width: 100%;
        max-width: none;
    }

    .nav-tab a {
        text-align: center;
        padding: 14px;
        border-radius: 6px;
        margin-bottom: 2px;
    }

    .nav-tab.active a {
        border-radius: 6px;
    }

    .content-area {
        border-radius: 8px;
        margin-top: 10px;
    }

    .navbar-right {
        flex-direction: column;
        gap: 10px;
    }
}

/* Initial page styles */
.welcome-section {
    padding: 20px 0;
}

.auth-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #009999;
}

.auth-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.auth-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.auth-btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.register-btn {
    background-color: #009999;
    color: white;
    border-color: #009999;
}

.register-btn:hover {
    background-color: #007777;
    color: white;
    border-color: #007777;
    transform: translateY(-1px);
}

.login-btn {
    background-color: transparent;
    color: #009999;
    border-color: #009999;
}

.login-btn:hover {
    background-color: #009999;
    color: white;
    transform: translateY(-1px);
}

/* FAQ page styles */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #009999;
}

.faq-item h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Forms page styles */
.forms-section {
    max-width: 800px;
    background: white;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.form-category {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #009999;
}

.form-category h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.form-category ul {
    list-style: none;
}

.form-category li {
    margin-bottom: 10px;
}

.form-category a {
    color: #009999;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-category a:hover {
    color: #007777;
    text-decoration: underline;
}

/* Contact page styles */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-method {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #009999;
}

.contact-method h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-method p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-method strong {
    color: #333;
}

/* Responsive design for auth options */
@media (max-width: 768px) {
    .auth-options {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .auth-card {
        padding: 25px;
    }
    
    .forms-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===================================================================
   UNIVERSAL BUTTON STYLING - Apply to all buttons across application
   =================================================================== */

/* Universal button styling for consistent appearance */
.btn, button, input[type="submit"], input[type="button"], input[type="reset"],
.submit-btn, .reset-btn, .btn-primary, .btn-secondary, .btn-outline-primary, 
.btn-outline-secondary, .btn-link, .btn-success, .btn-warning, .btn-danger,
.btn-info, .btn-light, .btn-dark {
    background: white !important;
    border: 2px solid #333 !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    color: #333 !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    min-width: auto !important;
    cursor: pointer !important;
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover, input[type="reset"]:hover,
.submit-btn:hover, .reset-btn:hover, .btn-primary:hover, .btn-secondary:hover, 
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-link:hover,
.btn-success:hover, .btn-warning:hover, .btn-danger:hover, .btn-info:hover, 
.btn-light:hover, .btn-dark:hover {
    background: #009999 !important;
    color: white !important;
    border-color: #009999 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 153, 153, 0.3) !important;
    text-decoration: none !important;
}

/* Special sizing for small icon buttons like captcha refresh/audio */
.btn.p-0, button.p-0 {
    padding: 8px !important;
    min-width: 40px !important;
}

/* Large button variant */
.btn-lg {
    padding: 16px 40px !important;
    font-size: 1.1rem !important;
}

/* Small button variant */
.btn-sm {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
}

/* Focus states for accessibility */
.btn:focus, button:focus, input[type="submit"]:focus, input[type="button"]:focus, input[type="reset"]:focus {
    outline: 2px solid #009999 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 3px rgba(0, 153, 153, 0.2) !important;
}

/* Disabled button states */
.btn:disabled, button:disabled, input[type="submit"]:disabled, input[type="button"]:disabled, input[type="reset"]:disabled,
.btn.disabled, button.disabled {
    background: #666 !important;
    border-color: #666 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled:hover, button:disabled:hover, input[type="submit"]:disabled:hover, 
input[type="button"]:disabled:hover, input[type="reset"]:disabled:hover,
.btn.disabled:hover, button.disabled:hover {
    background: #666 !important;
    border-color: #666 !important;
    color: #999 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ===================================================================
   BLACK BUTTON STYLING - Alternative button style (like initial.html)
   =================================================================== */

/* Black button styling for special cases like welcome pages */
.welcome-container .btn, .btn-black {
    margin: 10px;
    min-width: 120px;
    background: #333 !important;
    border: 2px solid #333 !important;
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    text-decoration: none;
    display: inline-block;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

/* ===================================================================
   REUSABLE FORM STYLING - Based on register.html design
   =================================================================== */

/* Form Sections with teal left border */
.form-section {
    border-left: 3px solid #009999 !important;
    padding-left: 15px !important;
    margin-bottom: 25px !important;
}

.form-section h5 {
    color: #009999 !important;
    margin-bottom: 15px !important;
    font-weight: bold !important;
}

/* Form Labels */
.form-label, label:not(.form-check-label) {
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    color: #000 !important;
    font-weight: 500 !important;
}

/* Checkbox alignment fix */
.form-check {
    display: flex !important;
    align-items: flex-start !important;
}

.form-check-input {
    margin-top: 0.25rem !important;
    margin-right: 0.5rem !important;
    flex-shrink: 0 !important;
}

.form-check-label {
    display: inline !important;
    text-align: left !important;
    line-height: 1.5 !important;
    margin-left: 0 !important;
    color: #000 !important;
}

/* Form Container (welcome-container style) */
.form-container {
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    padding: 40px !important;
    max-width: 800px !important;
    width: 100% !important;
    margin: 0 auto !important;
}


/* Logo styling */
.merck-logo {
    max-height: 60px !important;
    margin-bottom: 20px !important;
}

/* Badge styling for external forms */
.external-badge {
    background: white !important;
    color: black !important;
    padding: 8px 20px !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    display: inline-block !important;
    margin-bottom: 20px !important;
    border: 2px solid #009999 !important;
}

/* Badge styling for internal forms */
.internal-badge {
    background: linear-gradient(135deg, #009999 0%, #007777 100%) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    display: inline-block !important;
    margin-bottom: 20px !important;
}

/* Form Controls Enhancement */
.form-control, .form-select {
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.form-control:focus, .form-select:focus {
    border-color: #009999 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 153, 153, 0.25) !important;
    outline: none !important;
}

/* Form Help Text */
.form-text {
    color: #666 !important;
    font-size: 12px !important;
    margin-top: 5px !important;
}

/* Responsive form design */
@media (max-width: 768px) {
    .form-container, .welcome-container {
        padding: 20px !important;
        margin: 10px !important;
    }
    
    .form-section {
        padding-left: 10px !important;
        margin-bottom: 20px !important;
    }
}

/* Form Buttons - Black theme with teal hover */
.btn-black {
    margin: 10px !important;
    min-width: 120px !important;
    background: #333 !important;
    border: 2px solid #333 !important;
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-weight: bold !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.btn-black:hover {
    background: #009999 !important;
    border-color: #009999 !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 153, 153, 0.3) !important;
}

.btn-black:focus {
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 153, 153, 0.5) !important;
}

.btn-black:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0, 153, 153, 0.3) !important;
}

/* Primary form buttons with teal gradient */
.form-btn, .submit-btn {
    background: linear-gradient(135deg, #009999 0%, #007777 100%) !important;
    border: 2px solid #009999 !important;
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 153, 153, 0.3) !important;
    cursor: pointer !important;
    min-width: 120px !important;
}

.form-btn:hover, .submit-btn:hover {
    background: linear-gradient(135deg, #007777 0%, #005555 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 153, 153, 0.4) !important;
}

/* ===================================================================
   UNIFORM FORM STYLING - Reusable across all forms
   =================================================================== */

/* Form Container */
.form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* Form Titles and Headers */
.form-title {
    color: #000 !important;
    font-size: 24px !important;
    font-weight: bold !important;
    text-align: center !important;
    margin-bottom: 20px !important;
}

.form-subtitle {
    color: black !important;
    font-size: 16px !important;
    text-align: center !important;
    margin-bottom: 30px !important;
}

/* Form Sections */
.form-section {
    border-left: 3px solid #009999 !important;
    padding-left: 15px !important;
    margin-bottom: 25px !important;
}

.form-section-title {
    color: #006D6D !important; /* Darker teal - WCAG AA compliant (5.2:1 contrast ratio on white) */
    font-size: 16px !important;
    font-weight: bold !important;
    margin-bottom: 25px !important;
}

/* Form Labels */
.form-label, label:not(.form-check-label) {
    color: #000 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    margin-bottom: 8px !important;
}

/* Form Controls */
.form-control, .form-select {
    color: #000 !important;
    font-size: 14px !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    transition: all 0.3s ease !important;
}

.form-control:focus, .form-select:focus {
    border-color: #009999 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 153, 153, 0.25) !important;
    outline: none !important;
}

/* Form Text and Help Text */
.form-text, .form-help {
    color: #666 !important;
    font-size: 12px !important;
    margin-top: 5px !important;
}

/* Checkbox Styling */
.form-check {
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 15px !important;
}

.form-check-input {
    margin-top: 0.25rem !important;
    margin-right: 0.5rem !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
}

.form-check-label {
    color: #000 !important;
    font-size: 14px !important;
    display: inline !important;
    text-align: left !important;
    line-height: 1.5 !important;
    margin-left: 0 !important;
}

/* Form Badges */
.form-badge {
    padding: 8px 20px !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    display: inline-block !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
}

.form-badge-external {
    background: white !important;
    color: black !important;
    border: 2px solid #009999 !important;
}

.form-badge-internal {
    background: linear-gradient(135deg, #009999 0%, #007777 100%) !important;
    color: white !important;
}

/* Form Buttons - Black Style */
.form-btn, .btn-form {
    margin: 10px !important;
    min-width: 120px !important;
    background: #333 !important;
    border: 2px solid #333 !important;
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-weight: bold !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.form-btn:hover, .btn-form:hover {
    background: #009999 !important;
    border-color: #009999 !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 153, 153, 0.3) !important;
}

/* Form Button Variations */
.form-btn-primary {
    background: #009999 !important;
    border-color: #009999 !important;
}

.form-btn-primary:hover {
    background: #007777 !important;
    border-color: #007777 !important;
}

.form-btn-secondary {
    background: #666 !important;
    border-color: #666 !important;
}

.form-btn-secondary:hover {
    background: #555 !important;
    border-color: #555 !important;
}

/* Alert Messages for Forms */
.form-alert-success {
    background: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
}

.form-alert-error {
    background: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
    color: #721c24 !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
}

.form-alert-info {
    background: #d1ecf1 !important;
    border: 1px solid #bee5eb !important;
    color: #0c5460 !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
}

/* Form Navigation Links */
.form-nav-links {
    text-align: center !important;
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid #ddd !important;
}

.form-nav-links a {
    color: #009999 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    margin: 0 10px !important;
}

.form-nav-links a:hover {
    color: #007777 !important;
    text-decoration: underline !important;
}

/* Responsive Form Design */
@media (max-width: 768px) {
    .form-container {
        padding: 20px !important;
        margin: 10px !important;
    }
    
    .form-title {
        font-size: 20px !important;
    }
    
    .form-section-title {
        font-size: 16px !important;
    }
    
    .form-btn, .btn-form {
        width: 100% !important;
        margin: 5px 0 !important;
    }
}

.welcome-container .btn:hover, .btn-black:hover {
    background: #009999 !important;
    border-color: #009999 !important;
    color: white !important;
    text-decoration: none;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 153, 153, 0.3) !important;
}

        .ack-content {
            background: #f7f7f7;
            border-radius: 10px;
            padding: 25px;
            margin: 20px 0;
            border-left: 4px solid #009999;
            text-align: left;
        }

        .form-section {
            background: #f7f7f7;
            border-radius: 10px;
            padding: 25px;
            margin: 20px 0;
            border-left: 4px solid #009999;
            text-align: left;
        }

        .form-label, label {
            text-align: left !important;
            display: block !important;
            width: 100% !important;
        }
        
        /* Ensure checkbox is visible and positioned at the beginning */
        .form-check {
            margin-left: 0 !important;
            padding-left: 0 !important;
            display: flex !important;
            align-items: flex-start !important;
        }
        
        .form-check-input {
            display: block !important;
            width: 20px !important;
            height: 20px !important;
            margin: 0 !important;
            margin-right: 8px !important;
            margin-top: 2px !important;
            visibility: visible !important;
            opacity: 1 !important;
            position: relative !important;
            left: 0 !important;
            flex-shrink: 0 !important;
        }
        
        .form-check-label {
            display: inline !important;
            text-align: left !important;
            line-height: 1.5 !important;
            margin-left: 0 !important;
        }
        .external-badge {
            background: linear-gradient(135deg, #009999 0%, #007777 100%);
            color: white;
            padding: 8px 20px;
            border-radius: 5px;
            font-weight: bold;
            display: inline-block;
            margin-bottom: 20px;
        }
        
        /* Ensure black button styling applies */
        .btn-black {
            margin: 10px;
            min-width: 120px;
            background: #333 !important;
            border: 2px solid #333 !important;
            color: white !important;
            padding: 12px 30px !important;
            border-radius: 8px !important;
            text-decoration: none;
            display: inline-block;
            font-weight: bold !important;
            font-size: 14px !important;
            transition: all 0.3s ease !important;
        }
        .btn-black:hover {
            background: #009999 !important;
            border-color: #009999 !important;
            color: white !important;
            text-decoration: none;
            transform: translateY(-2px) !important;
            box-shadow: 0 4px 12px rgba(0, 153, 153, 0.3) !important;
        }
        .welcome-container {
    background: linear-gradient(180deg, #f5f5f5 0%, #f9f9f9 100%);
    border-radius: 0;
    box-shadow: none;
    padding: 40px;
    max-width: 800px;
    width: 100%;
}


        .merck-logo {
            max-height: 60px;
            margin-bottom: 20px;
        }

        /* Override universal button styles for captcha buttons */
.captcha-btn-group .btn-captcha {
    background: transparent !important;
    border: none !important;
    color: #000 !important;
    padding: 8px !important;
    margin-left: 10px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: border-color 0.3s ease, color 0.3s ease !important;
}

/* On hover/focus: only teal border, no background change */
.captcha-btn-group .btn-captcha:hover,
.captcha-btn-group .btn-captcha:focus {
    background: transparent !important; /* keep transparent */
    border: 2px solid #009999 !important; /* teal border */
    color: #009999 !important; /* teal icon color */
    outline: none !important;
    box-shadow: none !important;
    border-radius: 6px; /* optional: rounded corners for border */
}

/* Keep arrow icon black on hover/focus */
#refreshCaptcha i {
    color: black !important;
    transition: color 0.3s ease !important;
}

#refreshCaptcha:hover i,
#refreshCaptcha:focus i {
    color: black !important; /* force black even on hover/focus */
}

#userType {
    text-align: left; /* Align text inside dropdown */
    display: block;   /* Ensure block display */
    margin-left: 0;   /* Remove any left margin */
}

.required {
    color: red;
    margin-left: 2px;
}

.mgr-approval {
    color: #9B1C1C; /* Dark red - WCAG AA compliant on alert-info background (#cff4fc) - contrast ratio ~6.5:1 */
    font-weight: 600;
    margin-left: 2px;
}

/* Style for the "Forgot Password" link */
.forgot-password {
  font-family: 'Invention', sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #007BFF;           /* Corporate blue color (adjust as needed) */
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;        /* Slightly smaller font size */
  transition: color 0.3s ease;
}

.forgot-password:hover,
.forgot-password:focus {
  color: #0056b3;           /* Darker blue on hover/focus */
  outline: none;
  text-decoration: none;
}

/* Complete btn-black styling with hover */
.btn-black {
    margin: 10px !important;
    min-width: 120px !important;
    background: #333 !important;
    border: 2px solid #333 !important;
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-weight: bold !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.btn-black:hover {
    background: #009999 !important;
    border-color: #009999 !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 153, 153, 0.3) !important;
}

.btn-black:focus {
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 153, 153, 0.5) !important;
}

.btn-black:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0, 153, 153, 0.3) !important;
}
