html {
    scroll-behavior: smooth;
}
    
#home {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.carousel-btn.left {
    left: 1rem;
}

.carousel-btn.right {
    right: 1rem;
}

.carousel::before, 
.carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    z-index: 4;
}

.carousel::before {
    left: 0;
}

.carousel::after {
    right: 0;
}

.carousel:hover .carousel-btn {
    opacity: 1;
    pointer-events: auto;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.5);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;

    display: flex;
    justify-content: flex-end;

    padding: 2rem;
}

.hero-right {
    width: 400px;
    display: flex;
    flex-direction: column;
    
    margin-top: 23vh;
    margin-right: 8rem;
}

.hero-title {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: white;
}

.hero-title h1 {
    font-size: 3.5rem;
    margin: 0;
}

.hero-title p {
    font-size: 1.5rem;
    margin-top: 0.1rem;
}

.hero-nav {
    background-color: #5d725c;

    padding: 2.5rem 2.5rem;
}

.hero-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-nav li {
    width: 100%;
    margin-bottom: 2rem;
}

.hero-nav li:last-child {
    margin-bottom: 0;
}

.hero-nav a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 40px;

    border: 1px solid #cfd6cf;
    color: white;
    text-decoration: none;

    font-size: 1.1rem;
    letter-spacing: 0.02em;

    box-sizing: border-box;
}


.hero-nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

#dues {
    min-height: 100vh;
    background-color: #f4f4f2;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;
}

.dues-dropdown {
    position: absolute;
    top: 0rem;
    left: 50%;
    transform: translateX(-50%);

    width: 420px;
    background-color: #5d725c;
    color: white;

    overflow: hidden;
    transition: height 0.5s ease;

    text-align: center;

}

