:root{
    --card:#fff;
    --text:#17212b;
    --text-soft:#4b5b6b;
    --muted:#6b7280;
    --apnblue:#005397;
    --apnbluedark:#003d6a;
    --apngreen:#51B948;
    --apnorange:#f58021;
    --darkgrey:#2e2e2e;
    --offblue:#437196;
    --border:#dbe5ef;
    --disabled:#eef3f8;
    --danger:#b42318;
    --shadow-sm: 0 2px 10px rgba(15,23,42, 0.05);
    --shadow: 0 12px 40px rgba(15,23,42, 0.1);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --bg: #f0f4fa;
    --port:#f8fbff;


    /* 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(--surface);
}


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: var(--text-secondary);
  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);
}


hr{
    border:0;
    border-top:1px solid var(--border);
    margin: 20px 0;
}


/*Main Wrapper*/
#register-wrapper{
    width:min(100%, 980px);
    margin:40px auto;
    padding:32px;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow:var(--shadow);
    overflow:hidden;
}

#register-wrapper h1{
    font-size:2rem;
    margin-bottom: 8px;
    color: var(--text);
}

#register-wrapper h2{
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text);
}

#register-wrapper h3{
    font-size: 1 rem;
    margin-bottom: 10px;
    color: var(--text);
}

#register-wrapper p{
    font-size: 1rem;
    margin-bottom: 18px;
    line-height:1.5;
    color: var(--text-soft);
}

/*Progress Bar*/
#progressBar-wrapper{
    margin-bottom:28px;
    padding: 20px 16px 16px;
    border:1px solid var(--border);
    border-radius: var(--radius);
    background: var(--port);
}

.stepper {
    position: relative;
    min-width:700px;
}

.stepper-track {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 4px;
    border-radius: 999px;
    background:#dbe5ef;
    overflow:hidden;
}
.stepper-progress-fill {
    width:0;
    height:100%;
    border-radius:999px;
    background: linear-gradient(90deg, var(--apnblue)0%, #2d79be 100%);
    transition: width 0.3s ease;
}




.stepper-list {
    list-style: none;
    margin:0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.step-item {
    flex:1;
    text-align:center;
}

.step-circle {
    width:40px;
    height:40px;
    margin: 0 auto;
    border-radius:999px;
    background:#fff;
    border:2px solid #c8d8e8;
    color: var(--muted);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    transition: all 0.3s ease;
}

.step-number {
    display:inline;
}

.step-check {
    display:none;
}

.step-label{
    display:block;
    margin-top:10px;
    font-size:0.8rem;
    font-weight:600;
    color:var(--muted);
    line-height:1.3;
}

.step-item.is-active .step-circle{
    border-color: var(--apnblue);
    background: var(--apnblue);
    color:#fff;
    box-shadow:0 0 0 6px rgba(0, 83, 151, 0.12);
}

.step-item.is-active .step-label{
    color: var(--apnblue);
}

.step-item.is-complete .step-circle{
    border-color: var(--f-success);
    background: var(--f-success);
    color:#fff;
}

.step-item.is-complete .step-number{
    display:none;
}

.step-item.is-complete .step-check{
    display:inline;
}

.step-item.is-complete .step-label{
    color: var(--f-success);
}

/*FORM TABLE*/

.tblRegister {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 14px;
}

.tblRegister td {
    vertical-align:top;
}

.tblRegister td:first-child {
    width: 240px;
    padding: 10px 18px 0 0;
    font-weight:600;
    color: var(--text-soft);
}



.padLeft {
    margin-left: 32px;
    margin-top: 8px;
}

.validatorLabel {
    font-weight: 600;
    color: var(--text-soft);
    margin-top: 12px;
    margin-bottom: 4px;
}

.validatorContainer {
    margin-top: 4px;
}

.radioMask,
.checkboxMask {
    cursor: pointer;
    vertical-align: middle;
}

.emailFlag {
    margin-right: 8px;
}

.input-wrapper {
    margin-bottom: 16px;
}

label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
}
.profile-grid .input-wrapper {
    margin-bottom: 0;
}
.profile-grid label {
    margin-bottom: 8px;
}

.profile-grid td{
    padding:0;
    width: 50%;
}

.profile-col{
    display:flex;
    flex-direction:column;
    width:100%;

}

.form-row {
    display:flex;
    gap: 32px;
    flex-wrap:wrap;
}

.form-row label{
    margin-top: 10px;
    color: var(--text-soft);
    font-size: 1rem;
}

#codeBlock {
    padding: 20px 16px;
    border-radius: var(--radius-sm);
    border:1px solid var(--border);
    display:block;
    margin-top: 10px;
    width:50%;
}

#codeBlock label {
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 4px;
    display:block;
}
/* Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select,
.skinRegistrationTextbox, 
.skinRegistrationTextbox2,
.skinLogin {
    width: min(100%, 420px);
    max-width:100%;
    min-height:15px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    margin-bottom: 10px;
    margin-top: 4px;
    margin-left: 0;
    margin-right: auto;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.required,
.error {
    width: min(100%, 420px);
    max-width:100%;
    min-height:15px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    margin-bottom: 10px;
    margin-top: 4px;
    margin-left: 0;
    margin-right: auto;
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing:border-box;
}

.error {
    border-color: var(--danger);
    background: #fff5f4;
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
}

.textarea {
    min-height: 96px;
    resize:vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #6da3d3;
    box-shadow: 0 0 0 4px rgba(0, 83, 151, 0.1);
}

.disabled,
input[disabled],
input[readonly],
textarea[disabled],
textarea[readonly],
select[disabled],
select[readonly] {
    background: var(--disabled) !important;
    color: var(--muted) !important;
    border-color: #dde6ef !important;
}

/* Agreement Section */

