@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Manrope:wght@400;500;600&display=swap');

@font-face {
    font-family: Abel;
    font-weight: 400;
    font-style: normal;
    font-display: fallback;
    src: url("../fonts/abel_n4.0254805ccf79872a96d53996a984f2b9039f9995%20(1).woff2") format("woff2"),
         url("../fonts/abel_n4.635ebaebd760542724b79271de73bae7c2091173.woff") format("woff");
}

@font-face {
    font-family: Manrope;
    font-weight: 400;
    font-style: normal;
    font-display: fallback;
    src: url("../fonts/manrope_n4.cd2363f838fb1ef03bdb07c829c7c992d417dd64.woff2") format("woff2"),
         url("../fonts/manrope_n4.08b75e0e22a3f7267f64ccf115e9fb6d79fc1ce7.woff") format("woff");
}

@font-face {
    font-family: Manrope;
    font-weight: 500;
    font-style: normal;
    font-display: fallback;
    src: url("../fonts/manrope_n5.8eac14e2b642faa6ca8f5a46c1b0b1ed4a42eee7.woff2") format("woff2"),
         url("../fonts/manrope_n5.ed324e5197c333656fb16f9a7e7ba4fa1168607c.woff") format("woff");
}

@font-face {
    font-family: Manrope;
    font-weight: 700;
    font-style: normal;
    font-display: fallback;
    src: url("../fonts/manrope_n7.f3a06f9634c15008fe4637ba89fefcc8a1b93fbd.woff2") format("woff2"),
         url("../fonts/manrope_n7.6dba97311355640bc9b07a590354f08bc8fcc79f.woff") format("woff");
}

@font-face {
    font-family: "Zen Old Mincho";
    font-weight: 400;
    font-style: normal;
    font-display: fallback;
    src: url("../fonts/zenoldmincho_n4.7e1b50b13d60400e208a9045c83c7f942d334b13.woff2") format("woff2"),
         url("../fonts/zenoldmincho_n4.2bc976195161eb2273775b1cb06c3cbd4a6500c6.woff") format("woff");
}

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

body {
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #000000;
    background: #ffffff;
    overflow-x: hidden;
}

/* Uniform section spacing for all sections */
section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

section + section {
    margin-top: 30px !important;
}

.hero {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif !important;
    font-style: normal !important;
    color: rgb(26, 51, 0) !important;
}

h1 {
    font-size: 42px !important;
    line-height: 50px !important;
    font-weight: 600 !important;
}

h2 {
    font-size: 32px !important;
    line-height: 40px !important;
    font-weight: 600 !important;
}

h3 {
    font-size: 28px !important;
    line-height: 36px !important;
    font-weight: 600 !important;
}

h4 {
    font-size: 24px !important;
    line-height: 32px !important;
    font-weight: 600 !important;
}

h5 {
    font-size: 20px !important;
    line-height: 28px !important;
    font-weight: 600 !important;
}

/* Background Diamond Pattern */
.diamond-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(250, 189, 35, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(250, 189, 35, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Navigation - Matching LabGems Website */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-top-bar {
    background: #1a3300; /* Dark green matching LabGems website */
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    box-sizing: border-box;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s;
    line-height: 1;
    margin: 0;
    padding: 0;
    height: auto;
    vertical-align: middle;
}

.logo-container:hover {
    opacity: 0.9;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 180px;
    max-height: 50px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    border: none;
    outline: none;
}

.logo-text {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    height: auto;
    line-height: 1;
}

.logo-main {
    font-family: 'Abel', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
}

.logo-sub {
    display: none; /* Hide subtitle in top bar */
}

.header-top-left {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: center;
    box-sizing: border-box;
    grid-column: 2;
}

.nav-top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    grid-column: 3;
}

.nav-top-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
}

.nav-top-icon:hover {
    opacity: 0.8;
}

