text/css apply.css ( ASCII text, with very long lines )

body {
    margin: 0;
    font-family: 'Libre Baskerville', serif;
    background-color: #f0f0f0;
    color: #333;
}

/* --- HEADER STYLE --- */
.page-header {
    background-color: #f4f3ef;
    text-align: center;
    padding: 40px 20px 20px 20px;
    border-bottom: none;
}

.logo {
    margin-bottom: 15px;
    line-height: 1;
}

.logo img {
    height: 55px;
    width: auto;
}

.page-header h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #333;
    margin: 0;
}

/* --- REFINED CONFIDENTIALITY NOTICE --- */
.confidentiality-notice {
    background-color: #f4f3ef;
    text-align: center;
    padding: 20px 30px;
    margin: 0 auto;
    border-bottom: 1px solid #e0e0e0;
}
.confidentiality-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    font-family: 'Libre Baskerville', serif;
}

.form-wrapper {
    max-width: 800px;
    margin: 40px auto 0 auto;
    background-color: #fff;
    border: 1px solid #e0e0e0;
}

.main-form-title {
    padding: 25px 20px;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Cormorant Garamond', serif;
    color: #8c7851;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    margin: 0;
    letter-spacing: 1px;
}

.form-content {
    padding: 30px 40px;
}

.section-title {
    text-align: left;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #4a5c43;
    margin-top: 40px;
    margin-bottom: 25px;
    border-bottom: 1px solid #d6d6d6;
    padding-bottom: 15px;
}

.form-content > .section-title:first-of-type {
    margin-top: 0;
}

.section-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: #2c3628;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}
.form-group label.required::before {
    content: '* ';
    color: #d9534f;
}

/* --- NEW FOOTNOTE STYLE --- */
.field-footnote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: #777;
    font-style: italic;
    margin-top: -5px;
    margin-bottom: 15px;
    line-height: 1.4;
    display: block;
}
.field-footnote sup {
    font-size: 0.7em;
    margin-right: 3px;
}

.optional-text {
    color: #999;
    font-weight: 400;
}

input[type="text"], input[type="tel"], input[type="email"], input[type="password"], select, textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    background-color: #ffffff;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #333;
}

/* Remove arrows/spinners from number inputs */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.date-input-wrapper {
    position: relative;
}

.date-input-wrapper input#dob.flatpickr-input {
    -webkit-appearance: none !important;
    appearance: none !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 45px;
    cursor: pointer;
}

.date-input-wrapper .calendar-icon {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 45px;
    cursor: pointer;
}

select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select:invalid {
    color: #888;
}

.checkbox-group { display: flex; align-items: center; gap: 10px; }
.checkbox-group input[type="checkbox"] { accent-color: #4a5c43; height: 1.2em; width: 1.2em; }
.checkbox-group label { margin: 0; }

.interests-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.interest-item { display: flex; align-items: center; gap: 10px; }
.interest-item input[type="checkbox"] { height: 1.2em; width: 1.2em; }

.hidden-section {
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    margin-top: 15px;
}
.phone-group { display: flex; gap: 10px; }
.phone-group .country-code-input { flex: 0 1 90px; }
.phone-group input[type="tel"] { flex: 1 1 auto; }

.navigation-buttons {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-button, .next-button {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
}

.back-button {
    background-color: transparent; color: #4a5c43; border: 1px solid #4a5c43;
}
.back-button:hover { background-color: #e0e0e0; }

.next-button {
    background-color: #4a5c43; color: #fff; border: 1px solid #4a5c43;
}
.next-button:disabled {
    background-color: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
}
#next-step-btn { margin-left: auto; }
.next-button:hover:not(:disabled) { background-color: #3a4a34; }

/* --- UNIFORM MEMBERSHIP RATE SECTION STYLES --- */
.membership-content {
    text-align: center;
}

.membership-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 400;
    color: #4a5c43;
    margin: 20px 0 10px 0;
    /* Align the smaller text properly */
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
}

/* Style for the USD suffix */
.membership-price span.currency-suffix {
    font-size: 0.45em; /* Reduced size relative to the 4rem parent */
    font-weight: 700;
    color: #5a6c53; /* Slightly lighter tone */
    letter-spacing: 1px;
}

.membership-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 35px;
}

.membership-details {
    color: #444;
    line-height: 1.7;
    font-size: 1rem;
    max-width: 550px;
    margin: 20px auto;
}

.financial-assistance-section {
    text-align: center;
    margin-top: 30px;
}

.financial-assistance-section .small-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
}

.assistance-checkbox-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding: 15px 25px;
    background-color: #f7f6f2;
    border-radius: 4px;
}

.assistance-checkbox-group input[type="checkbox"] {
    accent-color: #4a5c43;
    height: 1.3em;
    width: 1.3em;
    margin: 0;
}

.assistance-checkbox-group label {
    font-size: 1rem;
    color: #333;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

.disclaimer-group {
    max-width: 800px;
    margin: 30px auto 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}
.disclaimer-group input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    accent-color: #4a5c43;
    height: 1.2em;
    width: 1.2em;
}
.disclaimer-group label {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}
.disclaimer-group a {
    color: #4a5c43;
    text-decoration: underline;
}

