/* Website/style.css */

/* --- GLOBAL STYLES & PHARMACEUTICAL THEME --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #0056b3; 
    --secondary-color: #007bff;
    --accent-color: #007bff;
    --dark-teal: #004d40;
    --text-color: #343a40;
    --light-gray: #f8f9fa;
    --white-color: #ffffff;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; line-height: 1.3; }
h3 { font-size: 1.8rem; line-height: 1.4; }
h4 { font-size: 1.4rem; line-height: 1.5; }

p {
    margin-bottom: 1rem;
    color: #5a6268;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    color: var(--secondary-color);
}

.card {
    background-color: var(--white-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    background: var(--white-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 4px 0;
    transition: 0.4s;
}

.main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.main-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 1rem 1.2rem;
    position: relative;
}

.main-nav a:hover, .main-nav a.active-link {
    color: var(--secondary-color);
}

.main-nav a.active-link::after,
.main-nav a:hover::after {
    content: '';
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 0.5rem;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.main-nav a.btn {
    margin-left: 1.5rem;
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 10px 22px;
    box-shadow: var(--shadow-sm);
}
.main-nav a.btn:hover {
    background: #0056b3;
}


/* --- HERO SECTION (Homepage) --- */
.hero-section {
    color: var(--white-color);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 86, 179, 0.85), rgba(0, 86, 179, 0.85)), url('assets/images/gallery-03.jpg') no-repeat center center/cover;
    padding: 4rem 20px;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--white-color);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    color: rgba(255, 255, 255, 0.9);
}

.hero-content .conference-meta {
    font-size: 1.05rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: var(--border-radius-lg);
    display: inline-block;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white-color);
}

/* --- GENERAL SECTION STYLING --- */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}
.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}
.section-header p {
    max-width: 700px;
    margin: 0.8rem auto 0 auto;
    color: #6c757d;
    font-size: 1.05rem;
}

.page-content, .partners-section, .preview-section, .sponsorship-section, .throwback-section {
    padding: 5rem 0;
}

/* --- THROWBACK GALLERY --- */
.throwback-section {
    background-color: var(--white-color);
}
.throwback-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem auto;
}

.gallery-container {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery-container:hover .gallery-track {
    animation-play-state: paused;
}

.gallery-track {
    display: flex;
    gap: 1.8rem;
    width: max-content;
}

.gallery-track img {
    height: 250px;
    width: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}


/* --- PARTNERS SECTION --- */
.partners-section {
    background: var(--light-gray);
    padding: 4rem 0;
}
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 2.5rem;
    align-items: center;
    justify-items: center;
}
.partner-logo img {
    max-height: 70px;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease-in-out;
}
.partner-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15);
}

/* --- PREVIEW & SPONSORSHIP (HORIZONTAL SCROLL ON MOBILE) --- */
.sponsorship-section {
    background: var(--light-gray);
}
.preview-section {
    background: var(--white-color);
}

.sponsorship-grid, .preview-grid, .aims-grid, .themes-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.8rem;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.sponsorship-grid::-webkit-scrollbar, .preview-grid::-webkit-scrollbar, .aims-grid::-webkit-scrollbar, .themes-container::-webkit-scrollbar {
    display: none;
}
.sponsorship-grid, .preview-grid, .aims-grid, .themes-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sponsor-card, .preview-card, .aim-card, .theme-card {
    flex: 0 0 calc(100% - 30px);
    max-width: 320px;
    scroll-snap-align: start;
    background: var(--white-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sponsor-card:hover, .preview-card:hover, .aim-card:hover, .theme-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.sponsor-card {
    overflow: hidden;
}
.sponsor-card .sponsor-flyer {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.preview-card {
    padding: 2.2rem;
    text-align: center;
}
.preview-card .icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
}
.preview-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}
.preview-card p {
    flex-grow: 1;
    margin-bottom: 1.8rem;
    color: #6c757d;
}
.preview-card .btn-secondary {
    margin-top: auto;
}


.sponsorship-section .section-header p {
    max-width: 800px;
}
.sponsor-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 2.5rem;
    background-color: var(--white-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}
.sponsor-cta h3 {
    font-size: 1.8rem;
    color: var(--dark-teal);
    margin-bottom: 1rem;
}
.sponsor-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #5a6268;
}

/* --- ABOUT PAGE --- */
.about-image-full-width {
    width: 100%;
    max-height: 450px;
    margin-bottom: 3.5rem;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}