.nav-top-icon svg {
    stroke: #ffffff;
    width: 20px;
    height: 20px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flag-icon {
    font-size: 1rem;
}

.language-text {
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
}

.dropdown-arrow {
    font-size: 0.625rem;
    color: #ffffff;
    margin-left: 0.25rem;
}

.header-nav-menu {
    background: #1a3300;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.nav-menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-links a {
    display: block;
    padding: 1rem 0;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 27px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover {
    color: #ffffff;
    opacity: 0.9;
}

.nav-actions {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-left: 0;
}

.btn-nav {
    display: block;
    padding: 1rem 0;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    transition: color 0.2s;
    font-size: 17px;
    line-height: 27px;
    border: 0;
    cursor: pointer;
    background: transparent;
    color: #ffffff;
    position: relative;
}

.btn-nav-signin {
    background: transparent;
    color: #ffffff;
}

.btn-nav-signin:hover {
    color: #ffffff;
    opacity: 0.9;
}

.btn-nav-apply {
    color: #ffffff;
}

.btn-nav-apply:hover {
    color: #ffffff;
    opacity: 0.9;
}

/* Hero Section */
.hero {
    position: relative;
    /* height: 100vh; */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 2rem;
    text-align: center;
    z-index: 1;
    overflow-y: auto;
    background: #ffffff;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(26, 51, 0, 0.05);
    border: 1px solid rgba(26, 51, 0, 0.2);
    border-radius: 2rem;
    color: #1a3300;
    font-size: 12px;
    line-height: 16px;
    margin-bottom: 2rem;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    white-space: nowrap;
    width: fit-content;
}

.verified-badge::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    background-color: #1a3300;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='6' y='11' width='12' height='9' rx='2' stroke='white' stroke-width='1.8'/%3E%3Cpath d='M8.5 11V8.5a3.5 3.5 0 1 1 7 0V11' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 11px;
}

.hero h1 {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 72px;
    color: #000000;
}

.hero p {
    font-size: 20px;
    font-weight: 400;
    color: #333333;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 28px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #f6f6f6;
    color: #0a0e27;
}

.btn-primary:hover {
    background: #f6f6f6;
    transform: translateY(-2px);
    /* box-shadow: 0 10px 25px rgba(250, 189, 35, 0.4); */
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    position: relative;
    padding: 5rem 2rem;
    z-index: 1;
    background: #ffffff;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #000000;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #666666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(250, 189, 35, 0.15);
    /* border: 2px solid rgba(250, 189, 35, 0.4); */
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    filter: grayscale(0%) brightness(1.2) saturate(1.5);
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    background: #1a3300 !important;
    border-color: transparent !important;
    transform: none;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #000000;
    text-align: center;
}

.feature-card p {
    color: #666666;
    line-height: 1.6;
}

/* Stats Section in Hero */
.hero-stats {
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.hero-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-stats .stat-card {
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
}

.hero-stats .stat-icon {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    opacity: 1;
    filter: grayscale(0%) brightness(1.2) saturate(1.5);
}

.hero-stats .stat-number {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 30px;
    line-height: 36px;
    margin-bottom: 0.25rem;
    color: #000000;
    font-weight: 700;
}

.hero-stats .stat-label {
    font-size: 0.85rem;
    color: #666666;
    font-weight: 500;
}

/* Stats Section (standalone) */
.stats {
    position: relative;
    padding: 5rem 2rem;
    z-index: 1;
    background: #ffffff;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 1;
    filter: grayscale(0%) brightness(1.2) saturate(1.5);
}

.stat-number {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666666;
    font-weight: 500;
}

/* Trusted Section (3rd Fold) */
.trusted {
    position: relative;
    padding: 5rem 2rem;
    z-index: 1;
    background: #ffffff;
}

.trusted-container {
    max-width: 1400px;
    margin: 0 auto;
}

.trusted-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.trusted-heading {
    font-size: 3rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.trusted-description {
    font-size: 20px;
    font-weight: 400;
    color: #666666;
    line-height: 28px;
    margin-bottom: 2.5rem;
}

.trusted-benefits {
    list-style: none;
}

.trusted-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.9);
    line-height: 1.6;
}

.trusted-benefits li::before {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #1a3300;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 11px;
}

.trusted-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.trusted-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(250, 189, 35, 0.1);
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
}