.form-footer {
    text-align: center; padding: 20px; max-width: 800px; margin: 20px auto 40px auto;
}
.assistance { margin-top: 20px; font-weight: 700; }
.form-footer p { margin: 5px 0; font-size: 0.9rem; color: #666; }

.home-link {
    display: block;
    color: #8c7851;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.home-link:hover {
    text-decoration: underline;
}

.flatpickr-calendar { font-family: 'Libre Baskerville', serif; background: #ffffff; border: 1px solid #e0e0e0; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.flatpickr-months .flatpickr-month { color: #4a5c43; fill: #4a5c43; font-weight: 700; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { fill: #8c7851; }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: #4a5c43; }
.flatpickr-weekdays { background: #f7f6f2; }
span.flatpickr-weekday { color: #8c7851; font-weight: 700; }
.flatpickr-day { color: #333; border-color: transparent; }
.flatpickr-day:hover { background: #f0f0e0; }
.flatpickr-day.today { border-color: #8c7851; }
.flatpickr-day.today:hover { background: #8c7851; color: #fff; }
.flatpickr-day.selected { background: #4a5c43; color: #fff; border-color: #4a5c43; }
.numInputWrapper span:hover { background: #f0f0f0; }

#confirmation-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    box-sizing: border-box;
    background-color: #f4f3ef;
}

.confirmation-content {
    max-width: 600px;
}

.confirmation-content .logo img {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
}

.confirmation-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #333;
    margin-top: 20px;
}
.confirmation-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}
.confirmation-content .next-button {
    margin-top: 20px;
    display: inline-block;
}

/* --- MOBILE ADJUSTMENTS (Includes Gatekeeper Fix) --- */
@media (max-width: 768px) {
  .form-content {
    padding: 20px;
  }

  .navigation-buttons {
    padding: 20px;
  }

  .membership-price {
      font-size: 3rem;
  }

  /* Mobile Adjustments for Headers */
  .main-form-title, 
  .section-title, 
  .page-header h1 {
      font-size: 1.8rem !important;
  }

  /* GATEKEEPER MOBILE FIX */
  .gatekeeper-content {
      width: 90% !important; /* Ensure it doesn't touch edges */
      padding: 30px 20px !important; /* Smaller padding for mobile */
      margin: 0 auto; /* Explicit centering */
  }
}

/* --- NEW STYLES FOR PHONE LOGIN BUTTON --- */
#initiate-phone-login-btn {
    background-color: #8c7851 !important; /* Brand Gold */
    border-color: #8c7851 !important;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
}

#initiate-phone-login-btn:hover {
    background-color: #6e5d3c !important;
    border-color: #6e5d3c !important;
}

.btn-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* --- APPLICANT PORTAL CODE DISPLAY --- */
/* Added to support the new confirmation screen in apply.html */
.access-code-box {
    background-color: #ffffff;
    border: 2px dashed #8c7851;
    padding: 25px;
    margin: 30px auto;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.access-code-label {
    margin: 0;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #666;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

.access-code-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.5rem;
    margin: 10px 0;
    color: #333;
    font-weight: bold;
    letter-spacing: 3px;
}

.access-code-instruction {
    font-size: 0.9rem;
    margin: 0;
    color: #555;
    font-style: italic;
}

/* --- PASSCODE GATEKEEPER OVERLAY --- */
#gatekeeper-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f4f3ef; /* Matches page header background */
    z-index: 10000; /* Ensures it sits on top of everything */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box; /* Helps with mobile centering */
}

.gatekeeper-content {
    background-color: #f4f3ef; /* MATCH BACKGROUND */
    max-width: 600px;
    width: 100%;
    padding: 50px 40px;
    /* REMOVED SHADOW AND BORDER */
    border: none;
    box-shadow: none;
    text-align: center;
    box-sizing: border-box; /* CRITICAL FIX: Ensures padding is inside width */
}

.gatekeeper-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 25px;
}

.gatekeeper-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #4a5c43;
    margin-bottom: 15px;
    line-height: 1.2;
}

.gatekeeper-message {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px; /* Reduced to pull link closer */
}

/* NEW HOME LINK STYLE */
.gatekeeper-home-link {
    display: inline-block;
    margin-bottom: 40px;
    color: #8c7851;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.gatekeeper-home-link:hover {
    border-bottom: 1px solid #8c7851;
}

.gatekeeper-input-group {
    border-top: 1px solid #dcdcdc; /* Made slightly darker to be visible on beige */
    padding-top: 30px;
}

.gatekeeper-small-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
    font-style: italic;
}

.code-input-container {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

#access-code-input {
    flex: 1;
    text-align: center;
    letter-spacing: 2px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Libre Baskerville', serif;
    background-color: #fff; /* Keep input white so it's visible */
}

/* CODE DISAPPEARS ON FOCUS */
#access-code-input:focus::placeholder {
    color: transparent;
}

#verify-code-btn {
    padding: 12px 25px;
    background-color: #8c7851;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

#verify-code-btn:hover {
    background-color: #6e5d3c;
}

#code-error-msg {
    color: #d9534f;
    font-size: 0.9rem;
    margin-top: 15px;
    min-height: 1.2em;
    display: block;
    font-family: 'Libre Baskerville', serif;
}

/* --- MODAL / OVERLAY STYLES (Terms & Privacy) --- */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 40px;
    border: 1px solid #888;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover,
.modal-close:focus {
    color: #000;
    text-decoration: none;
}

.modal-body h2 {
    font-family: 'Cormorant Garamond', serif;
    color: #4a5c43;
    font-size: 2rem;
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-body h3 {
    font-family: 'Cormorant Garamond', serif;
    color: #2c3628;
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.modal-body p, .modal-body ul {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.modal-body ul {
    padding-left: 20px;
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: #aaa; 
}