:root {
    --primary-red: #d81921;
    --primary-red-hover: #b0141a;
    --primary-red-glow: rgba(216, 25, 33, 0.3);
    --bg-dark: #111111;
    --bg-light: #f7f8fa;
    --text-main: #2d3748;
    --text-muted: #718096;
    --border-color: rgba(0, 0, 0, 0.06);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --card-radius: 24px;
    --container-width: 1140px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    background-image: radial-gradient(circle at top right, #ffffff, var(--bg-light) 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-up {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    transition: var(--transition);
}

.logo img {
    height: 38px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-red);
    transition: var(--transition);
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.btn-nav {
    background: var(--primary-red);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px var(--primary-red-glow);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(216, 25, 33, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-main);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
    left: 6px;
}

/* Precise centering: 3 bars of 3px with 4px gaps = 17px total height. 
   (40 - 17) / 2 = 11.5px start. We use 12px for cleaner rendering. */
.mobile-menu-toggle span:nth-child(1) { top: 12px; }
.mobile-menu-toggle span:nth-child(2) { top: 19px; }
.mobile-menu-toggle span:nth-child(3) { top: 26px; }

/* Active state: Bars cross exactly at 19px (the middle of the button) */
.mobile-menu-toggle.active span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

.no-scroll {
    overflow: hidden !important;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, 5vh, 40px);
    width: 100%;
}

.mobile-menu-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: 700;
    transition: var(--transition);
}

.mobile-menu-links a:hover {
    color: var(--primary-red);
}

.btn-mobile-nav {
    background: var(--primary-red);
    color: white !important;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px var(--primary-red-glow);
}

/* Hero Section */
header {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: 450px;
    background: #111;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Use a pseudo-element for the background to solve pixelation/scaling issues on iOS */
header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("images/zpk.webp") no-repeat center bottom;
    background-size: cover;
    background-attachment: fixed;
    z-index: 0;
}

/* Standard Safari/iOS fix: attachment scroll on smaller screens */
@media (max-width: 768px) {
    header::after {
        background-attachment: scroll;
    }
}

header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
    animation: scaleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Dark backing specifically for the text to improve contrast against similar colors in the image */
.hero-content::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0,0,0,0.5) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.8rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.highlight-white {
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.highlight-red {
    color: var(--primary-red);
    /* Strong multi-layered shadow for maximum separation from background reds */
    text-shadow: 
        0 0 20px rgba(0,0,0,0.8),
        0 2px 5px rgba(0,0,0,0.9),
        2px 2px 0px rgba(0,0,0,0.5);
}

.hero-desc {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: rgba(255,255,255,0.95);
    margin: 0 auto 40px;
    max-width: 750px;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.meta-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.meta-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(216,25,33,0.4));
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-align: left;
}

.meta-value {
    font-weight: 600;
    font-size: 1.05rem;
    text-align: left;
    color: white;
}

/* Main Layout */
main {
    max-width: var(--container-width);
    margin: 30px auto 100px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 400px;
    gap: 50px;
    align-items: start;
    position: relative;
    z-index: 10;
}

.content-area {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Premium Cards */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--card-radius);
    padding: 45px;
    border: 1px solid rgba(255,255,255,1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,1);
    transition: var(--transition);
    scroll-margin-top: 95px;
}

.card:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,1);
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--bg-dark);
    position: relative;
    padding-bottom: 15px;
    letter-spacing: -0.02em;
}

.card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

/* Agenda Timeline */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding: 20px 0 20px 50px;
    margin-bottom: 10px;
    border-radius: 16px;
    transition: var(--transition);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 13px; /* Centers the 2px line behind the 28px total width bullet */
    top: 30px;
    bottom: -30px;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 26px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary-red);
    box-shadow: 0 0 0 4px rgba(216, 25, 33, 0.1);
    transition: var(--transition);
    z-index: 2; /* Ensure bullet stays above the line */
}

.time {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.item-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--bg-dark);
}

.speaker {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.speaker-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    hyphens: manual;
}