.trusted-stat-number {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a3300;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.trusted-stat-label {
    font-size: 0.9rem;
    color: #666666;
    font-weight: 500;
}

/* Modal/Popup Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 95vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, #1a3300 0%, #2d4d00 100%);
    padding: 1.25rem 2rem 0.75rem;
    border-radius: 1rem 1rem 0 0;
    text-align: center;
    flex-shrink: 0;
    position: relative;
}

.modal-logo {
    width: auto;
    height: 50px;
    margin: 0 auto 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    border: none;
}

.modal-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.modal-title {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 0.25rem;
    line-height: 28px;
    letter-spacing: -0.5px;
}

#applyModal .modal-title {
    font-size: 30px;
    line-height: 1.15;
}

.modal-subtitle {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    line-height: 1.3;
}

.progress-indicator {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.progress-step {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.progress-step.active {
    background: #f6f6f6;
}

/* Apply modal: one continuous line (no step segments) */
.progress-indicator.progress-indicator--single {
    display: block;
    width: min(220px, 72%);
    height: 4px;
    margin: 0.65rem auto 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.38);
}

.modal-body {
    padding: .50rem 2rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(95vh - 180px);
}

.form-section {
    margin-bottom: 1rem;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-section-icon {
    width: 24px;
    height: 24px;
    background: rgba(26, 51, 0, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.form-section-title {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    line-height: 28px;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    font-family: 'Manrope', system-ui, sans-serif;
    color: #000000;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.625rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    color: #000000;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #1a3300;
    background: rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
    color: #999999;
}

.login-modal .password-field-wrapper,
.welcome-sign-inline .password-field-wrapper {
    position: relative;
}

.login-modal .password-field-wrapper .form-input,
.welcome-sign-inline .password-field-wrapper .form-input {
    padding-right: 3rem;
}

.login-modal .password-toggle,
.welcome-sign-inline .password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a3300;
    border: none;
    border-radius: 0.35rem;
    cursor: pointer;
    padding: 0;
}

.login-modal .password-toggle:hover,
.welcome-sign-inline .password-toggle:hover {
    background: #2d4d00;
}

.login-modal .password-toggle img,
.welcome-sign-inline .password-toggle img {
    display: block;
    width: 20px;
    height: 20px;
}

.form-info {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    margin-top: 0.5rem;
    line-height: 20px;
}

.form-select {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    color: #000000;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    cursor: pointer;
    appearance: none;
    color-scheme: light;
}

.form-select:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.35);
    background-color: #ffffff;
}

.form-select option {
    background: #ffffff;
    color: #000000;
}

.btn-continue {
    width: 100%;
    padding: 0.75rem 2rem;
    background: #1a3300;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.btn-continue:hover {
    background: #2d4d00;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(26, 51, 0, 0.3);
}