#agreement-wrapper {
    max-height:360px;
    overflow:auto;
    margin: 18px 0 22px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius:var(--radius);
    background:#fcfdff;
}

/* Buttons */
.button, 
.button-disabled,
#register-wrapper input[type="submit"],
#register-wrapper input[type="button"],
#register-wrapper button {
    min-height: 44px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
    letter-spacing: 0.01em;
}

#btnNext, #btnAccept {
    background: var(--apnblue);
    color: #fff;
}

#btnNext:hover, #btnAccept:hover {
    background: #2d79be;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 121, 190, 0.3);
}

#btnBack {
    background: var(--border);
    color: var(--text-soft);
}

#btnBack:hover {
    background: #c8d8e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 216, 232, 0.3);
}

#btnAccept {
    background: var(--apnblue);
    margin-left: auto;
}

#btnAccept:hover {
    background: #3cbf4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(60, 191, 74, 0.3);
}

.btn-primary {
    background: var(--apnblue);
    color: #fff;
}

.btn-primary:hover {
    background: #2d79be;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 121, 190, 0.3);
}

/* Static wizard Step 1: agreement checkbox + Accept button */
.agreement-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.agreement-actions label {
    margin: 0;
    font-size: 14px;
    color: var(--text-soft);
}


#btn-primary {
    background: var(--apnblue);
    color: #fff;
}

#btn-primary:hover {
    background: #2d79be;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 121, 190, 0.3);
}

#register-wrapper input[disabled],
#register-wrapper button[disabled],
.button-disabled {
    background:#b7c5d4 !important;
    box-shadow:none !important;
    cursor:not-allowed !important;
}

.registrationBtn {
    display: flex; 
    gap:12px;
    flex-wrap:wrap; 
    margin-top: 24px !important;
}

/* Static wizard action buttons (Back / Continue) */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.review-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.review-list li {
    margin-bottom: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.review-list li:last-child {
    border-bottom: none;
}

.review-list .item-label {
    font-weight: 600;
    color: var(--text);
}

.review-list .item-value {
    color: var(--text-soft);
    margin-top: 4px;
}

.review-list span {
    display: block;
    margin-top: 4px;
    color: var(--text-soft);
    
}


/* Validation Errors */
.error-note, 
span[style*="color:darkred"],
div[style*="color:darkred"] {
    color: var(--danger) !important;
    font-size: 0.84rem;
    font-weight:600;
}

/* Lightbox */

#lightboxContainer,
.lightboxContainer {
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 20px;
}

#lightboxBackdrop,
.lightboxBackdrop {
    position:fixed;
    inset:0;
    z-index:9998;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

#lightboxContent,
.lightboxContent,
.lightboxPanel,
.lightboxAlert {
    position:relative;
    width:min(100%, 650px);
    max-height: calc(100vh - 40px);
    overflow-y:auto;
    background:#fff;
    border-radius: var(--radius-lg);
    padding:24px;
    border-top: 8px solid var(--apnblue);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position:absolute;
    top:16px;
    right:16px;
    width: 32px;
    height: 32px;
    border: none;
    background:#f5f5f5;
    border-radius: 50%;
    cursor: pointer;
}

.lightbox-close:before{
    content:"x";
    font-size:24px;
    line-height:1;
}

/*Tablet and Mobile Responsiveness*/

@media (max-width: 1024px) {
    main {
        height: auto;
        align-items: stretch;
        padding: 80px 24px 32px;
    }

    #register-wrapper {
        margin: 24px auto;
        padding: 24px;
    }

    #progressBar-wrapper {
        padding: 16px 12px;
    }

    .stepper {
        min-width: 0;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .profile-grid {
        gap: 24px;
    }

}

@media (max-width: 768px) {
    body {
        background: var(--bg);
    }

    main {
        height: auto;
        align-items: stretch;
        padding: 80px 16px 24px;
    }

    #register-wrapper {
        width: 100%;
        margin: 16px auto 24px;
        padding: 20px 16px;
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
    }

    #register-wrapper h1 {
        font-size: 1.6rem;
    }

    #register-wrapper h2 {
        font-size: 1.25rem;
        margin-bottom: 18px;
    }

    #register-wrapper p {
        font-size: 0.95rem;
    }

    #progressBar-wrapper {
        margin-bottom: 20px;
    }

    .stepper {
        min-width: 0;
    }

    .stepper-track {
        left: 12%;
        width: 76%;
        top: 24%;
    }

    .step-circle {
        width: 32px;
        height: 32px;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .agreement-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .agreement-actions button {
        width: 100%;
    }

    .wizard-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wizard-actions .btn,
    .wizard-actions button {
        width: 100%;
        justify-content: center;
    }

    .registrationBtn {
        flex-direction: column;
    }

    .tblRegister,
    .tblRegister tbody,
    .tblRegister tr,
    .tblRegister td {
        display: block;
        width: 100%;
    }

    .tblRegister td:first-child {
        width: 100%;
        padding: 0 0 4px 0;
    }

    .padLeft {
        margin-left: 0;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    #codeBlock {
        width: 100%;
    }

    #agreement-wrapper {
        max-height: 260px;
    }
}
 @media (max-width:900px){
    .stepper-track {
        left: 12%;
        width: 76%;
        top: 24%;
    }   

    .nav-toggle { display: block; }

  .nav-links {
    text-align: center;
    display: none;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
    padding: 12px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
  }
  .nav-links a {
    background: rgba(52,73,98,0.25);
    color: var(--darkgrey);
    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;
    }
}

