body {
    padding-top: 60px;
    /* space for fixed navbar */
}

.field-row {
  display: flex;
  gap: 1rem; 
  /* margin-bottom: 1rem; */
}

.field-row > .awsui_root_14mhv_8dwez_236 {
  flex: 1 1 calc(50% - 1rem);
}

.cognito-form-header {
    font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif) !important;
}


/* Style selects exactly like your inputs */
/* .field-row select {
  appearance: none;       
  -webkit-appearance: none;
  background-color: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: #333;
  width: 100%;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23666' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.field-row select:focus {
  outline: none;
  border-color: #0061d5;
  box-shadow: 0 0 0 2px rgba(0,97,213,0.2);
} */

/* container must match your AWSUI field wrapper */
/* Style the select element to match your inputs */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23666' height='24' viewBox='0 0 24 24' width='24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
  /* ensure the rounding applies when open in some browsers */
  outline: none;
}

/* Try to style the options themselves (WebKit only) */
select option {
  background-color: #fff;
  color: #2d3748;
  padding: 0.5rem; /* most browsers ignore this */
}

/* On focus, give the same blue outline as your inputs */
select:focus {
  border-color: #0061d5;
  box-shadow: 0 0 0 2px rgba(0,97,213,0.2);
}

/* Hide the default IE/Edge arrow */
select::-ms-expand {
  display: none;
}

.w3-dropdown-hover:first-child, .w3-dropdown-click:hover {
    background-color: white !important;
}

/* limit the dropdown menu’s height & enable scroll */
.w3-dropdown-hover .w3-dropdown-content {
  max-height: 200px;    /* whatever height you like */
  overflow-y: auto;     /* vertical scrollbar when needed */
}

/* optional: thin, light scrollbar for WebKit */
.w3-dropdown-content::-webkit-scrollbar {
  width: 6px;
}
.w3-dropdown-content::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}


#top-nav {
    background-color: #1a202c;
    color: #edf2f7;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#top-nav .brand {
    font-size: 1.25rem;
    font-weight: bold;
}

#logout-btn {
    background: none;
    border: none;
    color: #edf2f7;
    cursor: pointer;
    font-size: 12px;
    font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
}

#logout-btn:hover {
    text-decoration: underline;
}

.form-error {
    color: #d9534f;
    margin-bottom: 1em;
    font-weight: bold;
}

.error-message {
    color: #d9534f;
    font-size: 0.9em;
    margin-top: 0.25em;
}

.zoom-font {
    font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
}

/* invalid = red outline */
input:invalid {
    border: 2px solid #E12D39;
    background-color: #FFF1F0;
}

/* valid after user touches it = blue outline */
input:valid {
    border: 2px solid #0061D5;
}

/* Form‑level error */
.form-error {
    color: #E12D39;
    font-weight: bold;
    margin-bottom: 1em;
}