.modal-footer {
    text-align: center;
    padding: 0.75rem 2rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.modal-footer-text {
    color: #666666;
    font-size: 0.9rem;
}

.modal-footer-text a {
    color: #1a3300;
    text-decoration: none;
    font-weight: 500;
}

.modal-footer-text a:hover {
    text-decoration: underline;
}

/* Login Modal Specific Styles */
.login-modal .modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-modal .modal-subtitle {
    font-size: 1rem;
    margin-bottom: 0;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #000000;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #f6f6f6;
}

.forgot-password-link {
    color: #1a3300;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.login-footer-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 14px;
    color: #000000;
}

.login-footer-link a {
    color: #1a3300;
    text-decoration: none;
    font-weight: 500;
}

.login-footer-link a:hover {
    text-decoration: underline;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* CTA Section */
.cta {
    position: relative;
    padding: 6rem 2rem;
    margin-bottom: 30px !important;
    text-align: center;
    z-index: 1;
    background: #ffffff;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-container .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: #1a3300;
    border-radius: 1rem;
    border: 1px solid #1a3300;
}

.cta-container .logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.cta-diamond {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f6f6f6 0%, #f6f6f6 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    margin: 0 auto 2rem;
    box-shadow: 0 20px 60px rgba(250, 189, 35, 0.3);
}

.cta h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000000;
}

.cta p {
    font-size: 1.25rem;
    color: #666666;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Footer — public home (dark green bar, logo + Terms/Contact, copy + CTA) */
.footer {
    position: relative;
    background: #1a3300;
    z-index: 1;
}

.footer-home {
    border-top: 1px solid rgba(250, 189, 35, 0.35);
    padding: 2.5rem 1.5rem 3rem;
}

.footer-home-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-home-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    margin-bottom: 2.25rem;
}

.footer-home-logo {
    display: block;
    line-height: 0;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-home-logo:hover {
    opacity: 0.88;
}

.footer-home-logo img {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.footer-home-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-home-nav-link {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.footer-home-nav-link:hover {
    color: #f6f6f6;
}

.footer-home-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.35rem;
}

.footer-home-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.footer-home-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.05rem 2.25rem;
    min-width: min(100%, 22rem);
    background: #f6f6f6;
    color: #0a0a0a;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.footer-home-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(250, 189, 35, 0.45);
    color: #0a0a0a;
}

.footer-home-cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Legacy footer classes (if referenced elsewhere) */
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #f6f6f6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ── Responsive Styles ── */

/* Prevent any element from causing horizontal scroll */
html, body { overflow-x: hidden; max-width: 100%; }
* { min-width: 0; }

@media (max-width: 768px) {
    /* ── Navbar ── */
    .header-top-bar { height: 64px; }
    .nav-container { padding: 0 1rem; }
    .logo-image { height: 38px; max-height: 38px; }

    /* Nav menu: auto height, stack buttons if needed */
    .header-nav-menu { height: auto; min-height: 52px; padding: 0.5rem 1rem; }
    .nav-menu-container { padding: 0; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
    .nav-links { display: none; }
    .nav-actions { gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
    .btn-nav { font-size: 14px; padding: 0.45rem 1rem; line-height: 1.4; }

    /* ── Hero ── */
    .hero { height: auto; min-height: auto; padding: 1.5rem 1rem 2rem; }
    .hero-container { min-height: auto; padding: 0; }

    /* Override global h1/h2/h3 !important rules for hero */
    .hero h1 { font-size: 1.75rem !important; line-height: 2.1rem !important; margin-bottom: 0.75rem; }
    .hero p { font-size: 0.95rem; line-height: 1.55; margin-bottom: 1rem; }
    .verified-badge { font-size: 11px; margin-bottom: 1.25rem; margin-top: 1rem; }

    .hero-buttons { gap: 0.75rem; flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 320px; justify-content: center; font-size: 0.9rem; padding: 0.8rem 1.25rem; }

    /* ── Stats in hero ── */
    .hero-stats { margin-top: 1.5rem; padding-top: 1rem; }
    .hero-stats .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .hero-stats .stat-card { padding: 0.9rem 0.5rem; }
    .hero-stats .stat-number { font-size: 22px !important; line-height: 28px !important; }
    .hero-stats .stat-label { font-size: 0.72rem; }

    /* ── Features ── */
    .features { padding: 2.5rem 1rem; }
    .features-container { padding: 0; }
    .features-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
    .feature-card { padding: 1.25rem; }
    .section-title { font-size: 1.6rem !important; line-height: 2rem !important; }
    .section-subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; }

    /* ── Trusted ── */
    .trusted { padding: 2.5rem 1rem; }
    .trusted-container { padding: 0; }
    .trusted-content { grid-template-columns: 1fr; gap: 2rem; margin-top: 1.5rem; }
    .trusted-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .trusted-stat-card { padding: 1.25rem; }
    .trusted-stat-number { font-size: 1.75rem; }

    /* ── CTA ── */
    .cta { padding: 2.5rem 1rem; }
    .cta-container .logo-container { padding: 1rem; margin-bottom: 1.5rem; }
    .cta-container .logo-image { height: 50px; }
    .cta h2 { font-size: 1.6rem !important; line-height: 2rem !important; }
    .cta p { font-size: 0.95rem; margin-bottom: 1.5rem; }

    /* ── Footer ── */
    .footer-content { flex-direction: column; text-align: center; }
    .footer-home-top { flex-direction: column; text-align: center; justify-content: center; margin-bottom: 1.5rem; }
    .footer-home-nav { justify-content: center; flex-wrap: wrap; gap: 1rem; }
    .footer-home-cta { width: 100%; max-width: 22rem; }

    /* ── Stats standalone ── */
    .stats-grid,
    .hero-stats .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    /* ── Navbar ── */
    .header-top-bar { height: 56px; }
    .logo-image { height: 32px; max-height: 32px; }
    .nav-menu-container { padding: 0 0.5rem; }
    .btn-nav { font-size: 13px; padding: 0.4rem 0.75rem; }

    /* ── Hero ── */
    .hero { padding: 1.25rem 0.875rem 1.75rem; }
    .hero h1 { font-size: 1.5rem !important; line-height: 1.85rem !important; }
    .hero p { font-size: 0.875rem; }

    /* ── Grids ── */
    .stats-grid { grid-template-columns: 1fr; }
    .hero-stats .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .trusted-stats-grid { grid-template-columns: repeat(2, 1fr); }

    /* ── Modals ── */
    .modal-overlay { padding: 0.5rem; align-items: flex-end; }
    .modal-content { max-width: 100%; width: 100%; margin: 0; max-height: 96vh; border-radius: 1rem 1rem 0 0; }
    .modal-header { padding: 1rem 1.25rem 0.75rem; }
    .modal-logo { height: 40px; margin-bottom: 0.5rem; }
    .modal-logo img { height: 40px; }
    .modal-title { font-size: 1.25rem !important; }
    .modal-subtitle { font-size: 0.8rem; }
    .modal-body { padding: 0.75rem 1.25rem; }
    .modal-footer { padding: 0.75rem 1.25rem 1rem; }
    .form-label, .form-input, .form-select { font-size: 14px; }
    .form-group { margin-bottom: 0.65rem; }
    .btn-continue { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
}

/* ========== Welcome page: 4-col footer (portal parity; welcome does not load customer.css) ========== */
.welcome-labgems-footer.user-footer {
    position: relative;
    background: #1a3300;
    padding: 3rem 1.25rem 0;
    margin-top: 0;
    z-index: 1;
}
.welcome-labgems-footer .footer-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.75rem 1rem 0;
    box-sizing: border-box;
}
.welcome-labgems-footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem 2.5rem;
    margin-bottom: 2rem;
}
.welcome-labgems-footer .footer-col {
    min-width: 0;
}
.welcome-labgems-footer .footer-heading {
    font-family: "Zen Old Mincho", Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
}
.welcome-labgems-footer .footer-brand .footer-logo-link {
    display: inline-block;
    margin-bottom: 1rem;
}
.welcome-labgems-footer .footer-logo-image {
    max-width: 200px;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.welcome-labgems-footer .footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.welcome-labgems-footer .footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}
.welcome-labgems-footer .footer-social-icon {
    color: #ffffff;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.welcome-labgems-footer .footer-social-icon:hover {
    opacity: 1;
}
.welcome-labgems-footer .footer-social-icon svg {
    display: block;
}

/* Icon policy: remove decorative icons; keep required icons white */
.flag-icon {
    display: none !important;
}

/* Keep stats icons visible in white */
.hero-stats .stat-icon,
.stats .stat-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1a3300;
    margin: 0 auto 0.5rem;
    font-size: 0.95rem;
    line-height: 1;
}

.hero-stats .stat-icon svg,
.stats .stat-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.feature-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #1a3300;
    color: #ffffff !important;
    margin: 0 auto 0.5rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

.form-section-icon {
    display: inline-flex !important;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #1a3300;
    color: #ffffff !important;
}

.form-section-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.nav-top-icon,
.nav-top-icon svg,
.welcome-labgems-footer .footer-social-icon,
.welcome-labgems-footer .footer-social-icon svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}
.welcome-labgems-footer .footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.welcome-labgems-footer .footer-links-list li {
    margin-bottom: 0.5rem;
}
.welcome-labgems-footer .footer-links-list a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.875rem;
    font-family: Manrope, system-ui, sans-serif;
    font-weight: 400;
    transition: color 0.2s;
}
.welcome-labgems-footer .footer-links-list a:hover {
    color: #f6f6f6;
}
.welcome-labgems-footer .footer-contact {
    font-size: 0.875rem;
    font-family: Manrope, system-ui, sans-serif;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}
