/* Add spacing between birthdate dropdowns */
#birth-month,
#birth-day,
#birth-year {
    margin-right: 8px;
}

/* Spacing for First Name and Last Name fields */

#last-name {
    margin-top: 10px;
}
/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

/* Body and general layout */
body {
  font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 20px;
        background-color: #f4f6f8; /* Keep existing background color */
        color: #333; /* Keep existing text color */
        display: flex; /* Keep existing display property */
  justify-content: center;
  align-items: flex-start;
    min-height: 100vh;
        background-image: url('https://spadrianamnl.com/images/ContactUSBG.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: center center;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: inherit;
    pointer-events: none;
    z-index: -1; 
    filter: brightness(3) opacity(.100);
}

.register-form, .popup-panel {
    position: relative;
    z-index: 1;
}

.register-form {
  /* center horizontally; keep form below fixed header so logo is visible */
  margin: 120px auto 20px auto; /* top margin ensures form is below .popup-panel */
  align-self: flex-start; /* respect top spacing while centered horizontally */
}



/* Headings */
h1, h4 {
  font-family: 'Times New Roman', Times, serif;
  text-align: center;
  margin-bottom: 15px;
  color: #2c3e50;
}

h1 {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 80px;
}

h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-top: 12px;
}

/* Make register form headings match login page heading style */
.register-form h4 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 18px;
  font-weight: 400;
  color: #5a653b; /* match top panel / input border color */
  text-align: center;
  margin: 12px 0 18px 0;
}

/* Form container */
.register-form {
  background-color: #f9f9f9; /* match login form background */
  width: 520px; /* same as login form */
  padding: 36px 48px; /* match login form padding */
  border-radius: 18px; /* rounded corners like login */
  box-shadow: 0 10px 40px rgba(20,40,10,0.12);
  transition: all 0.3s ease;
}

/* Form groups */
.form-group {
    margin-top: 20px;
}

/* Inputs, selects, and textareas - match login form styling */
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #2f7a3f; /* same as login */
  border-radius: 6px;
  box-sizing: border-box;
  margin: 6px 0 14px 0;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Hover and focus states retain the same login green accent */
input:hover, select:hover, textarea:hover,
input:focus, select:focus, textarea:focus {
  border-color: #2f7a3f;
  box-shadow: 0 0 0 3px rgba(47,122,63,0.08);
  outline: none;
}

/* Register form submit button — match login button visuals */
.register-form button[type="submit"] {
    background-color: #55673d;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 200px;
    font-size: 16px;
    margin: 28px auto 8px auto;
    display: block;
    text-align: center;
}

.register-form button[type="submit"]:hover {
    background-color: #485335; /* slightly darker on hover */
}

/* Confirmation message */
#confirmation {
    margin-top: 15px;
    padding: 10px;
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4CAF50;
    border-radius: 5px;
    display: none;
    font-size: 14px;
}

/* Loading message */
.loading {
    display: none;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    color: #555;
    font-size: 13px;
}

/* Error messages */
.error-message {
    color: #e53935;
    margin-top: 8px;
    font-weight: 500;
    display: none;
    font-size: 13px;
}

/* reCAPTCHA */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.popup-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #5a653b;
  height: 100px;
  padding: 15px 0;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: none;
  display: block;
  z-index: 10000;
  
}

.popup-panel.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.popup-panel{
  transition: top 0.3s ease-out; /* smooth slide */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.popup-panel.hide {
  top: -100px; /* move it above the viewport */
}

.popup-panel {
  transition: top 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.popup-panel:not(.show) {
  opacity: 0;
  pointer-events: none; /* so it’s not clickable when hidden */
}



/* Flex layout for menu */
.menu {
  display: flex;
  justify-content: center;

  
}
.account-icon {
  width: 30px; /* try increasing if it's too small */
  height: 30px;
  vertical-align: middle;
  cursor: pointer;
  margin-top: -5px;
  position: absolute;
  left: 700px;  /* moves it to the right edge */
}


/* Menu item styling */
.menu-item {
  position: relative;
  padding: -4px -5px;       /* smaller padding reduces spacing */
  border-radius: 5px;
  color: #fafafa;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
  white-space: nowrap;
  transition: background-color 0.2s ease;
  font-family: "Trirong", serif;
  text-decoration: none;
  display: inline-block;
  font-size: large;
}
.menu-item:last-child {
  margin-right: 0;
}


/* Center-growing underline effect */
.menu-item::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(-50%);
}

.menu-item:hover::after {
  width: calc(100% - 40px);
}

/* Prevent browser default blue link color/underline on hover and focus for header links */
.menu-item,
.menu-item:link,
.menu-item:visited {
  color: #fafafa; /* keep white */
  text-decoration: none; /* no underline */
}

.menu-item:hover,
.menu-item:focus {
  color: #fafafa; /* keep white on hover/focus */
  text-decoration: none;
  outline: none;
}

/* Dropdown styling */
.dropdown {
  position: relative;
}

.dropdown-content {
  font-family: "Trirong", serif;
  display: block;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 600px;

  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  min-width: 150px;
  z-index: 10000;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.dropdown-content a {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown-content a:hover {
  background-color: #5a653b;
  color: white;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Flex container for logo + menu */
.menu-wrapper {
  display: flex;
  align-items: center; /* vertical alignment */
  justify-content: center; /* center everything horizontally */
  gap: 10px; /* space between logo and menu */
  margin-left: -750px;
  margin-top: -15px;
}

/* Logo styling */
.logo-container .logo {
  height: 100px; /* adjust logo size */
  margin-left: 0px;
  
}

/* Menu styling */
.menu {
  display: flex;
  gap: 50px; /* space between menu items */
}
.logo{
  margin-right: 20px;
}

/* Remove margin-left hack */
.menu {
  margin-left: 0;
}


/* Responsive design */
@media (max-width: 768px) {
  .menu {
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .menu-item {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  
  .footer-brand {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-nav {
    gap: 20px;
  }
}

/* Ensure the logo inserted in the register form fits and aligns near the top */
.register-form .form-logo {
  display: block;
  margin: 8px auto 12px auto;
  max-width: 70%;
  height: 100px;
  object-fit: contain;
}

/* Background image blur effect (same as login) */
.bg-image{ position: fixed; top:0; left:0; width:100vw; height:100vh; object-fit:cover; z-index:-1; pointer-events:none; transition: filter 0.35s ease, transform 0.35s ease; will-change: filter, transform; }
.bg-image.blurred{ filter: blur(8px) saturate(0.95) brightness(0.95); transform: scale(1.02); }