/* ========================================
   Apex Male Diagnostics - Tech-Clinical CSS
   ======================================== */

/* CSS Variables */
:root {
    --color-white: #FFFFFF;
    --color-royal-blue: #0D47A1;
    --color-cold-steel: #B0BEC5;
    --color-steel-dark: #78909C;
    --color-text-dark: #1A1A2E;
    --color-text-medium: #4A4A5A;
    --color-text-light: #6B7280;
    --color-bg-light: #F8FAFC;
    --color-bg-blue: #E3F2FD;
    
    --font-heading: 'Chakra Petch', sans-serif;
    --font-body: 'Sarabun', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(13, 71, 161, 0.08);
    --shadow-md: 0 4px 12px rgba(13, 71, 161, 0.12);
    --shadow-lg: 0 8px 32px rgba(13, 71, 161, 0.16);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.f60h2vtv {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-dark);
}

/* Buttons */
.m002f6a4 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    text-transform: uppercase;
}

.ak6kdqvi {
    background-color: var(--color-royal-blue);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.ak6kdqvi:hover {
    background-color: #08357A;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.r004o4sg {
    background-color: transparent;
    color: var(--color-royal-blue);
    border: 2px solid var(--color-royal-blue);
}

.r004o4sg:hover {
    background-color: var(--color-royal-blue);
    color: var(--color-white);
}

.x24uduqu {
    width: 100%;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(176, 190, 197, 0.3);
    backdrop-filter: blur(10px);
}

.e9cwu7l4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.p9x3ke34 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.j7f3rlkb {
    width: 45px;
    height: 45px;
}

.yms90xyu {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-royal-blue);
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 32px;
}

.kil4yliz {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-medium);
    transition: color var(--transition-fast);
}

.kil4yliz:hover {
    color: var(--color-royal-blue);
}

/* ========================================
   Hero Section
   ======================================== */
.ca1ltdue {
    position: relative;
    padding: 140px 0 80px;
    background-color: var(--color-white);
    overflow: hidden;
}

.bi5f1dsk {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.b9mgs8g4 {
    max-width: 540px;
}

.wguimdok {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-royal-blue);
    margin-bottom: 20px;
    line-height: 1.25;
}