.welcome-labgems-footer .footer-contact-line {
    margin: 0 0 0.35rem;
}
.welcome-labgems-footer .footer-contact-line a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}
.welcome-labgems-footer .footer-contact-line a:hover {
    color: #f6f6f6;
    text-decoration: underline;
}
.welcome-labgems-footer .footer-newsletter-text {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-family: Manrope, system-ui, sans-serif;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.4;
}
.welcome-labgems-footer .footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.welcome-labgems-footer .footer-newsletter-input {
    flex: 1 1 160px;
    min-width: 0;
    padding: 0.6rem 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: Manrope, system-ui, sans-serif;
    background: #ffffff;
    color: #1a3300;
}
.welcome-labgems-footer .footer-newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(250, 189, 35, 0.45);
}
.welcome-labgems-footer .footer-newsletter-btn {
    padding: 0.6rem 1rem;
    background: #f6f6f6;
    color: #0a0a0a;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: Manrope, system-ui, sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.welcome-labgems-footer .footer-newsletter-btn:hover {
    background: #e5ab20;
}
.welcome-labgems-footer .footer-bottom {
    padding: 1.5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}
.welcome-labgems-footer .footer-copyright {
    margin: 0;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
}
@media (max-width: 992px) {
    .welcome-labgems-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 576px) {
    .welcome-labgems-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .welcome-labgems-footer.user-footer {
        padding: 2rem 1rem 0;
    }
}

