   MAYFAIR ACCOUNT — PREMIUM
========================================================= */

#mayfair-account {
    width: 100%;
    margin: 0 auto;
    color: #29391B;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* =========================================================
   TOP BAR — back arrow + brand title (left), logged-in user (right)
========================================================= */

.mayfair-topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 5px 24px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mayfair-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mayfair-back-btn {
    flex-shrink: 0;
    width: auto;
    height: 36px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 0 16px;
    margin: 0;

    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 999px !important;

    background: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;

    cursor: pointer;

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

.mayfair-back-arrow {
    font-size: 16px;
    line-height: 1;
}

.mayfair-back-btn:hover {
    background: rgba(217, 168, 59, 0.25) !important;
    border-color: #D9A83B !important;
}

.mayfair-brand-logo {
    display: block;
    width: auto;
    width: 160px;
    height: 120px;
    object-fit: contain;
    object-position: left center;
}

.mayfair-user-info {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: right;
}

.mayfair-user-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.mayfair-user-name {
    display: block;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.mayfair-user-ref {
    display: block;
    color: #F0C879;
    font-family: "Courier New", monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
}


/* =========================================================
   MY PROFILE — sign-in box (not authenticated)
========================================================= */

.mayfair-profile-login-box {
    max-width: 480px;
}

.mayfair-profile-login-box h2 {
    margin-top: 6px;
}


/* =========================================================
   MY PROFILE — filled details form (authenticated)
========================================================= */

.mayfair-profile-form-wrap h2 {
    margin-top: 6px;
}

.mayfair-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
    margin: 22px 0;
    padding: 16px 18px;
    border: 1px solid var(--border, #e6e2d6);
    border-radius: 10px;
    background: var(--light, #faf8f2);
}

.mayfair-profile-meta > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mayfair-profile-meta span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #8a8f7c;
}

.mayfair-profile-meta strong {
    font-family: "Courier New", monospace;
    font-size: 15px;
    font-weight: 600;
    color: #3b4230;
}

.mayfair-profile-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
}


/* =========================================================
   MY PROFILE — READ-ONLY DETAILS
   Everything the applicant submitted, shown as labelled
   values (nothing here is an input, so nothing is editable).
========================================================= */

.mayfair-pf-section {
    margin: 26px 0 0;
    padding: 0;
}

.mayfair-pf-title {
    margin: 0 0 12px;
    padding: 0 0 10px;

    border-bottom: 1px solid var(--border, #e6e2d6);

    color: #B88A20;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mayfair-pf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;

    margin: 0;
    padding: 0;
}

.mayfair-pf-item {
    min-width: 0;
    margin: 0;
    padding: 12px 16px;

    border: 1px solid var(--border, #e6e2d6);
    border-radius: 10px;

    background: #fff;
}

.mayfair-pf-item-wide {
    grid-column: 1 / -1;
}

.mayfair-pf-item dt {
    margin: 0 0 4px;
    padding: 0;

    color: #8a8f7c;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mayfair-pf-item dd {
    margin: 0;
    padding: 0;

    color: #29391B;

    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;

    /* long addresses / emails / URLs must wrap, never overflow the card */
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mayfair-pf-item dd a {
    color: #B88A20;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mayfair-pf-item dd a:hover {
    color: #8a6614;
}

.mayfair-pf-sep {
    margin: 0 8px;
    color: #c9c3b0;
}

/* =========================================================
   TOP BAR SIGN OUT BUTTON
========================================================= */

.mayfair-signout-topbar {
    margin-left: auto;
    align-self: center;
    margin-right: 16px;

    padding: 9px 20px;

    border: 1px solid #D9A83B !important;
    border-radius: 8px !important;

    background: transparent !important;
    color: #F0C879 !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;

    white-space: nowrap;
    cursor: pointer;

    box-shadow: none !important;
    text-shadow: none !important;

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

/* Hover */
.mayfair-signout-topbar:hover,
.mayfair-signout-topbar:focus {
    background: #D9A83B !important;
    border-color: #D9A83B !important;
    color: #29391B !important;

    box-shadow: none !important;
    text-shadow: none !important;

    transform: translateY(-1px);
}

/* Click */
.mayfair-signout-topbar:active {
    background: #C39427 !important;
    border-color: #C39427 !important;
    color: #29391B !important;

    transform: translateY(0);
}

/* Disabled */
.mayfair-signout-topbar:disabled {
    opacity: 0.65 !important;
    cursor: default;
}

/* Mobile */
@media (max-width: 700px) {
    .mayfair-signout-topbar {
        margin: 10px 14px;
        width: calc(100% - 28px);
        text-align: center;
    }
}

/* =========================================================
   FORCE MAYFAIR SIGN OUT BUTTON THEME STYLING
   Overrides WordPress/theme button styles
========================================================= */

#mayfair-signout-profile.mayfair-signout-btn {
    background: #FFFFFF !important;
    color: #29391B !important;
    border: 1px solid #D9A83B !important;
    border-radius: 8px !important;

    padding: 0 24px !important;
    height: 46px !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;

    box-shadow: none !important;
    text-shadow: none !important;

    cursor: pointer !important;

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

#mayfair-signout-profile.mayfair-signout-btn:hover {
    background: #D9A83B !important;
    color: #29391B !important;
    border-color: #D9A83B !important;

    box-shadow: none !important;
    transform: translateY(-1px);
}

#mayfair-signout-profile.mayfair-signout-btn:active {
    background: #C39427 !important;
    color: #29391B !important;
    transform: translateY(0);
}

#mayfair-signout-profile.mayfair-signout-btn:focus,
#mayfair-signout-profile.mayfair-signout-btn:focus-visible {
    outline: 2px solid #D9A83B !important;
    outline-offset: 3px;
}

/* =========================================================
   GENDER PILLS — shared here since the profile form (this
   page) doesn't load form.php's inline <style>, which is
   where this was previously (and only) defined.
========================================================= */

.gender-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gender-pill {
    position: relative;
}

.gender-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gender-pill span {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 26px;
    border: 1px solid #C0C0C0;
    border-radius: 999px;
    color: #555;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.gender-pill input:hover + span {
    border-color: #cfc8bd;
}

.gender-pill input:checked + span {
    background: #4F5F4B !important;
    border-color: #4F5F4B !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(79, 95, 75, .15);
}


/* =========================================================
   ACCOUNT CARD — bottom-of-profile summary with sign out
   (applicant code / mobile style card + sign-out only)
========================================================= */

.mayfair-account-card {
    margin-top: 28px;
    padding: 20px 22px;
    border: 1px solid var(--border, #e6e2d6);
    border-radius: 10px;
    background: #fff;
}

.mayfair-account-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border, #e6e2d6);
}

.mayfair-account-card-row:first-of-type {
    padding-top: 4px;
}

.mayfair-account-card-row span {
    color: #8a8f7c;
    font-size: 13px;
}

.mayfair-account-card-row strong {
    color: #3b4230;
    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   TOP TABS — pure horizontal scroll strip, no logo
========================================================= */

.mayfair-tabs {
    display: flex;
    flex-direction: column;
    width: 100%;

    background: #4F5F4B;
    border-radius: 10px;
    overflow: hidden;
}

.mayfair-tabs-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.mayfair-tab {
    position: relative;
    padding: 17px 26px !important;

    border: none !important;
    border-radius: 0 !important;

    background: transparent !important;
    color: rgba(255, 255, 255, 0.85) !important;

    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.4px;

    cursor: pointer;
    white-space: nowrap;

    transition: color 0.25s ease, background 0.25s ease;
}


/* Hover */

.mayfair-tab:hover {
    background: rgba(217, 168, 59, 0.12) !important;
    color: #FFFFFF !important;
}


/* Active */

.mayfair-tab.active {
    background: #D9A83B !important;
    color: #29391B !important;
    font-weight: 700;
}


/* Gold line under active tab */

.mayfair-tab.active::after {
    content: "";

    position: absolute;

    left: 20px;
    right: 20px;
    bottom: -1px;

    height: 2.5px;
    border-radius: 2px;

    background: #29391B !important;
}


/* Disabled */

.mayfair-tab:disabled {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.45) !important;
    opacity: 1 !important;
    cursor: not-allowed;
}


/* Sign out — right-aligned in the top tab strip, styled as a pill
   so it reads as a distinct action rather than another page tab. */

.mayfair-signout-topbar {
    margin-left: auto;
    align-self: center;
    margin-right: 16px;
    padding: 9px 20px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mayfair-signout-topbar:hover {
    background: #c8523f;
    border-color: #c8523f;
    color: #fff;
}

.mayfair-signout-topbar:disabled {
    opacity: 0.65;
    cursor: default;
}

@media (max-width: 700px) {
    .mayfair-signout-topbar {
        margin: 10px 14px;
        width: calc(100% - 28px);
        text-align: center;
    }
}


/* =========================================================
   TAB CONTENT
========================================================= */

.mayfair-tab-content {
    display: none;
}

.mayfair-tab-content.active {
    display: block;
    animation: mayfairFadeIn 0.35s ease;
}

@keyframes mayfairFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* =========================================================
   MY ACCOUNT
========================================================= */

.mayfair-tab-content[data-content="account"] {
    padding-top: 30px;
}

/* =========================================================
   LOGGED-IN ACCOUNT DASHBOARD
========================================================= */

.mayfair-dashboard {
    width: 100%;
    max-width: 900px;
}

.mayfair-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 34px;
}

.mayfair-summary-card {
    min-height: 116px;
    box-sizing: border-box;
    padding: 22px 20px;
    border: 1px solid #dedbcf;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(41, 57, 27, .04);
}

.mayfair-summary-card span,
.mayfair-dashboard-heading > span,
.mayfair-eoi-eyebrow,
.mayfair-priority-panel span {
    display: block;
    color: #788068;
    font-family: "Courier New", monospace;
    font-size: 11px;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.mayfair-summary-card strong {
    display: block;
    margin-top: 12px;
    color: #2e3e21;
    font-family: "Courier New", monospace;
    font-size: 25px;
    font-weight: 500;
}

.mayfair-dashboard-heading { margin-bottom: 14px; }
.mayfair-dashboard-heading > span { margin-bottom: 8px; }
.mayfair-dashboard-heading p { margin: 0; color: #6d7564; font-size: 14px; }
.mayfair-application-list { display: grid; gap: 20px; }

.mayfair-eoi-card {
    padding: 26px 22px 22px;
    border: 1px solid #4b7e3e;
    border-radius: 7px;
    background: #fff;
}

.mayfair-eoi-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.mayfair-eoi-eyebrow { margin-bottom: 7px; color: #548346; }
.mayfair-eoi-card h2 { margin: 0 0 7px; color: #2e3e21; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.mayfair-eoi-card small { color: #77806b; font-family: "Courier New", monospace; font-size: 12px; }

.mayfair-eoi-status {
    flex-shrink: 0;
    padding: 6px 11px;
    border-radius: 3px;
    background: #e6f1e1;
    color: #3f7a37;
    font-family: "Courier New", monospace;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.mayfair-eoi-status.is-pending { background: #fbefd4; color: #8a6715; }

.mayfair-priority-panel {
    display: grid;
    grid-template-columns: minmax(170px, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 22px;
    margin: 24px 0 18px;
    padding: 20px 24px;
    border-radius: 4px;
    background: #2e3e21;
}
.mayfair-priority-panel span { color: #e5bd56; }
.mayfair-priority-panel strong { display: block; margin-top: 8px; color: #e6bd55; font-family: "Courier New", monospace; font-size: 38px; font-weight: 400; line-height: 1; }
.mayfair-priority-panel p { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.55; }

.mayfair-eoi-details { margin: 0; }
.mayfair-eoi-details > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid #eceade; }
.mayfair-eoi-details > div:last-child { border-bottom: 0; padding-bottom: 0; }
.mayfair-eoi-details dt { color: #77806b; font-size: 14px; }
.mayfair-eoi-details dd { margin: 0; color: #334027; font-family: "Courier New", monospace; font-size: 14px; font-weight: 700; text-align: right; }
.mayfair-dashboard-empty { padding: 24px; border: 1px dashed #cfcbbd; border-radius: 7px; color: #6d7564; background: #fff; }

/* "Apply for another plot" card at the bottom of My account —
   reuses .mayfair-application-box's look, just spaced below the
   applications list / empty state above it. */
.mayfair-application-box-secondary {
    margin-top: 28px;
}

.mayfair-eoi-resume-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid #e2b862;
    border-left: 4px solid #bf9022;
    border-radius: 6px;
    background: #fdf6e8;
    box-shadow: 0 2px 12px rgba(191, 144, 34, .14);
}
.mayfair-eoi-resume-copy { display: flex; flex-direction: column; gap: 5px; }
.mayfair-eoi-resume-kicker {
    display: inline-block;
    color: #9d7824;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.mayfair-eoi-resume-row p { margin: 0; color: #8a6715; font-size: 13.5px; line-height: 1.5; }
.mayfair-eoi-resume-btn {
    flex-shrink: 0;
    padding: 12px 22px;
    border: none;
    border-radius: 4px;
    background: #bf9022;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(191, 144, 34, .35);
    transition: background .15s ease, transform .15s ease;
}
.mayfair-eoi-resume-btn:hover { background: #a97e1c; transform: translateY(-1px); }
.mayfair-eoi-resume-btn:disabled { opacity: .65; cursor: default; transform: none; }

@media (max-width: 640px) {
    .mayfair-eoi-resume-row { flex-direction: column; align-items: stretch; text-align: left; }
    .mayfair-eoi-resume-btn { width: 100%; }
}

.mayfair-eoi-cancel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px dashed #c98f8f;
    border-radius: 6px;
    background: #fbf1f1;
}
.mayfair-eoi-cancel-row p { margin: 0; color: #8a3f3f; font-size: 13.5px; line-height: 1.5; }
.mayfair-eoi-cancel-btn {
    flex-shrink: 0;
    padding: 11px 20px;
    border: 1px solid #a33d3d;
    border-radius: 4px;
    background: #fff;
    color: #a33d3d;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.mayfair-eoi-cancel-btn:hover { background: #a33d3d; color: #fff; }
.mayfair-eoi-cancel-btn:disabled { opacity: .65; cursor: default; }

@media (max-width: 640px) {
    .mayfair-eoi-cancel-row { flex-direction: column; align-items: stretch; text-align: left; }
    .mayfair-eoi-cancel-btn { width: 100%; }
}

/* Shown instead of the "Cancel your EOI" button once a cancellation &
   refund request has already been filed for that application — swaps
   the actionable red state for a calmer amber "in progress" notice. */
.mayfair-eoi-cancel-row-processing {
    border: 1px solid #e2b862;
    border-left: 4px solid #bf9022;
    background: #fdf6e8;
    justify-content: flex-start;
}
.mayfair-eoi-cancel-row-processing p { color: #8a6715; }
.mayfair-eoi-cancel-row-processing p strong { color: #6d5116; }

/* Admin marked the cancellation request "Approved" — solid red notice,
   no button, nothing left to click on this application. */
.mayfair-eoi-cancel-row-approved {
    justify-content: flex-start;
    border: 1px solid #a33d3d;
    background: #a33d3d;
}
.mayfair-eoi-cancel-row-approved p,
.mayfair-eoi-cancel-row-approved p strong { color: #fff; }

/* Admin marked the cancellation request "Rejected" — same solid red
   treatment as "approved", but explains the applicant can try again. */
.mayfair-eoi-cancel-row-rejected {
    justify-content: flex-start;
    border: 1px solid #a33d3d;
    background: #a33d3d;
}
.mayfair-eoi-cancel-row-rejected p,
.mayfair-eoi-cancel-row-rejected p strong { color: #fff; }

/* Admin marked the cancellation request "Refunded" — the full
   application card collapses to this short summary row instead. */
.mayfair-eoi-card-refunded {
    padding: 16px 20px;
}
.mayfair-eoi-refunded-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.mayfair-eoi-status-refunded {
    background: #e7e2d6;
    color: #5c5646;
}

@media (max-width: 640px) {
    .mayfair-eoi-refunded-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}


/* =========================================================
   APPLY NOW CARD
========================================================= */

.mayfair-application-box {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;

    padding: 42px 38px;

    background: linear-gradient(155deg, #FFFFFF 0%, #FBF9F2 100%) !important;

    border: 1px solid #E7E2CE !important;
    border-radius: 10px;

    box-shadow:
        0 1px 2px rgba(41, 57, 27, 0.04),
        0 12px 30px rgba(41, 57, 27, 0.08) !important;
}

/* Thin gold edge accent, top-left */
.mayfair-application-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #D9A83B, #B88A20);
}


/* Small heading */

.mayfair-application-box .mayfair-label {
    display: inline-block;
    margin-bottom: 12px;

    color: #B88A20 !important;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2.5px;
    text-transform: uppercase;
}


/* Main heading */

.mayfair-application-box h2 {
    margin: 0 0 16px;

    color: #22301A !important;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
}


/* Description */

.mayfair-application-box p {
    max-width: 900px;

    margin: 0 0 30px;

    color: #6B715F !important;

    font-size: 15.5px;
    line-height: 1.75;
}


/* =========================================================
   APPLY NOW BUTTON
========================================================= */

.mayfair-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: auto;
    min-width: 220px;
    min-height: 54px;

    padding: 14px 32px;

    border: none !important;
    border-radius: 5px !important;

    background: linear-gradient(155deg, #C99A2D, #B07C1B) !important;
    color: #FFFFFF !important;

    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.3px;

    cursor: pointer;

    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 8px 18px rgba(184, 138, 32, 0.35);

    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}


/* Hover */

.mayfair-apply-btn:hover {
    background: linear-gradient(155deg, #D9A83B, #9F7618) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 12px 24px rgba(184, 138, 32, 0.45);
}

.mayfair-apply-btn:active {
    transform: translateY(0);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 6px 14px rgba(184, 138, 32, 0.35);
}


/* =========================================================
   MY PROFILE
========================================================= */

.mayfair-tab-content[data-content="profile"] {
    padding-top: 30px;
}


/* =========================================================
   SUPPORT
========================================================= */

.mayfair-tab-content[data-content="support"] {
    padding-top: 30px;
}

.mayfair-support-label {
    display: inline-block;
    margin-bottom: 14px;

    color: #B88A20 !important;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.mayfair-support-heading {
    margin: 0 0 14px;

    color: #22301A !important;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
}

.mayfair-support-desc {
    max-width: 720px;

    margin: 0 0 28px;

    color: #6B715F !important;

    font-size: 15.5px;
    line-height: 1.75;
}

/* Cards */

.mayfair-support-info-card,
.mayfair-support-form-card {
    position: relative;
    width: 100%;
    max-width: 820px;
    box-sizing: border-box;

    padding: 30px 34px;
    margin-bottom: 24px;

    background: linear-gradient(155deg, #FFFFFF 0%, #FBF9F2 100%) !important;

    border: 1px solid #E7E2CE !important;
    border-radius: 10px;

    box-shadow:
        0 1px 2px rgba(41, 57, 27, 0.04),
        0 12px 30px rgba(41, 57, 27, 0.08) !important;
}

.mayfair-support-info-card .mayfair-label,
.mayfair-support-form-card .mayfair-label {
    display: block;
    margin-bottom: 10px;

    color: #B88A20 !important;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.mayfair-support-info-card h3 {
    margin: 0 0 14px;

    color: #22301A !important;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 22px;
    font-weight: 500;
}

.mayfair-support-info-card p {
    margin: 0 0 6px;

    color: #6B715F !important;

    font-size: 14.5px;
    line-height: 1.6;
}

/* Form layout */

.mayfair-support-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mayfair-support-field {
    margin-bottom: 20px;
}

.mayfair-support-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;

    color: #22301A !important;

    font-size: 14px;
    font-weight: 600;
}

.mayfair-support-field label .required {
    margin-left: 2px;
    color: #B3261E !important;
}

.mayfair-support-field .mayfair-optional {
    color: #9A9587 !important;

    font-size: 12.5px;
    font-weight: 400;
    text-transform: lowercase;
}

.mayfair-support-field input[type="text"],
.mayfair-support-field input[type="tel"],
.mayfair-support-field input[type="email"],
.mayfair-support-field input[type="number"],
.mayfair-support-field input[type="file"],
.mayfair-support-field select,
.mayfair-support-field textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 12px 14px;

    border: 1px solid #DCD6C4 !important;
    border-radius: 6px;

    background: #FFFFFF !important;
    color: #29391B !important;

    font-size: 14.5px;
    font-family: inherit;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mayfair-support-field textarea {
    min-height: 110px;
    resize: vertical;
}

.mayfair-support-field input:focus,
.mayfair-support-field select:focus,
.mayfair-support-field textarea:focus {
    outline: none;
    border-color: #D9A83B !important;
    box-shadow: 0 0 0 3px rgba(217, 168, 59, 0.18);
}

.mayfair-support-field input[type="file"] {
    padding: 9px 14px;
    cursor: pointer;
}

/* Declaration checkbox row (Cancellation & refund form) */

.mayfair-declaration-field {
    background: #FAF8F1;
    border: 1px solid #DCD6C4;
    border-radius: 6px;
    padding: 14px 16px;
}

.mayfair-declaration-field label {
    display: flex !important;
    align-items: flex-start !important;
}

.mayfair-declaration-field input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #D9A83B;
    cursor: pointer;
}

.mayfair-declaration-field span {
    font-size: 13.5px;
    line-height: 1.5;
    color: #4A4636 !important;
}

.mayfair-support-submit-btn {
    width: 100%;
    margin-top: 6px;
}

.mayfair-support-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Alert */

.mayfair-support-alert {
    margin-bottom: 20px;
    padding: 12px 16px;

    border-radius: 6px;

    font-size: 14px;
}

.mayfair-support-alert.success {
    background: #EAF4E7 !important;
    border: 1px solid #B6D8AC !important;
    color: #2E5A22 !important;
}

.mayfair-support-alert.error {
    background: #FBEAEA !important;
    border: 1px solid #EFB6B6 !important;
    color: #8A2A2A !important;
}


/* =========================================================
   SHARED LABEL / HEADING / DESC STYLES
   (used by the Cancellation & refund section, and by My profile)
========================================================= */

.mayfair-bank-label {
    display: inline-block;
    margin-bottom: 14px;

    color: #B88A20 !important;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.mayfair-bank-heading {
    margin: 0 0 14px;

    color: #22301A !important;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
}

.mayfair-bank-desc {
    max-width: 720px;

    margin: 0 0 24px;

    color: #6B715F !important;

    font-size: 15.5px;
    line-height: 1.75;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    /* Never let content escape the viewport horizontally */
    html {
        overflow-x: hidden;
    }

    #mayfair-account {
        max-width: 100% !important;
        overflow-x: hidden;
    }

    /* Reset the desktop-only offset so tab panels sit flush, full-width,
       and centered with a sensible max width on phones. */
    .mayfair-tab-content.active {
        margin-top: 0 !important;
        width: 100% !important;
        max-width: 560px;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box;
    }

    .mayfair-tab-content {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 40px;
        box-sizing: border-box;
    }

    .mayfair-topbar-row {
        padding: 14px 16px;
    }

    .mayfair-back-btn {
        height: 32px;
        padding: 0 12px;
        gap: 6px;
        font-size: 13px;
    }

    .mayfair-back-arrow {
        font-size: 14px;
    }

    .mayfair-brand-logo {
        max-width: 170px;
        height: 44px;
    }

    .mayfair-user-name {
        font-size: 14px;
    }

    .mayfair-user-info {
        gap: 8px;
    }

    .mayfair-user-ref {
        font-size: 12px;
    }

    /* Tabs now sit statically — no horizontal scrolling. */
    .mayfair-tabs-row {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .mayfair-tab {
        padding: 14px 18px !important;
        font-size: 13px;
    }

    .mayfair-tab.active::after {
        left: 14px;
        right: 14px;
    }

    .mayfair-tab-content[data-content="account"],
    .mayfair-tab-content[data-content="apply"],
    .mayfair-tab-content[data-content="apply-another"],
    .mayfair-tab-content[data-content="profile"],
    .mayfair-tab-content[data-content="support"] {
        padding-top: 22px;
    }

    .mayfair-profile-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 12px;
    }

    .mayfair-profile-actions button {
        width: 100%;
    }

    .mayfair-application-box {
        width: 100%;
        padding: 28px 20px;
    }

    .mayfair-dashboard-summary {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 26px;
    }

    .mayfair-summary-card {
        min-height: 0;
        padding: 17px 16px;
    }

    .mayfair-summary-card strong { font-size: 22px; }
    .mayfair-eoi-card { padding: 20px 16px; }
    .mayfair-eoi-card h2 { font-size: 21px; }
    .mayfair-priority-panel { grid-template-columns: 1fr; gap: 16px; padding: 18px; margin-top: 20px; }
    .mayfair-priority-panel strong { font-size: 33px; }
    .mayfair-eoi-details > div { flex-direction: column; gap: 5px; }
    .mayfair-eoi-details dd { text-align: left; }

    .mayfair-application-box::before {
        width: 4px;
    }

    .mayfair-application-box h2 {
        font-size: 22px;
    }

    .mayfair-application-box p {
        font-size: 14px;
        max-width: 100%;
    }

    .mayfair-apply-btn {
        width: 100%;
        min-height: 52px;
    }

    .mayfair-support-heading,
    .mayfair-bank-heading {
        font-size: 22px;
    }

    .mayfair-support-desc,
    .mayfair-bank-desc {
        font-size: 14px;
        max-width: 100%;
    }

    .mayfair-support-info-card,
    .mayfair-support-form-card,
    .mayfair-bank-card,
    .mayfair-bank-notice,
    .mayfair-bank-notes-card {
        width: 100%;
        max-width: 100%;
        padding: 20px 16px;
        box-sizing: border-box;
    }

    .mayfair-support-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mayfair-support-field {
        margin-bottom: 16px;
    }

    /* 44-48px is the recommended minimum touch target on phones */
    .mayfair-support-field input,
    .mayfair-support-field select,
    .mayfair-support-field textarea {
        min-height: 46px;
        font-size: 16px; /* prevents iOS auto-zoom on focus */
    }

    .mayfair-bank-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .mayfair-bank-row strong {
        text-align: left;
    }

    .mayfair-declaration-field span {
        font-size: 13px;
    }
}

@media (max-width: 400px) {

    .mayfair-tab-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .mayfair-application-box,
    .mayfair-support-info-card,
    .mayfair-support-form-card,
    .mayfair-bank-card,
    .mayfair-bank-notice,
    .mayfair-bank-notes-card {
        padding: 18px 14px;
    }

    .mayfair-application-box h2,
    .mayfair-support-heading,
    .mayfair-bank-heading {
        font-size: 20px;
    }
}


/* =========================================================
   TEST OTP MODE NOTE
   (Mayfair EOI -> Settings -> "Enable test OTP mode")
========================================================= */

.mayfair-test-otp-note {
    margin-top: 10px;
    padding: 10px 14px;
    border: 1px dashed #d8a545;
    border-radius: 4px;
    background: #fdf6e8;
    color: #6b5a3a;
    font-size: 13px;
    line-height: 1.5;
}

/* =========================================================
   PAYMENT PENDING BAR — fixed line at the top of My account
   (shown while a "Pay at Office" payment has not been collected)
========================================================= */

.mayfair-pay-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    box-sizing: border-box;
    background: #fdf1d6;
    border-bottom: 2px solid #d8a545;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    color: #6b4f0f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.mayfair-pay-bar p {
    margin: 0;
}

.mayfair-pay-bar strong {
    color: #5a4108;
}

.mayfair-pay-bar-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d8a545;
    box-shadow: 0 0 0 0 rgba(216, 165, 69, .6);
    animation: mayfairPayBarPulse 1.8s infinite;
}

@keyframes mayfairPayBarPulse {
    70%  { box-shadow: 0 0 0 8px rgba(216, 165, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(216, 165, 69, 0); }
}

/* Sit below the WordPress admin bar when an admin is logged in. */
body.admin-bar .mayfair-pay-bar { top: 32px; }

@media (max-width: 782px) {
    body.admin-bar .mayfair-pay-bar { top: 46px; }
}

@media (max-width: 640px) {
    .mayfair-pay-bar {
        padding: 9px 14px;
        font-size: 13px;
        text-align: left;
        align-items: flex-start;
    }
    .mayfair-pay-bar-dot { margin-top: 5px; }
}

/* Fallback before the script measures the bar's real height. */
#mayfair-account.has-pay-bar { padding-top: 48px; }

@media (prefers-reduced-motion: reduce) {
    .mayfair-pay-bar-dot { animation: none; }
}


/* =========================================================
   MY PROFILE — READ-ONLY DETAILS (phones)
========================================================= */

@media (max-width: 640px) {

    .mayfair-pf-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .mayfair-pf-item-wide {
        grid-column: auto;
    }

    .mayfair-pf-item {
        padding: 11px 14px;
    }

    .mayfair-profile-meta {
        gap: 14px 24px;
    }
}


/* ==========================================================================
   REJECTED / CANCELLED APPLICATION (admin set the status)
   - whole card turns light red
   - status badge turns dark red, solid + highlighted
   - "Cancel your EOI" area is replaced by a "Contact us" notice
   ========================================================================== */
.mayfair-eoi-card-closed {
    border-color: #d9a3a3;
    background: #fdeeee;
    box-shadow: 0 2px 14px rgba(163, 61, 61, .10);
}
.mayfair-eoi-card-closed .mayfair-eoi-details > div { border-bottom-color: #f0d2d2; }
.mayfair-eoi-card-closed .mayfair-eoi-eyebrow { color: #a33d3d; }
.mayfair-eoi-card-closed h2 { color: #5e1f1f; }

.mayfair-eoi-status.is-closed {
    background: #9b1c1c;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(155, 28, 28, .40);
}

.mayfair-eoi-closed-row {
    border: 1px solid #d9a3a3;
    border-left: 4px solid #9b1c1c;
    background: #fbe0e0;
}
.mayfair-eoi-closed-row p,
.mayfair-eoi-closed-row p strong { color: #7a1f1f; }
.mayfair-eoi-closed-row p strong { display: block; margin-bottom: 2px; }

.mayfair-eoi-contact-btn {
    flex-shrink: 0;
    padding: 11px 22px;
    border: none;
    border-radius: 4px;
    background: #9b1c1c;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(155, 28, 28, .35);
    transition: background .15s ease, transform .15s ease;
}
.mayfair-eoi-contact-btn:hover { background: #7f1616; transform: translateY(-1px); }

@media (max-width: 640px) {
    .mayfair-eoi-contact-btn { width: 100%; }
}
