* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html,
body {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background: #fff;
    color: #0a1f5c
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    height: 80px;
    background: #0B5ED7;
    padding: 0 2rem;
    gap: 1rem
}

.nav-logo {
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center
}

.nav-logo img {
    height: 70px;
    width: 70px;
    object-fit: contain;
    display: block
}

.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none
}

.nav-links a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    color: #fff;
    transition: opacity 0.2s;
    white-space: nowrap
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 0.75
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.hamburger.open span:nth-child(2) {
    opacity: 0
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #0B5ED7;
    z-index: 999;
    flex-direction: column;
    padding: 1rem 0
}

.mobile-menu.open {
    display: flex
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1)
}

#scroll-progress {
    position: fixed;
    top: 80px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, #00d4ff, #0B5ED7);
    z-index: 2000
}

#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 500;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0B5ED7;
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(11, 94, 215, 0.4);
    transition: all 0.3s
}

#backToTop:hover {
    background: #0047cc;
    transform: translateY(-3px)
}

#backToTop.show {
    display: flex
}

.page-wrap {
    padding: calc(80px + 3rem) 4rem 4rem
}

.services-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #0B5ED7;
    margin-bottom: 3rem
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 4rem;
    max-width: 1100px;
    margin: 0 auto 3rem
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem
}

.service-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0
}

.service-icon svg {
    width: 100%;
    height: 100%
}

.service-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0B5ED7
}

.service-item p {
    font-size: 0.83rem;
    color: #333;
    line-height: 1.8;
    text-align: justify
}

.register-section {
    max-width: 750px;
    margin: 0 auto;
    background: #f4f8ff;
    border: 1px solid rgba(11, 94, 215, 0.15);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(11, 94, 215, 0.08)
}

.register-section h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0B5ED7;
    margin-bottom: 0.4rem;
    text-align: center
}

.register-section .sub {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-bottom: 1.8rem
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem
}

.form-group.full {
    grid-column: 1/-1
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.6rem 0.9rem;
    border: 1.5px solid rgba(11, 94, 215, 0.2);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #333;
    outline: none;
    transition: border 0.2s;
    background: #fff;
    width: 100%
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0B5ED7
}

.form-group textarea {
    resize: vertical;
    min-height: 80px
}

.form-group select[multiple] {
    min-height: 120px
}

.form-submit {
    background: #0B5ED7;
    color: #fff;
    padding: 0.75rem 2.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    display: block;
    margin: 1.2rem auto 0;
    transition: all 0.2s;
    width: 100%
}

.form-submit:hover {
    background: #0047cc
}

/* Status overlays */
.status-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem
}

.status-overlay.show {
    display: flex
}

.status-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: popIn 0.5s ease
}

@keyframes popIn {
    0% {
        transform: scale(0)
    }

    80% {
        transform: scale(1.1)
    }

    100% {
        transform: scale(1)
    }
}

.status-overlay h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem
}

.status-overlay p {
    font-size: 1rem;
    color: #555;
    max-width: 440px;
    line-height: 1.7;
    margin-bottom: 2rem
}

.status-overlay.success h2 {
    color: #1b5e20
}

.status-overlay.failed h2 {
    color: #e65100
}

.status-btn {
    background: #0B5ED7;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s
}

.status-btn:hover {
    background: #0047cc
}

.status-btn.outline {
    background: transparent;
    border: 2px solid #0B5ED7;
    color: #0B5ED7;
    margin-left: 0.75rem
}

.status-btn.outline:hover {
    background: #0B5ED7;
    color: #fff
}

footer {
    background: #050e1f;
    color: #fff;
    padding: 3rem 3rem 1.5rem
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem
}

.footer-brand img {
    height: 70px;
    width: 70px;
    object-fit: contain;
    margin-bottom: 1rem
}

.footer-brand p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 260px
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.83rem;
    transition: color 0.2s
}

.footer-col ul li a:hover {
    color: #4fa3ff
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    color: #fff
}

.social-btn:hover {
    background: #0B5ED7;
    border-color: #0B5ED7;
    transform: translateY(-2px)
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.2rem
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35)
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-size: 0.78rem
}

.footer-bottom-links a:hover {
    color: #4fa3ff
}

.error-message {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
input.invalid-field {
  border-color: #dc3545;
  background-color: #fff5f5;
}

@media(max-width:900px) {
    .nav-links {
        display: none
    }

    .hamburger {
        display: flex
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem
    }

    .page-wrap {
        padding: calc(80px + 2rem) 2rem 3rem
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .form-group.full {
        grid-column: 1
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem
    }
}

@media(max-width:600px) {
    .site-nav {
        padding: 0 1rem;
        height: 65px
    }

    .nav-logo img {
        height: 55px;
        width: 55px
    }

    .mobile-menu {
        top: 65px
    }

    #scroll-progress {
        top: 65px
    }

    .page-wrap {
        padding: calc(65px + 1.5rem) 1.2rem 2.5rem
    }

    .register-section {
        padding: 1.5rem 1rem
    }

    .footer-top {
        grid-template-columns: 1fr
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center
    }

    footer {
        padding: 2rem 1.5rem 1rem
    }
}