/* Authenticated welcome uses partials/header search overlay (no customer.css): enforce 4-up grid */
#search-overlay-products.search-overlay-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.875rem 1rem;
    margin-top: 0.5rem;
}
@media (max-width: 768px) {
    #search-overlay-products.search-overlay-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 400px) {
    #search-overlay-products.search-overlay-products {
        grid-template-columns: 1fr;
    }
}

.search-overlay-product .search-overlay-product-info {
    text-align: center;
}
.search-overlay-product .search-overlay-product-name,
.search-overlay-product .search-overlay-product-price {
    text-align: center;
}
.search-overlay-product .search-overlay-product-name {
    -webkit-box-pack: center;
}

/* Guest portal home: header + Sign In / Apply only; footer unchanged below */
body.welcome-body--portal-minimal {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.welcome-body--portal-minimal .welcome-layout-minimal {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    z-index: 1;
}

body.welcome-body--portal-minimal .welcome-labgems-footer {
    flex-shrink: 0;
}

.navbar--portal-minimal .nav-menu-container--portal-minimal {
    justify-content: center;
}

.navbar--portal-minimal .nav-actions--portal-minimal {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    gap: clamp(1rem, 4vw, 2.5rem);
    flex-wrap: wrap;
}

.welcome-portal-minimal {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 3.5rem) 1rem;
    box-sizing: border-box;
}

body.welcome-body--portal-minimal .welcome-portal-minimal--guest-stack {
    align-items: stretch;
    justify-content: flex-start;
    padding: clamp(1rem, 3vw, 2rem) 1rem clamp(2rem, 5vw, 3rem);
    width: 100%;
    max-width: 100%;
}

.welcome-guest-stack {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 2rem);
    box-sizing: border-box;
}

body.welcome-body--portal-minimal #sign-in-section {
    scroll-margin-top: 120px;
}

.welcome-sign-inline {
    width: 100%;
}

.welcome-sign-inline__hero {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: clamp(1.5rem, 4vw, 2.2rem) clamp(1.1rem, 3vw, 1.9rem) clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    box-shadow: none;
}

.welcome-sign-inline__brand {
    margin: 0 auto clamp(1.15rem, 2.8vw, 1.5rem);
    width: fit-content;
    max-width: 100%;
    background: #1a3300;
    border: 1px solid #1a3300;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem 0.85rem;
    backdrop-filter: blur(2px);
}

.welcome-sign-inline__logo {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    display: inline-block;
    vertical-align: middle;
}

.welcome-sign-inline__tagline {
    margin: 0.6rem 0 0;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.35;
}

.welcome-sign-inline__card {
    background: #ffffff;
    border-radius: 0.95rem;
    border: 1px solid rgba(15, 30, 6, 0.12);
    padding: clamp(1.15rem, 3vw, 1.55rem) clamp(1.15rem, 3vw, 1.85rem) 1.35rem;
    margin: 0 auto;
    max-width: 420px;
    text-align: left;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.welcome-sign-inline__title {
    text-align: center;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a3300;
    margin: 0 0 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.welcome-sign-inline__alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 14px;
    font-family: 'Manrope', system-ui, sans-serif;
}

.welcome-sign-inline__alert--success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #15803d;
}

.welcome-sign-inline__alert--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #b91c1c;
}

.welcome-sign-inline__error-list {
    margin: 0;
    padding-left: 1.25rem;
}

.welcome-sign-inline__submit.btn-continue {
    margin-top: 0.45rem;
    border-radius: 0.6rem;
}

.welcome-sign-inline .login-footer-link {
    margin-top: 0.95rem;
    font-size: 0.95rem;
    color: #243813;
}

