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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top, rgba(75, 126, 237, 0.15), transparent 32%), #f5f5f5;
}

html {
    scroll-padding-top: 110px;
}

.page-grid {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    min-height: 100vh;
    background: #f5f5f5;
}

/* LEFT COLUMN: CONTENT */
.left-column {
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.banner-row {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(45, 75, 146, 0.88) 0%, rgba(64, 96, 168, 0.78) 45%, rgba(36, 67, 133, 0.95) 100%), url('assets/dentist-stock.png');
    background-size: cover;
    background-position: center right;
    padding: 22px 24px;
    color: white;
    min-height: 220px;
}

.banner-row::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 30%), radial-gradient(circle at bottom left, rgba(255,255,255,0.08), transparent 28%);
    pointer-events: none;
}

.banner-foreground {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    min-height: 180px;
}

.banner-graphic {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 24px;
    padding: 28px;
    opacity: 0.18;
    pointer-events: none;
}

.banner-graphic i {
    font-size: 3.4rem;
    color: rgba(255, 255, 255, 0.9);
    transform: rotate(-8deg);
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.banner-logo {
    width: 400px;
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    z-index: 1;
}

.banner-copy {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

.banner-copy h1 {
    font-size: 2.35em;
    margin-bottom: 12px;
    line-height: 1.08;
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.banner-copy h3 {
    font-size: 0.98em;
    margin-bottom: 10px;
    opacity: 0.94;
    font-weight: 600;
}

.banner-copy h4 {
    font-size: 0.88em;
    margin-bottom: 14px;
    line-height: 1.55;
    opacity: 0.88;
}

.banner-copy h2 {
    font-size: 1.75rem;
    margin: 0;
    line-height: 1.08;
    font-weight: 700;
}

.content-row {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(320px, 1fr);
    gap: 18px;
    padding: 24px;
    min-height: 0;
}

.footer-row {
    background: linear-gradient(135deg, #172238 0%, #2b3d72 100%);
    color: #f5f5f5;
    padding: 22px 30px;
    text-align: center;
    font-size: 0.95em;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-title-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #3d70d8, #2d4b92);
    color: white;
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(27, 57, 117, 0.18);
    margin-bottom: 24px;
    scroll-margin-top: 76px;
    margin-top: 12px;
}

.form-title-banner span {
    font-size: 1.05em;
    font-weight: 700;
}

.form-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

@media (max-width: 820px) {
    .form-contact {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 8px;
    }
}

.form-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 600;
    color: white;
}

.form-contact-item i {
    color: white;
}

.hero-section h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1em;
    margin-bottom: 5px;
    font-weight: 600;
}

.affiliate {
    font-size: 0.9em;
    margin-bottom: 3px;
    opacity: 0.95;
}

.org {
    font-size: 0.85em;
    margin-bottom: 15px;
    opacity: 0.9;
    font-style: italic;
}

.tagline {
    font-size: 1.5em;
    margin: 15px 0 10px 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.description {
    font-size: 0.95em;
    line-height: 1.5;
    opacity: 0.95;
}

.sticky-nav {
    position: sticky;
    top: 0;
    background: #2d4b92;
    padding: 12px 18px;
    border-bottom: 2px solid #1d357a;
    flex-shrink: 0;
    z-index: 250;
}

/* Space on the right so the CTA doesn't overlap other links */
.sticky-nav { padding-right: 140px; }

.sticky-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.sticky-nav li {
    margin: 0;
}

.sticky-nav a {
    color: #1f2f5f;
    text-decoration: none;
    font-size: 0.85em;
    display: block;
    padding: 10px 18px;
    border-radius: 22px;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.98);
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(94, 110, 230, 0.08);
}

.sticky-nav a:hover,
.sticky-nav a:focus,
.sticky-nav a.active {
    background: #fff;
    color: #2d4b92;
    border-color: #2d4b92;
    transform: translateY(-1px);
}

/* CTA on the extreme right */
.sticky-nav ul { position: relative; }
.sticky-nav .nav-cta {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    list-style: none;
}
.sticky-nav .nav-cta a {
    background: linear-gradient(90deg, #00aaff 0%, #1e6bff 50%, #8b5cff 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 28px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(30, 107, 255, 0.22), 0 4px 12px rgba(139, 92, 255, 0.12);
    border: 0;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    animation: ctaPulse 2.4s infinite ease-in-out;
}
.sticky-nav .nav-cta a:hover,
.sticky-nav .nav-cta a:focus {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 18px 50px rgba(30, 107, 255, 0.26), 0 8px 22px rgba(139, 92, 255, 0.14);
    opacity: 0.98;
}

@keyframes ctaPulse {
    0% { box-shadow: 0 6px 18px rgba(30,107,255,0.12); }
    50% { box-shadow: 0 18px 48px rgba(30,107,255,0.18); }
    100% { box-shadow: 0 6px 18px rgba(30,107,255,0.12); }
}

.content-area {
    flex: 1;
    padding: 22px;
    color: #333;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

.content-area::-webkit-scrollbar {
    width: 8px;
}

.content-area::-webkit-scrollbar-track {
    background: transparent;
}

.content-area::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.section {
    margin-bottom: 28px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    scroll-margin-top: 110px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.section h2 {
    font-size: 1.55em;
    margin-bottom: 12px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 22px;
    background: #667eea;
    border-radius: 2px;
}

.section h3 {
    font-size: 1.14em;
    margin: 12px 0 8px 0;
    color: #444;
}

.section p {
    line-height: 1.65;
    margin-bottom: 12px;
    color: #555;
}

.section ul {
    margin-left: 18px;
    margin-bottom: 12px;
}

.section li {
    margin: 8px 0;
    line-height: 1.6;
    color: #555;
}

.course-info {
    display: grid;
    gap: 14px;
}

.course-detail {
    background: #f8f9fa;
    padding: 14px;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.course-detail h3 {
    color: #333;
    margin-bottom: 10px;
}

.course-detail p,
.course-detail li {
    color: #555;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.dept {
    background: #f0f8ff;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
    color: #333;
}

.dept:hover {
    background: #e6f2ff;
    transform: translateX(3px);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.facility {
    background: #f0f8ff;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
    color: #333;
}

.facility:hover {
    background: #e6f2ff;
    transform: translateX(3px);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.resource {
    background: #f0f8ff;
    padding: 10px 12px;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    font-size: 0.9em;
    transition: all 0.3s ease;
    color: #333;
}

.resource:hover {
    background: #e6f2ff;
    transform: translateX(3px);
}

.student-facilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid #667eea;
}

.facility-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.facility-item i {
    font-size: 1.3em;
    color: #667eea;
    min-width: 30px;
    text-align: center;
}

.facility-item span {
    color: #333;
    font-size: 0.95em;
}

.achievement {
    text-align: center;
    padding: 30px;
    background: #fff3e0;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.achievement i {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
    color: #ff9800;
}

.achievement h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #333;
}

.achievement p {
    color: #555;
}

/* RIGHT COLUMN: FORM */
.right-column {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 76px;
    align-self: flex-start;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    background: transparent;
    padding: 0;
    z-index: 120;
}

.form-container {
    width: 100%;
    max-width: 100%;
    flex: 1;
    min-height: 0;
}

.form-section {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    padding: 26px;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.header h1 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.8em;
    font-weight: 700;
}

.header p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    font-size: 1em;
    font-weight: 500;
}

.contact-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-info i {
    color: white;
    font-size: 1em;
}

.contact-info span {
    color: white;
    font-weight: 600;
    font-size: 0.95em;
}

.form-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.form-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.4em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

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

label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95em;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' 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 12px center;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

textarea {
    resize: vertical;
    min-height: 70px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.message {
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
    font-weight: 600;
    text-align: center;
    font-size: 0.9em;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .sticky-nav {
        padding: 12px;
    }

    .sticky-nav h3 {
        font-size: 0.9em;
        margin-bottom: 10px;
    }

    .sticky-nav a {
        padding: 5px 12px;
        font-size: 0.8em;
    }

    .content-area {
        padding: 25px;
    }

    .form-container {
        max-width: 400px;
    }

    /* Keep the CTA visible on medium screens but adapt spacing */
    .sticky-nav { padding-right: 100px; }
    .sticky-nav .nav-cta { right: 12px; }
}

@media (max-width: 1024px) {
    .page-grid {
        display: block;
    }

    .content-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .left-column {
        width: 100%;
        min-height: auto;
        background: #f0f0f0;
    }

    .banner-row {
        padding: 28px 20px;
    }

    .banner-foreground {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: auto;
    }

    .banner-copy h1 {
        font-size: 2.2em;
    }

    .banner-copy h2 {
        font-size: 1.5em;
    }

    .sticky-nav {
        position: sticky;
        top: 0;
        padding: 10px 14px;
        background: #2d4b92;
        border-bottom: 2px solid #1d357a;
        z-index: 150;
    }

    .sticky-nav ul {
        gap: 8px;
        flex-wrap: wrap;
    }

    .form-title-banner {
        position: sticky;
        top: 86px;
        z-index: 260;
        padding: 14px 16px;
    }

    .form-container {
        max-width: 100%;
    }

    .right-column {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .sticky-nav a {
        padding: 5px 12px;
        font-size: 0.8em;
    }

    .content-area {
        padding: 20px;
        overflow-y: auto;
    }

    .right-column {
        position: static;
        flex: none;
        width: 100%;
        height: auto;
        padding: 20px;
        background: white;
        max-height: none;
        overflow: visible;
    }

    /* Keep CTA as part of navigation inline flow on smaller screens */
    .sticky-nav ul { display: flex; flex-wrap: wrap; align-items: center; }
    .sticky-nav .nav-cta { 
        position: static !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin-left: auto !important;
        list-style: none;
        flex-shrink: 0;
        margin: 0 !important;
    }
    .sticky-nav .nav-cta a { 
        display: inline-block !important;
        width: auto !important;
        padding: 6px 12px !important;
        font-size: 0.75em !important;
        border-radius: 18px !important;
        background: linear-gradient(90deg, #00aaff 0%, #1e6bff 50%, #8b5cff 100%) !important;
        color: white !important;
        font-weight: 700 !important;
        box-shadow: 0 8px 24px rgba(30, 107, 255, 0.18) !important;
        border: 0 !important;
        animation: ctaPulse 2.4s infinite ease-in-out !important;
        visibility: visible !important;
        opacity: 1 !important;
        white-space: nowrap;
    }
    .sticky-nav { padding-right: 8px !important; padding-left: 8px !important; }

    .form-container {
        max-width: 100%;
    }
}

/* Disable sticky banner for phones and small tablets so banner scrolls naturally */
@media (max-width: 820px) {
    .form-title-banner {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
        width: 100%;
        border-radius: 12px;
        margin-top: 16px;
        margin-bottom: 20px;
        scroll-margin-top: 80px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-container {
        max-height: none !important;
        overflow: visible !important;
    }
}

@media (max-width: 768px) {
    .sticky-nav {
        padding: 10px;
    }

    .sticky-nav h3 {
        font-size: 0.85em;
    }

    .sticky-nav a {
        padding: 4px 10px;
        font-size: 0.75em;
    }

    .content-area {
        padding: 15px;
    }

    .hero-section {
        padding: 15px;
    }

    .hero-section h1 {
        font-size: 1.4em;
    }

    .tagline {
        font-size: 1em;
    }

    .section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .section h2 {
        font-size: 1.2em;
    }

    .section h3 {
        font-size: 1em;
    }

    .departments-grid,
    .facilities-grid,
    .student-facilities {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .right-column {
        padding: 15px;
    }

    .header {
        padding: 12px;
        margin-bottom: 15px;
    }

    .logo {
        max-width: 250px;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .form-section {
        padding: 15px;
    }

    .form-section h2 {
        font-size: 1.1em;
    }

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

    input,
    select,
    textarea {
        font-size: 0.9em;
        padding: 9px 10px;
    }

    .submit-btn {
        padding: 10px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 12px;
    }

    .hero-section h1 {
        font-size: 1.2em;
    }

    .tagline {
        font-size: 0.95em;
    }

    .sticky-nav {
        padding: 8px;
        padding-right: 10px;
    }

    .sticky-nav h3 {
        font-size: 0.75em;
    }

    .sticky-nav a {
        padding: 3px 8px;
        font-size: 0.7em;
    }

    .sticky-nav .nav-cta a {
        padding: 6px 12px;
        font-size: 0.75em;
        font-weight: 700;
        border-radius: 18px;
    }

    .content-area {
        padding: 12px;
    }

    .section {
        padding: 12px;
        margin-bottom: 15px;
    }

    .section h2 {
        font-size: 1.1em;
    }

    .departments-grid,
    .facilities-grid,
    .resources-grid,
    .student-facilities {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .right-column {
        padding: 12px;
    }

    .header {
        padding: 10px;
        margin-bottom: 12px;
    }

    .logo {
        max-width: 200px;
    }

    .header h1 {
        font-size: 1.2em;
    }

    .form-section {
        padding: 12px;
    }

    .form-section h2 {
        font-size: 1em;
    }

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

    label {
        font-size: 0.85em;
    }

    input,
    select,
    textarea {
        font-size: 0.85em;
        padding: 8px 10px;
    }

    .submit-btn {
        padding: 9px;
        font-size: 0.9em;
    }
}

@media (max-width: 600px) {
    .content {
        padding: 25px;
    }

    h1 {
        font-size: 2em;
    }

    .form-section h2,
    .submissions-section h2 {
        font-size: 1.3em;
    }
}