.about-image-full-width img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.member-count-box {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 2.5rem;
    text-align: center;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.member-count-box h4 {
    font-size: 1.6rem;
    color: var(--white-color);
    margin-bottom: 0.5rem;
}
.member-count-box .count {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--white-color);
    line-height: 1;
}

.aim-card {
    padding: 2rem;
    text-align: center;
    background-color: var(--white-color);
    box-shadow: var(--shadow-sm);
}

.aim-card .aim-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}
.aim-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}
.aim-card p {
    color: #6c757d;
}

/* --- SPEAKERS PAGE --- */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.speaker-card-container {
    background-color: transparent;
    height: 380px;
    perspective: 1000px;
    cursor: pointer;
}

.speaker-card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}

.speaker-card-container:hover .speaker-card {
    transform: rotateY(180deg);
}

.speaker-card-front,
.speaker-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.speaker-card-front {
    background-color: var(--white-color);
    padding: 2rem 1.5rem;
    text-align: center;
}

.speaker-card-front img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid var(--light-gray);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.speaker-card-front h3 {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    color: var(--primary-color);
}

.speaker-card-front p {
    color: #777;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

.speaker-card-back {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: rotateY(180deg);
    padding: 2.5rem;
    text-align: center;
}

.speaker-card-back h4 {
    color: var(--white-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.speaker-card-back .topic-text {
    color: var(--white-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.speaker-card-back .profile-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    flex-grow: 1;
}

.speaker-card-back .btn {
    background: var(--white-color);
    color: var(--primary-color);
    margin-top: auto;
}
.speaker-card-back .btn:hover {
    background: var(--light-gray);
}


/* --- CONFERENCE PAGE --- */

.conference-hero {
    background: linear-gradient(rgba(0, 86, 179, 0.9), rgba(0, 86, 179, 0.9)), url('assets/images/gallery-05.jpg') no-repeat center center/cover;
    color: var(--white-color);
    padding: 5rem 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.conference-hero h1 {
    font-size: 3rem;
    color: var(--white-color);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.conference-hero .theme {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
}

.conference-meta-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 3rem;
    margin-top: 1.5rem;
}

.meta-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: var(--border-radius-lg);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--white-color);
    border: 1px solid rgba(255,255,255,0.2);
}
.meta-item i {
    color: var(--white-color);
    font-size: 1.2rem;
}

.conference-content {
    background-color: var(--white-color);
    padding: 5rem 0;
}

.conference-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.conference-main h2 {
    margin-bottom: 1.5rem;
}
.conference-main h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.6rem;
}

.objectives-section {
    margin-top: 3rem;
}
.objectives-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}
.objectives-section .theme-card {
    margin-bottom: 1.5rem;
}

.theme-card {
    background: var(--light-gray);
    padding: 1.8rem;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    border-radius: var(--border-radius-md);
}

.theme-card-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}
.theme-card-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.theme-card-content p {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0;
}

.conf-topics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.core-topics, .sub-themes {
    background-color: var(--white-color);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.core-topics h3, .sub-themes h3 {
    font-size: 1.5rem;
    color: var(--dark-teal);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.core-topics h3::after, .sub-themes h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.core-topics ul, .sub-themes ul {
    list-style: none;
    padding: 0;
}
.core-topics ul li, .sub-themes ul li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed #e9ecef;
    color: #495057;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.core-topics ul li {
    padding: 1.6rem 0;
    gap: 1.5rem;
}
.core-topics ul li i {
    color: var(--secondary-color);
    width: 35px;
    text-align: center;
    font-size: 2.2rem;
}

.conference-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

.conference-sidebar .card {
    padding: 2rem;
}

.conference-sidebar h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.conference-sidebar .sidebar-item {
    margin-bottom: 2rem;
}
.conference-sidebar ul {
    list-style: none;
    padding-left: 0;
}
.conference-sidebar ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #495057;
    font-size: 1rem;
}
.conference-sidebar ul li i {
    color: var(--primary-color);
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

/* --- NEW REGISTRATION PAGE --- */

.registration-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.registration-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    max-width: 1200px;
    width: 100%;
    margin: auto;
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.registration-form-wrapper {
    padding: 3rem 4rem;
}

.registration-decor-wrapper {
    background: linear-gradient(to top, rgba(0, 86, 179, 0.9), rgba(0, 123, 255, 0.9)), url('assets/images/Conference.jpg') no-repeat center center/cover;
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.decor-content .decor-logo {
    max-width: 120px;
    margin-bottom: 2rem;
}
.decor-content h2 {
    color: var(--white-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}
.decor-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
}
.decor-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius-md);
}
.decor-meta span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}