.wi6mdt4f {
    font-size: 18px;
    color: var(--color-text-medium);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hha7nf3y {
    position: relative;
}

.n8aw46tw {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.uk9rftau {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.iyrlnwgr {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: flex-end;
}

.bksa051r {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.cf6n8qc0 {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}

.w0jl480f {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-royal-blue);
}

.kv8n9tc5 {
    font-size: 12px;
    color: var(--color-text-light);
}

.iizlj1so {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    opacity: 0.5;
    pointer-events: none;
}

.klhgv89k {
    width: 100%;
    height: 100%;
}

/* ========================================
   Section Styles
   ======================================== */
.x3owel9f {
    text-align: center;
    margin-bottom: 60px;
}

.lxsi6ovj {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-royal-blue);
    margin-bottom: 12px;
}

.teesvtb5 {
    font-size: 18px;
    color: var(--color-text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Process Section
   ======================================== */
.eesebvqp {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.tta259dh {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.xrospwxs {
    position: relative;
    background-color: var(--color-white);
    padding: 40px 28px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(176, 190, 197, 0.2);
}

.xrospwxs:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(13, 71, 161, 0.2);
}

.igr9y4q9 {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
}

.igr9y4q9 svg {
    width: 100%;
    height: 100%;
}

.foy9cwn5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-royal-blue);
    margin-bottom: 12px;
}

.icsz8r9d {
    font-size: 14px;
    color: var(--color-text-medium);
    line-height: 1.7;
}

.f8gsn7vb {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: rgba(176, 190, 197, 0.2);
    line-height: 1;
}

/* ========================================
   Factors Section
   ======================================== */
.qjhwkk0t {
    padding: 100px 0;
    background-color: var(--color-white);
}

.q68sjz15 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.t7m0gcnj {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(176, 190, 197, 0.2);
    transition: all var(--transition-normal);
}

.t7m0gcnj:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.b0458t45 {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.b0458t45 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.t7m0gcnj:hover .b0458t45 img {
    transform: scale(1.05);
}

.bb5k0kg7 {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb5k0kg7 svg {
    width: 28px;
    height: 28px;
}

.u6pqe3iv {
    padding: 28px;
}

.fyboxmsu {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-royal-blue);
    margin-bottom: 12px;
}

.w7ieh9cs {
    font-size: 14px;
    color: var(--color-text-medium);
    line-height: 1.8;
    margin-bottom: 16px;
}

.jamrjog9 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jamrjog9 li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    color: var(--color-text-light);
}

.jamrjog9 li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--color-royal-blue);
    border-radius: 50%;
}

/* ========================================
   Standards Section
   ======================================== */
.i2o8uuoc {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.mfdkc85r {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.p08w35mg {
    background-color: var(--color-white);
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid rgba(176, 190, 197, 0.2);
    transition: all var(--transition-normal);
}

.p08w35mg:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(13, 71, 161, 0.2);
}

.qaqvusy1 {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.qaqvusy1 svg {
    width: 100%;
    height: 100%;
}

.w8tjnx1d {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-royal-blue);
    margin-bottom: 8px;
}

.qukxthxu {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.qi8gsjl3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 32px;
    background-color: var(--color-bg-blue);
    border-radius: var(--radius-md);
    max-width: 700px;
    margin: 0 auto;
}

.s70p1pkb {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.oiyvq8le {
    font-size: 14px;
    color: var(--color-text-medium);
}

/* ========================================
   Contact Section
   ======================================== */
.swlyygtn {
    padding: 100px 0;
    background-color: var(--color-white);
}

.xwa974lr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.nvbvpssw {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-royal-blue);
    margin-bottom: 16px;
}

.kgqj6xnw {
    font-size: 16px;
    color: var(--color-text-medium);
    margin-bottom: 32px;
    line-height: 1.7;
}

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

.ffdts496 {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ffdts496 svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.ffdts496 span {
    font-size: 15px;
    color: var(--color-text-medium);
}

/* Contact Form */
.q1up7lba {
    background-color: var(--color-bg-light);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(176, 190, 197, 0.2);
}

.cr8i8l9r {
    margin-bottom: 24px;
}

.qgy2ivb2 {
    display: block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.o0no504g {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    border: 1px solid rgba(176, 190, 197, 0.4);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.o0no504g:focus {
    outline: none;
    border-color: var(--color-royal-blue);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.o0no504g::placeholder {
    color: var(--color-text-light);
}

.ad6qgzk0 {
    font-size: 12px;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 16px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--color-text-dark);
    padding: 60px 0 40px;
}

.tk1wddz4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.zntcfdkw {
    text-align: center;
}

.zntcfdkw .p9x3ke34 {
    justify-content: center;
    margin-bottom: 12px;
}

.zntcfdkw .j7f3rlkb {
    width: 40px;
    height: 40px;
}

.zntcfdkw .yms90xyu {
    color: var(--color-white);
}

.g0soc5wk {
    font-size: 14px;
    color: var(--color-cold-steel);
}

.e9lx91mb {
    display: flex;
    gap: 32px;
}

.pms7vm4y {
    font-size: 13px;
    color: var(--color-cold-steel);
    transition: color var(--transition-fast);
}

.pms7vm4y:hover {
    color: var(--color-white);
}

.s34u3bkx {
    font-size: 12px;
    color: var(--color-steel-dark);
    padding-top: 24px;
    border-top: 1px solid rgba(176, 190, 197, 0.2);
    width: 100%;
    text-align: center;
}

/* ========================================
   Modal
   ======================================== */
.pw0bi83p {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 26, 46, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    padding: 24px;
}

.atdy3lmt {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    width: 100%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all var(--transition-normal);
}

.m5dvqh1i {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    transition: all var(--transition-fast);
}

.m5dvqh1i:hover {
    background-color: var(--color-bg-blue);
}

.m5dvqh1i svg {
    width: 18px;
    height: 18px;
}

.fozf0uyk {
    padding: 48px 40px;
    text-align: center;
}

.toxaemuk {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.toxaemuk svg {
    width: 100%;
    height: 100%;
}

.rcup10zo {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-royal-blue);
    margin-bottom: 16px;
}

.khm5dwst {
    font-size: 15px;
    color: var(--color-text-medium);
    line-height: 1.8;
    margin-bottom: 32px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .bi5f1dsk {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .b9mgs8g4 {
        max-width: 100%;
        text-align: center;
    }
    
    .wguimdok {
        font-size: 36px;
    }
    
    .tta259dh {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .q68sjz15 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mfdkc85r {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .xwa974lr {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .e9cwu7l4 {
        flex-wrap: wrap;
        height: auto;
        padding: 16px 24px;
        gap: 16px;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }
    
    .header .m002f6a4 {
        display: none;
    }
    
    .ca1ltdue {
        padding: 120px 0 60px;
    }
    
    .wguimdok {
        font-size: 28px;
    }
    
    .wi6mdt4f {
        font-size: 16px;
    }
    
    .uk9rftau {
        height: 280px;
    }
    
    .lxsi6ovj {
        font-size: 28px;
    }
    
    .tta259dh {
        grid-template-columns: 1fr;
    }
    
    .xrospwxs {
        padding: 32px 24px;
    }
    
    .q68sjz15 {
        grid-template-columns: 1fr;
    }
    
    .mfdkc85r {
        grid-template-columns: 1fr 1fr;
    }
    
    .q1up7lba {
        padding: 28px;
    }
    
    .qi8gsjl3 {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .f60h2vtv {
        padding: 0 16px;
    }
    
    .nav {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .kil4yliz {
        font-size: 13px;
    }
    
    .wguimdok {
        font-size: 24px;
    }
    
    .lxsi6ovj {
        font-size: 24px;
    }
    
    .teesvtb5 {
        font-size: 15px;
    }
    
    .mfdkc85r {
        grid-template-columns: 1fr;
    }
    
    .e9lx91mb {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .fozf0uyk {
        padding: 36px 24px;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.xrospwxs,
.t7m0gcnj,
.p08w35mg {
    animation: fadeIn 0.6s ease forwards;
}

.xrospwxs:nth-child(1) { animation-delay: 0.1s; }
.xrospwxs:nth-child(2) { animation-delay: 0.2s; }
.xrospwxs:nth-child(3) { animation-delay: 0.3s; }
.xrospwxs:nth-child(4) { animation-delay: 0.4s; }

.t7m0gcnj:nth-child(1) { animation-delay: 0.1s; }
.t7m0gcnj:nth-child(2) { animation-delay: 0.2s; }
.t7m0gcnj:nth-child(3) { animation-delay: 0.3s; }