.dues-handle {
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.1rem;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.dues-content {
    display: block;
    flex-direction: column;
    padding: 0rem 2.5rem 2.75rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dues-content h2 {
    margin: 0;
    padding: 0;
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    color: white;
}

.dues-content ul {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.dues-content li {
    font-size: 1.2rem;
    margin-bottom: 1.4rem;
    text-align: center;
}

.dues-dropdown {
    height: 60px;
    cursor: pointer;
}

.dues-dropdown.open {
    height: 400px;
}

.dues-dropdown.open .dues-content {
    opacity: 1;
    transform: translateY(0);
}

.dues-dropdown.open .dues-handle {
    opacity: 0;
    pointer-events: none;
}

.dues-dropdown:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.dues-box {
    width: 420px;              /* 👈 matches hero-nav feel */
    background-color: #5d725c;
}

.dues-content,
.dues-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.countdown {
    display: flex;
    flex-direction: column;
    align-items: center;   /* 👈 centers the entire countdown */
    text-align: center;
}

.countdown h2 {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #5d725c;
    text-align: center;
}

.countdown ul {
    display: flex;
    gap: 3rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.countdown li {
    text-align: center;
}

.countdown span {
    font-size: 5rem;
    font-weight: 600;
    display: block;
}

.countdown small {
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 1rem;
    opacity: 0.7;
    color: #5d725c;
}

.countdown-footer {
    margin-top: 2.5rem;
    font-size: 2rem;
    text-align: center;
    font-style: italic;
}
.dues-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.dues-list li {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/* Pay Now Button */
.pay-now-btn {
    margin-top: 1.5rem;
    padding: 12px 28px;
    background-color: white;
    color: #5d725c;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.pay-now-btn:hover {
    background-color: #f0f0f0;
}

/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.6);

    justify-content: center;
    align-items: center;
}

/* Modal Box */
.modal-content {
    background: #ffffff;
    padding: 2.5rem;
    width: 600px;
    max-width: 90%;
    text-align: center;
    position: relative;
    border-radius: 8px;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 2rem;
    cursor: pointer;
}

/* QR Layout */
.qr-container {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
}

.qr-box {
    flex: 1;
}

.qr-box img {
    width: 100%;
    max-width: 150px;
}

.home-icon {
    position: fixed;
    bottom: 2rem;
    right: 2rem;

    width: 52px;
    height: 52px;

    background-color: #5d725c;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    text-decoration: none;

    font-size: 1.4rem;

    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 1000;

    transition: transform 0.2s ease, background-color 0.2s ease;
}

.home-icon:hover {
    background-color: #6f866e;
    transform: scale(1.1);
}

#familyTree {
    min-height: 100vh;
    background-color: #f4f4f2;

    display: flex;
    flex-direction: column;
}

/* Top banner */
.family-tree-banner {
    background-color: #5d725c;
    color: white;

    height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.family-tree-banner h2 {
    margin: 0;
    font-size: 2.8rem;
    letter-spacing: 0.05em;
}

/* Centered coming soon */
.family-tree-placeholder {
    flex: 1; /* takes remaining space */
    display: flex;
    align-items: center;
    justify-content: center;
}

.family-tree-placeholder p {
    font-size: 4.5rem;
    color: #5d725c;
    font-style: italic;
    letter-spacing: 0.1em;
}

.itinerary-section {
    min-height: 100vh;
    display: flex;
}

/* LEFT SIDE */
.itinerary-left {
    width: 70%;
    padding-left: 1rem;
    padding-right: 1.5rem; 
    background-color: #f4f4f2;

    display: flex;
    flex-direction: column;
    
}

.itinerary-title {
    font-size: 2.5rem;
    color: #5d725c;

    text-align: left;
    margin-bottom: 1rem;
}

/* Itinerary content */
.itinerary-day {
    padding-bottom: 1.5rem; /* optional: separates days slightly */
    border-bottom: 1px solid #ccc; /* optional: subtle divider line */
}

.itinerary-day:last-child {
    border-bottom: none; /* remove divider on last day */
}

.itinerary-day h3 {
    margin-bottom: 0.5rem;
}

.itinerary-day p {
    margin: 0.25rem 0;
    line-height: 1.6;
}

/* RIGHT SIDE */
.itinerary-right {
    width: 50%;
    background-color: #5d725c;
    color: white;

    padding: 2rem 2rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.itinerary-right h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.itinerary-content {
    color: #5d725c;
}

.itinerary-content p {
    color: black;
    font-size: 0.25rem;
}

.attractions-btn {
    background-color: #5d725c;
    color: white;

    border: 1px solid #cfd6cf;
    border-radius: 0;

    padding: 1.25rem 2.25rem;

    font-size: 1rem;
    letter-spacing: 0.05em;

    cursor: pointer;
    transition: background-color 0.2s ease;

    display: block;
    margin: 1.5rem auto 0;
}

/* Subtle professional hover */
.attractions-btn:hover {
    background-color: rgba(93, 114, 92, 0.85);
}


/* Hotel image */
.hotel-image {
    width: 80%;
    max-width: 400px;
    border-radius: 8px;  
}

/* Hotel text */
.hotel-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hotel-deadline {
    margin: 1.5rem 0;
}

/* Button */
.hotel-button {
    margin: 1.5rem;
    padding: 0.75rem 2rem;

    border: 1px solid #ffffff;
    color: white;
    text-decoration: none;

    letter-spacing: 0.05em;
    transition: background-color 0.2s ease;
}

.hotel-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.booking-alt {
    background: #E3EAE3;
    border-left: 4px solid #5d725c;
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
    border-radius: 0.75rem;
    font-family: inherit;
}

.booking-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #5d725c;
    margin-bottom: 0.25rem;
}

.booking-text {
    font-size: 0.95rem;
    color: #2f3b2f;
    margin-bottom: 0.75rem;
}

.booking-details {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #2f3b2f;
    margin-bottom: 0.75rem;
}

.booking-details span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.booking-group {
    font-size: 0.9rem;
    color: #2f3b2f;
}

.booking-group strong {
    color: #5d725c;
    font-weight: 600;
}

.booking-details a {
    color: #5d725c;
    font-weight: 500;
    text-decoration: none;
}

.booking-details a:hover {
    text-decoration: underline;
}

/* PHOTOS SECTION */
#photos {
    min-height: 100vh;
    background-color: #f4f4f2;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Title text only (no banner) */
.photos-title {
    margin-top: 4rem;
    margin-bottom: 6rem;

    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;

    color: #5d725c;
    text-align: center;
}

/* Year boxes container */
.photos-years {
    display: flex;
    gap: 5rem;
}

/* Individual year box */
.photo-year-box {
    width: 300px;
    height: 300px;

    background-color: #5d725c;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0.1em;

    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
/* Full Screen Desktop */
@media (min-width: 1400px) {
    .photo-year-box {
        width: 360px;
        height: 360px;
        font-size: 3.5rem;
    }
}

.photo-year-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Scholarship section layout */
.scholarship-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    background-color: #f4f4f2;
}

/* Left & right columns */
.scholarship-column {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scholarship-column h3 {
    font-size: 2rem;
    color: #5d725c;
    margin-bottom: 2rem;
}

/* Center Divider */
.scholarship-divider {
  background-color: #5d725c;
  color: white;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.scholarship-divider span {
  line-height: 3.5rem;
}

/* Forms */
.scholarship-section form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.scholarship-section label {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    color: #333;
}

.scholarship-section input,
.scholarship-section textarea,
.scholarship-section select {
    margin-top: 0.4rem;
    padding: 0.6rem;
    font-size: 1rem;
}

/* Radio group */
.radio-group {
    border: none;
    padding: 0;
}

.radio-group legend {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.radio-group label {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

/* Buttons */
.scholarship-section button {
    margin-top: 1rem;
    padding: 0.75rem;

    background-color: #5d725c;
    color: white;
    border: none;

    font-size: 1rem;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.scholarship-section button:hover {
    background-color: #6f866e;
}

/* =========================
   GENERAL RESET & BOX SIZING
========================= */
*, *::before, *::after {
    box-sizing: border-box;
}

/* =========================
   REGISTRATION WRAPPER
========================= */
#register {
    background-color: #f4f4f2;
    padding: 2rem 2rem;
}

#registration {
    max-width: 1000px;
    margin: auto;
    background: white;
    padding: 3rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* =========================
   REGISTRATION HEADER
========================= */
.registration-banner {
    text-align: center;
    margin-bottom: 2.5rem;
}

.registration-banner h2 {
    font-size: 3rem;
    letter-spacing: 0.15em;
    color: #5d725c;
    margin: 0;
}

/* =========================
   FIELDSETS & LEGENDS
========================= */
.fieldset {
    border: 2px solid #cfd6cf;
    padding: 2.5rem 2rem 2rem;
    margin-bottom: 3rem;
}

.fieldset legend {
    padding: 0 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #5d725c;
}

/* =========================
   FORM ROWS
========================= */
.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.form-row input,
.form-row select {
    width: 100%;
    min-width: 0;
}

.form-row .field {
    flex: 1;
}

/* Specific row layouts */
.form-row.name-row {
    grid-template-columns: 1fr 1fr 80px;
}

.form-row.dob-row {
    grid-template-columns: 1fr 1fr;
}

.form-row.name-row .suffix input {
    font-size: 0.75rem;
    padding: 0.4rem;
}

/* Phone and address rows */
.phone-row {
    grid-template-columns: 160px 1fr;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1rem;
}

.phone-row .phone-type {
    flex: 0 0 160px;
}

/* Phone input group: dropdown + input on one line */
.phone-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.4rem; /* matches other inputs */
}

/* Make dropdown smaller and elegant */
.phone-input-group select {
    flex: 0 0 100px;      /* fixed width for dropdown */
    padding: 0.55rem 0.6rem;
    font-size: 0.85rem;   /* smaller text than phone input */
    border: 1px solid #cfd6cf;
    border-radius: 4px;
    background-color: #5d725c; /* elegant green */
    color: white;              /* white text */
    appearance: none;           /* remove default arrow styling */
    text-align: center;
    text-align-last: center; 
}

/* Optional: add arrow indicator for dropdown */
.phone-input-group select::-ms-expand {
    display: none; /* IE/Edge fix */
}

/* Style phone input to match */
.phone-input-group input[type="tel"] {
    flex: 1;
    padding: 0.6rem 0.7rem;
    font-size: 1rem;
    border: 1px solid #cfd6cf;
    border-radius: 4px;
}

.email-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1rem;
}

.address-row {
    grid-template-columns: 2fr 2fr 1fr 1fr 1fr;
}

.address-line input {
    width: 100%;
    margin-bottom: 0.5rem;
}

.city-state-zip {
    display: flex;
    gap: 1rem;
}

.city-state-zip input,
.city-state-zip select {
    flex: 1;
}

/* =========================
   FIELDS & INPUTS
========================= */
.field {
    display: flex;
    flex-direction: column;
}

.field input,
.field select,
.field textarea {
    margin-top: 0.4rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid #cfd6cf;
    font-size: 1rem;
}

.field.suffix input {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
}

.suffix-input {
    max-width: 80px;
    font-size: 0.85rem;
}

/* =========================
   INFO TOOLTIP
========================= */
.label-with-help {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    font-weight: bold;
    line-height: 1;
    border-radius: 50%;
    background-color: #5d725c;
    color: white;
    cursor: pointer;
}

/* Tooltip bubble */
.tooltip-text {
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    background: #5d725c;
    color: white;
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    line-height: 1.3;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

/* Tooltip arrow */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #5d725c transparent transparent transparent;
}

/* Show tooltip on hover & keyboard focus */
.info-tooltip:hover .tooltip-text,
.info-tooltip:focus-within .tooltip-text {
    opacity: 1;
}

/* =========================
   INLINE OPTIONS & CHECKBOXES
========================= */
.inline-options {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.inline-options label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.preferred-method-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* ✅ centers everything horizontally */
    text-align: center;  /* ensures text inside p is centered */
    margin-bottom: 1.5rem; /* optional spacing */
}

.preferred-label {
    font-size: 1.2rem;        /* slightly bigger */
    color: #5d725c;           /* green */
    font-weight: 600;
    margin-bottom: 1rem;
}

.radio-options {
    display: flex;
    gap: 1.5rem;             /* space between each radio option group */
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.radio-options label {
    display: flex;
    align-items: center;
    gap: 0.25rem; /* tiny gap between circle and text */
    cursor: pointer;
    font-size: 1rem;
}

.radio-options input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #5d725c;
}

.checkbox-options {
    display: flex;
    gap: 1rem;             /* space between checkboxes */
    flex-wrap: wrap;        /* wraps if screen too small */
    align-items: center;
    justify-content: center;
}

.checkbox-options label {
    display: flex;
    align-items: center;
    gap: 0.25rem;           /* very close to checkbox */
    font-size: 1rem;
    cursor: pointer;
}

.checkbox-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #5d725c;  /* green when selected */
}

.inline-options label select,
.inline-options label input[type="text"] {
    flex: 1;
    min-width: 150px;
}

/* =========================
   EVENT REGISTRATION
========================= */
fieldset p {
  margin: 0 0 4px 0;
}

.event-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.checkbox-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group select {
  height: 42px;
  padding: 6px 10px;
  font-size: 0.95rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
}

.form-group select option[disabled] {
  color: #999;
}

.form-group select:focus {
  outline: none;
  border-color: #2e7d32; /* your green */
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.15);
}


.fieldset.event-info select[name="T-Shirt Size"] {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
}

.event-registration-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* =========================
   FAMILY MEMBERS
========================= */
fieldset.family-members {
    border: 2px solid #cfd6cf;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

button.add-family-member {
    border: 2px solid #5d725c;
    background-color: transparent;
    color: #5d725c;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    align-self: start;
    transition: all 0.3s ease;
}

button.add-family-member:hover {
    background-color: #5d725c;
    color: white;
}

/* ---------------------------
   Family Member Form Styling (No Fieldsets)
---------------------------- */
.addmember-form {
    background-color: #E3EAE3;
    padding: 15px;
    margin-bottom: 20px;
}

.member-header {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.member-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.member-row label {
    flex: 1;
    display: flex;
    flex-direction: column; /* label on top */
    font-weight: 500;
}

.input-row {
    display: flex;
    gap: 10px;
    margin-top: 5px; /* space between label text and inputs */
}

.input-row input,
.input-row select {
    flex: 1;
    padding: 8px;
    border: 1px solid #5d725c;
    background-color: white;
}

/* Make member rows responsive */
.addmember-form .member-row {
    display: flex;
    flex-wrap: wrap;       /* allow items to wrap on smaller screens */
    gap: 10px;
    width: 100%;           /* ensures the row fills the form container */
}

/* Make labels + inputs responsive */
.addmember-form .member-row label {
    flex: 1 1 200px;       /* flex-grow:1, flex-shrink:1, min-width:200px */
    display: flex;
    flex-direction: column; 
}

/* Make all inputs and selects consistent */
.addmember-form .member-row input,
.addmember-form .member-row select {
    height: 35px;       /* match your input height */
    padding: 8px 12px;  /* spacing inside */
    font-size: 16px;    /* optional, match your text inputs */
    border-radius: 4px; /* match your input style */
    border: 1px solid #ccc; /* or your green scheme */
    flex: 1;            /* fills row evenly */
    box-sizing: border-box;
    width: 100%;
}

.addmember-form .member-row select {
    height: 35px;
    padding: 8px 12px;
    padding-right: 36px; /* space for custom arrow */
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    flex: 1;
    box-sizing: border-box;
    appearance: none;  /* hides native arrow */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235d725c'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 16px 16px;
    background-color: white;
    color: #999; /* placeholder color */
    min-width: 0;
}

/* When the select has a valid value, switch color */
.addmember-form .member-row select:valid {
    color: #333; /* real input color */
}

.btn-remove {
    width: 100%;
    padding: 10px;
    border: 2px solid #5d725c;
    background-color: transparent;
    color: #5d725c;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;

    font-size: 0.9rem;
}

.btn-remove:hover {
    background-color: #5d725c;
    color: #E3EAE3;
}


/* =========================
   SUBMIT BUTTON
========================= */
#registration button[type="submit"] {
    display: block;
    margin: 2rem auto 0 auto;
    background-color: #5d725c;
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    font-size: 1.25rem;
    cursor: pointer;
}

#registration button[type="submit"]:hover {
    opacity: 0.9;
}

/* =========================
   REGISTRATION SUMMARY MODAL
========================= */
.summary-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;           /* hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.summary-content {
    background-color: white;
    padding: 2rem 3rem;
    max-width: 700px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    color: #5d725c;
    text-align: left;
    font-family: inherit;
}

.summary-content h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.summary-content .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #5d725c;
    cursor: pointer;
}

#summaryDetails {
    margin-bottom: 1.5rem;
}

.summary-item {
    border-bottom: 1px solid #cfd6cf;
    padding: 0.5rem 0;
}

.summary-item:last-child {
    border-bottom: none;
}

.total-dues {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: right;
    margin-top: 1rem;
}

#modalCloseBtn {
    display: block;
    margin: 2rem auto 0 auto;
    background-color: #5d725c;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 5px;
}

#modalCloseBtn:hover {
    background-color: #6f866e;
}