/* --- New Progress Bar --- */
.progress-bar-container {
    padding: 0;
    margin-bottom: 3rem;
}
.progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.progress-bar::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    transform: translateY(-50%);
    height: 4px;
    width: calc(100% - 50px);
    background-color: #e0e0e0;
    z-index: 1;
}
.progress-bar::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    transform: translateY(-50%);
    height: 4px;
    /* Adjust width calculation */
    width: calc(var(--progress-width, 0) / 100 * (100% - 50px));
    background-color: var(--accent-color);
    z-index: 2;
    transition: width 0.4s ease;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    text-align: center;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white-color);
    color: #ccc;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.4s ease;
}
.progress-step.active .step-icon {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: var(--white-color);
}
.step-label {
    margin-top: 0.5rem;
    font-weight: 500;
    color: #aaa;
    transition: color 0.4s ease;
    font-size: 0.9rem;
}
.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}
.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

/* --- New Form Styles --- */
#registration-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.2rem;
}
#registration-form .full-width {
    grid-column: 1 / -1;
}

#registration-form .form-group {
    margin-bottom: 0;
}

#registration-form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: block;
}
#registration-form input[type="text"],
#registration-form input[type="email"],
#registration-form input[type="tel"],
#registration-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dcdcdc;
    border-radius: var(--border-radius-sm);
    background: #fafafa;
    transition: all 0.3s ease;
}

#registration-form input::placeholder,
#registration-form textarea::placeholder {
    color: #a0a0a0;
}

#registration-form input:focus,
#registration-form textarea:focus {
    background: var(--white-color);
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

#registration-form textarea {
    resize: vertical;
    min-height: 100px;
}


/* --- New Payment Layout --- */
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.payment-instructions h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}
.mpesa-details {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1rem;
    border: 1px solid #eee;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.payment-left .form-group {
    margin-top: 1.5rem;
}

.tier-selection h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.tier-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.tier-option {
    display: block;
    background: var(--white-color);
    border: 2px solid #eee;
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.tier-option:hover {
    border-color: var(--secondary-color);
}
.tier-option input[type="radio"] {
    display: none;
}
.tier-option.selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
    background: #f0f8ff;
}
.tier-option.selected .tier-price {
    font-weight: 700;
}
.tier-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tier-name {
    font-weight: 600;
}
.tier-price {
    font-weight: 700;
    color: var(--primary-color);
}
.form-group.terms {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
}
.terms label {
    margin: 0;
    font-weight: 500;
}
.terms .link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}
.terms .link:hover {
    text-decoration: underline;
}


/* --- New Success Message --- */
.success-message {
    text-align: center;
    padding: 3rem 1rem;
}
.success-message .success-icon {
    font-size: 5rem;
    color: #28a745;
    line-height: 1;
    margin-bottom: 1.5rem;
}
.success-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.success-message p {
    max-width: 450px;
    margin: 0 auto 2rem auto;
}
.success-message .btn {
    margin-top: 1rem;
}

/* --- NEW CONTACT PAGE UI --- */

.contact-page {
    background-color: var(--white-color);
}

.contact-hero {
    position: relative;
    background-color: var(--primary-color);
    padding: 8rem 0;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('assets/images/gallery-02.jpg') no-repeat center center/cover;
    transform: skewX(-10deg);
    transform-origin: top left;
    box-shadow: 10px 0px 20px rgba(0,0,0,0.2);
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero-content {
    max-width: 45%;
    margin-left: auto;
    color: var(--white-color);
}

.contact-hero-content h1 {
    color: var(--white-color);
    font-size: 3.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.contact-hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
}

.contact-body {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--white-color);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.info-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}
.info-card:last-child {
    margin-bottom: 0;
}

.info-card-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #eef5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
}
.info-card-content p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.info-card-content a, .info-card-content span {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.info-card-content a:hover {
    color: var(--secondary-color);
}

.contact-form-container {
    padding-left: 3rem;
    border-left: 1px solid #eee;
}

.contact-form-container h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.contact-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.contact-form .full-span {
    grid-column: 1 / -1;
}

.contact-form .form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}
.contact-form input, .contact-form textarea {
    background: var(--light-gray);
    border: 1px solid #e0e0e0;
    padding: 14px;
    border-radius: var(--border-radius-sm);
}
.contact-form input:focus, .contact-form textarea:focus {
    background: var(--white-color);
}