.welcome-sign-inline .login-footer-link a {
    color: #1a3300;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 51, 0, 0.45);
}

.welcome-sign-inline .login-footer-link a:hover {
    color: #0f2200;
    border-bottom-color: #0f2200;
}

.welcome-new-to-portal {
    margin: 0;
    text-align: center;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a3300;
    letter-spacing: -0.02em;
}

.welcome-new-to-portal__link {
    color: #1a3300;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
    font-weight: 600;
    cursor: pointer;
}

.welcome-new-to-portal__link:hover {
    color: #0d1f00;
    text-decoration-thickness: 2px;
}

.welcome-new-to-portal__link:focus-visible {
    outline: 2px solid #1a3300;
    outline-offset: 3px;
    border-radius: 2px;
}

.welcome-apply-inline {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    box-sizing: border-box;
}

.welcome-apply-inline--modal {
    width: 100%;
    max-width: min(640px, 100%);
    margin: 0 auto;
}

.welcome-apply-inline__card.modal-content {
    max-height: none;
    overflow: visible;
}

.welcome-apply-inline__body.modal-body {
    max-height: none;
    overflow: visible;
    flex: 0 1 auto;
}

/* Popup apply form: keep footer inside modal on mobile */
#applyModal .welcome-apply-inline__card.modal-content {
    max-height: 95vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#applyModal .welcome-apply-inline__body.modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    max-height: calc(95vh - 235px);
}

/* Keep apply popup fully above page/footer on mobile viewports */
#applyModal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 99999 !important;
    padding: max(0.5rem, env(safe-area-inset-top)) 0.5rem max(0.5rem, env(safe-area-inset-bottom));
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#applyModal .welcome-apply-inline--modal {
    width: min(640px, 100%);
    max-height: 100%;
    display: flex;
}

body.apply-modal-open .welcome-labgems-footer {
    display: none !important;
}

.welcome-apply-inline__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    margin-top: 0.5rem;
}

.welcome-apply-inline__actions--single {
    flex-direction: column;
}

.welcome-apply-inline__actions--single .btn-continue {
    width: 100%;
}

.welcome-portal-minimal__inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 920px;
}

/* Match inventory customer `.btn-add-to-cart` (welcome page does not load customer.css) */
body.welcome-body--portal-minimal .welcome-portal-minimal .btn-add-to-cart,
body.welcome-body--portal-minimal .welcome-apply-inline__actions .btn-add-to-cart {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    width: auto;
    margin: 0;
    padding: 0.75rem 1.25rem;
    color: rgba(26, 51, 0, 1) !important;
    border: 1px solid rgba(26, 51, 0, 1) !important;
    background: rgba(255, 255, 255, 1) !important;
    border-radius: 0.25rem;
    font-size: 14px;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.02em;
    text-transform: none;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-shadow: none;
    transform: none;
}

body.welcome-body--portal-minimal .welcome-portal-minimal .btn-add-to-cart:hover,
body.welcome-body--portal-minimal .welcome-apply-inline__actions .btn-add-to-cart:hover {
    background: #0d1f00 !important;
    border-color: #0d1f00 !important;
    color: #ffffff !important;
    transform: none;
}

body.welcome-body--portal-minimal .welcome-portal-minimal .btn-add-to-cart:active,
body.welcome-body--portal-minimal .welcome-apply-inline__actions .btn-add-to-cart:active {
    background: #061800 !important;
    border-color: #061800 !important;
    color: #ffffff !important;
}

@media (max-width: 576px) {
    .welcome-portal-minimal__inner {
        max-width: 100%;
        gap: 0.65rem;
        padding: 0 0.25rem;
    }

    body.welcome-body--portal-minimal .welcome-portal-minimal .btn-add-to-cart,
    body.welcome-body--portal-minimal .welcome-apply-inline__actions .btn-add-to-cart {
        padding: 0.65rem 0.75rem;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    #applyModal {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        min-height: 100vh !important;
        height: 100dvh !important;
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        overflow: hidden !important;
    }

    #applyModal .welcome-apply-inline--modal {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
    }

    #applyModal .welcome-apply-inline__card.modal-content {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #applyModal .welcome-apply-inline__body.modal-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-y: auto !important;
    }

    #applyModal .modal-header,
    #applyModal .modal-footer {
        flex-shrink: 0 !important;
    }
}