/* Location Card */
#location {
    padding: 0;
    overflow: hidden;
}
.location-content {
    padding: 45px;
}

/* Sidebar Registration */
.registration-card {    scroll-margin-top: 95px;
    position: sticky;
    top: 110px;
    padding: 45px 35px;
    background: #ffffff;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

input, select, textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #f8f9fa;
    font-size: 1.05rem;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

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

select:invalid {
    color: var(--text-muted);
}

select option {
    color: var(--text-main);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px !important;
}


input:focus, select:focus {
    border-color: var(--primary-red);
    background: white;
    box-shadow: 0 0 0 4px rgba(216, 25, 33, 0.1), inset 0 2px 4px rgba(0,0,0,0.02);
}

.checkbox-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    align-items: flex-start;
}

.checkbox-group input {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--primary-red);
}

.checkbox-group label {
    text-transform: none;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
    letter-spacing: 0;
    margin-bottom: 0;
    line-height: 1.5;
}

.btn-submit {
    width: 100%;
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 25px;
    box-shadow: 0 10px 20px var(--primary-red-glow);
}

.btn-submit:hover {
    background: var(--primary-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(216, 25, 33, 0.4);
}

/* Footer Styling */
#footer-wrap {
    background: #fff;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-primary {
    padding: 80px 0 60px;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
}

.footer-address {
    font-style: normal;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-address strong {
    color: var(--bg-dark);
}

.footer-address a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
}

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

.social-media {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-media img {
    height: 32px;
    transition: transform 0.3s ease;
}

.social-media a:hover img {
    transform: scale(1.1) translateY(-2px);
}

.footer-secondary {
    background: var(--bg-dark);
    color: #888;
    padding: 25px 0;
    font-size: 0.85rem;
    text-align: center;
}

.footer-secondary a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-secondary a:hover {
    color: var(--primary-red);
}

/* Success State */
#success-message {
    display: none;
    text-align: center;
    padding: 40px 0;
    animation: fadeUp 0.6s ease forwards;
}

.success-icon {
    width: 90px;
    height: 90px;
    background: #eaf3e1;
    color: #84ae4c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(132, 174, 76, 0.2);
}

/* Hide reCAPTCHA badge globally, branding is shown in the form */
.grecaptcha-badge { 
    visibility: hidden; 
}

.hero-cta {
    display: none;
}

.btn-hero {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 20px var(--primary-red-glow);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(216, 25, 33, 0.4);
    background: var(--primary-red-hover);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    main {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 40px;
        padding: 0 20px;
        gap: 30px;
        box-sizing: border-box;
    }

    .content-area, aside {
        width: 100%;
        min-width: 0;
    }
    
    .registration-card {
        scroll-margin-top: 95px;
        position: static;
        padding: 30px 20px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    nav {
        height: 70px;
        padding: 0 20px;
    }
    
    .nav-links {
        display: none; 
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    header {
        padding-top: 100px;
        min-height: 380px;
        padding-bottom: 40px;
    }
    
    h1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
        letter-spacing: -0.01em;
    }

    .hero-meta {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .meta-item {
        width: 100%;
        max-width: 320px;
    }
    
    .card {
        padding: 30px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .timeline-item {
        padding-left: 35px;
    }
    
    .timeline-item::before {
        left: 13px;
    }
    
    .timeline-item::after {
        left: 0px;
        width: 20px;
        height: 20px;
    }

    .timeline-item .speaker-grid {
        margin-left: 0 !important;
        grid-template-columns: 1fr !important;
    }

    .hero-cta {
        display: block;
    }

    .location-content {
        padding: 30px 20px;
    }
}

.speaker-grid {
    margin: 20px 0 0 50px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.speaker-grid .speaker-row {
    margin: 0;
}

.speaker-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
}
.speaker-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    outline: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background: white;
    flex-shrink: 0;
}

.speaker-img.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-muted);
    background: #f1f5f9;
}
aside#register { scroll-margin-top: 95px; }
.map-container {
    width: 100%;
    height: 350px;
    border-top: 1px solid var(--border-color);
}