.contact-form .btn {
    width: 100%;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.contact-map-section {
    line-height: 0;
}

/* --- FOOTER --- */
.main-footer {
    background: #04004d;
    color: var(--white-color);
    padding: 5rem 20px 2rem 20px;
    text-align: center;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    color: var(--white-color);
    margin-bottom: 1.8rem;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 0.8rem;
}
.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}
.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}
.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}
.footer-socials {
    margin-top: 0;
    display: flex;
    gap: 1.5rem;
}
.footer-socials a {
    color: var(--white-color);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-socials a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}
.footer-logo img {
    height: 60px;
    margin-bottom: 1.5rem;
}

/* --- RESPONSIVE ADJUSTMENTS --- */

@media (max-width: 992px) {
    .registration-container {
        grid-template-columns: 1fr;
    }
    .registration-decor-wrapper {
        display: none;
    }
    .registration-form-wrapper {
        padding: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-container {
        padding-left: 0;
        border-left: none;
        padding-top: 3rem;
        border-top: 1px solid #eee;
    }
    .contact-hero::before {
        width: 100%;
        transform: skewX(0);
        opacity: 0.2;
    }
    .contact-hero-content {
        max-width: 100%;
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: var(--shadow-md);
        padding: 1rem 0;
        border-top: 1px solid #eee;
        z-index: 999;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 12px 20px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--light-gray);
    }
    .main-nav a:last-of-type {
        border-bottom: none;
    }
    .main-nav a:hover, .main-nav a.active-link {
        background-color: var(--light-gray);
    }

    .main-nav a.btn {
        margin: 1rem auto 0.5rem auto;
        width: calc(100% - 40px);
        padding: 12px 20px;
    }
    .main-nav a.active-link::after,
    .main-nav a:hover::after {
        content: none;
    }

    .hero-content h1, .contact-hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p, .contact-hero-content p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    .section-header h2::after {
        width: 40px;
        height: 3px;
    }

    .sponsorship-grid, .preview-grid, .aims-grid, .themes-container {
        justify-content: flex-start;
    }
    .sponsor-card, .preview-card, .aim-card, .theme-card {
        flex: 0 0 calc(100% - 40px);
        margin-right: 20px;
    }
    .sponsor-card:last-child, .preview-card:last-child, .aim-card:last-child, .theme-card:last-child {
        margin-right: 0;
    }

    .gallery-track {
        padding: 0 20px;
    }

    .conference-meta-grid {
        flex-direction: column;
        gap: 1rem;
    }
    .meta-item {
        width: fit-content;
        margin: 0 auto;
    }
    
    #registration-form .form-grid, .payment-grid, .contact-form .form-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        padding: 2rem;
    }
}


@media (min-width: 768px) {
    .main-nav {
        display: flex !important;
    }
    
    .sponsorship-grid, .preview-grid, .aims-grid, .themes-container {
        display: grid;
        width: 100%;
        overflow-x: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }
    .preview-grid, .sponsorship-grid, .aims-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .theme-card, .sponsor-card, .preview-card, .aim-card {
        flex: auto;
        max-width: none;
        margin-right: 0;
    }

    .speakers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
    .footer-col h4::after {
        left: 0;
        transform: none;
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    .footer-socials {
        margin-top: 0;
        justify-content: flex-start;
    }
    .about-content-grid {
        grid-template-columns: 2fr 1fr;
    }
    .conference-grid {
        grid-template-columns: 2fr 1fr;
    }
    .conf-topics-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    #registration-form .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    #registration-form .full-width {
        grid-column: span 2;
    }
}

@media (min-width: 992px) {
    .preview-grid, .sponsorship-grid, .aims-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .themes-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .speakers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- MODALS (SPEAKER & TERMS) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white-color);
    border-radius: var(--border-radius-md);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2.5rem;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover {
    color: var(--text-color);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

#modal-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

#modal-name {
    margin-bottom: 0.25rem;
}
#modal-title {
    margin-bottom: 0;
    color: #6c757d;
}

.modal-body h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}
.modal-body p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- Terms Modal Specific Styles --- */
#terms-modal .modal-content {
    max-width: 700px;
}
#terms-modal .modal-header-text {
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}
#terms-modal h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}
#terms-modal ul {
    list-style-position: inside;
    padding-left: 0.5rem;
}
#terms-modal ul li {
    margin-bottom: 0.5rem;
    color: #5a6268;

}
/* --- Tier Deadline Styles --- */
.tier-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.tier-deadline {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
    margin-top: 4px;
}
