:root{
    --card:#fff;
    --text:#1a1f24;
    --muted:#6b7280;
    --apnblue:#005397;
    --apngreen:#51B948;
    --apnorange:#f58021;
    --darkgrey:#2e2e2e;
    --offblue:#437196;
    /* footer styles */
    --f-primary:#2c3e50;
    --f-secondary: #34495e;
    --f-accent: #3498db;
    --f-light:#ecf0f1;
    --f-success: #27ae60;
    --f-warning: #f39c12;
    --f-alert:#e74c3c;
    --f-text:#2c3e50;
    --f-text-light: #7f8c8d;
    --f-border:rgba(189, 195, 199, 0.5);
    --f-shadow: rgba(44,62,80,0.15);
    --f-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --footer-height: 80px;
}

*{
    box-sizing:border-box;
    margin:0;
    padding:0;

}

html{
    height:100%;
    margin: 0;
}

body{
    display:flex;
    flex-direction:column;
    min-height:100vh;
    font-family: system-ui, -apple-system, Segoe Ui, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--offblue);
}

h2 {
    color: #333333 !important;
}

main{
  flex: 1 0 auto;
  display: flex;
  max-height: none; 
  padding-top: 75px;
  justify-content: center;
  align-items: center;
  height:100vh;
}

main.site-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-top: 75px;
  padding-bottom: 0;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
}


footer{
  flex-shrink: 0;
 width:100%;
}

section, main, footer {
  height: auto;
  scroll-snap-align: start;
}


section.site-section, main.site-main, footer.site-footer, section.page {
  height: auto;
  scroll-snap-align: start;
}


/* ===== Header Navigation ===== */
.site-header {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0;
  height: 64px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  z-index: 1000;
  background: none;          
  backdrop-filter: none;    
}

.center-page .site-header {
  justify-content: center;
}
/*.page {
  padding-top: 64px;
}
*/

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* logo */
.brand img{
  display: block;
  height:40px;
}


.nav-links {
  display: flex;
  gap: 15px;
}


.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
}


.nav-links a:hover {
  color:var(--darkgrey);
  background: rgba(255,255,255,0.5);
}

/* site header when scrolled */
.site-header.scrolled{
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px) saturate(110%);
    -webkit-backdrop-filter: blur(8px) saturate(110%);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: var(--f-transition);
}

.site-header.scrolled .nav-toggle span{
    background: var(--darkgrey);
}

/* nav-links when scrolled */
.nav-links.scrolled a,
.site-header.scrolled .nav-links a {
    color: var(--darkgrey);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    background: transparent;
    transition: color .2s ease, background .2s ease;
}

/* smooth default transition */
.nav-links a {
    transition: color .2s ease, background .2s ease;
}


.contact-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  border:none;
  cursor:pointer;
  background: var(--apnorange);
}

.contact-btn a{
  background: var(--apnorange);
  color: #fff;
  text-decoration: none;
  font-weight: 600;

  cursor:pointer;
  transition: background .15s ease;
}
.contact-btn:hover{
  background: #cc6b1c;
}


/* Hamburger toggle*/
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  position: fixed;
  top: 16px;
  right: 5vw;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 24px; 
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}



/*foreground*/

.page{
    display: flex;
    flex: 1 0 auto;
    min-height: calc(80vh - var(--footer-height)) !important;
    width:100%;
    padding-bottom:0 !important;
  height:100vh;
  justify-content: center;
  align-items: center;
}

.page-content{
    flex: 1 0 auto;
    display: block;
    box-sizing: border-box;
    padding: 16px;
    min-height:0;
}

.forgot-section{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  margin: auto 0;
}

.forgot-card {
  width: min(600px, 92%);
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  padding: 28px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: stretch;
  margin: auto;
}

.logo{
    display:block;
    margin:0 auto 20px auto;
    max-width:350px;
    width:100%;
    height: auto;
    object-fit: contain;
}

.forgot-title{
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 18px;

}

.input{
  width:100%;
  padding: 14px 10px;
  border-radius:8px;
  border:1px solid #d8dbe2 !important;
  background:#f9fafb;
  font-size:16px;
  margin-top:12px;
  margin-bottom:5px;
  outline:none;
  transition: border .15s ease, background .15s ease;
  box-sizing: border-box;
}

.input:focus{
    border-color: #c4c8d2;
    background:#fff;
}

.submit-btn{
    display: block;
    margin-top: 12px;
    width:100%;
    padding: 14px 10px;
    border-radius:8px;
    border:none;
    background: var(--apnblue);
    color:#fff;
    font-size:16px;
    font-weight:400;
    cursor:pointer;
    transition: background .15s ease;
    text-transform: uppercase;
}

.submit-btn:hover{
    background: #004a7c;
}

.forgot-section p{
    text-align: left;
    color: var(--muted);
    font-size: 14px;
    margin-top: 12px;
}

.forgot-section p a{
    color: var(--apnblue);
    text-decoration: none;
    text-align:left;
    font-weight: 600;
    transition: color .15s ease;
}

.forgot-section p a:hover{
    color: #004a7c;
}

.forgot-section h1{
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.forgot-section .error-message{
    color: var(--f-alert);
    text-align: center;
    margin-top: 12px;
    font-weight: 600;
}

.forgot-section .success-message{
    color: var(--f-success);
    text-align: center;
    margin-top: 12px;
    font-weight: 600;
}

.forgot-section .info-message{
    color: var(--f-secondary);
    text-align: center;
    margin-top: 12px;
    font-weight: 600;
}

.forgot-section .info-message a{
    color: var(--apnblue);
    text-decoration: none;
    font-weight: 600;
    transition: color .15s ease;
}

.forgot-section .info-message a:hover{
    color: #004a7c;
}

.forgot-section .loading-message{
    color: var(--f-secondary);
    text-align: center;
    margin-top: 12px;
    font-weight: 600;
}

.forgot-section .loading-message .spinner{
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--f-secondary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.forgot-section .loading-message .spinner::after{
    content: "Loading...";
    display: inline-block;
    margin-left: 8px;
    font-size: 14px;
    color: var(--f-secondary);
}


@media (max-width: 480px) {
    .forgot-card {
        padding: 10px;
        margin: auto;
    }
    .forgot-title {
        font-size: 1.5rem;
        padding: 5px;
        margin-bottom:5px;
        text-align:left;
    }
.forgot-section {
    padding: 20px;
    margin-top: 5px;
    margin-bottom: 10px;
}
main.site-main {
    padding-top: 25px;
}
.page {
    padding-bottom: 0;
height:20vh;
}
}

@media (max-width: 900px) {
  

  .forgot-section{
    padding: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
       .nav-toggle { display: block; }

  .nav-links {
    text-align: center;
    display: none;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
  }
  .nav-links a {
    background: rgba(52,73,98,0.25);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border:none;
    cursor:pointer;
  }
  .contact-btn a{
  background: #f58021;

}
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 55px;
    right: 5vw;
    transition: var(--f-transition);
  }

  .nav-links.open.scrolled {
    display: flex;
    position: fixed;
    top: 55px;
    right: 5vw;
    transition: var(--f-transition);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px) saturate(110%);
    -webkit-backdrop-filter: blur(8px) saturate(110%);
  }

  .nav-links a:hover {
  background: rgba(255,255,255,0.95);
}

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

.contact-btn a:hover {
  background: none;
}

.site-header{
      justify-content: space-between;
    }
    
.page{ 
  padding-bottom: 12px;}
}