/* =========================================================
   Create Directory — Step 1: Choose Listing Type
   ========================================================= */

.mcp-directory-wizard h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.mcp-directory-wizard h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.mcp-card-grid--listing-types {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .mcp-card-grid--listing-types {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .mcp-card-grid--listing-types {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mcp-card-grid--listing-types .mcp-card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 72px;
    height: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #1f3b5f;
    -webkit-text-fill-color: currentColor;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.mcp-card-grid--listing-types .mcp-card-button:hover {
    background: #fefefe;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mcp-card-grid--listing-types .mcp-card-button:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.mcp-card-grid--listing-types .mcp-card-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mcp-card-grid--listing-types .mcp-card-title {
    font-weight: 600;
    display: block;
    margin: 0;
    text-align: center;
}

.mcp-onboarding-wrapper {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
}

.mcp-onboarding-wrapper h2 {
    margin-top: 0;
    font-size: 24px;
    font-weight: 600;
}

/* Plan selection buttons */
.mcp-plan-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0 40px;
}

.mcp-btn-plan {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: opacity 0.2s;
}

.mcp-btn-plan:hover {
    opacity: 0.85;
}

/* City Selector Styles */
.mcp-city-selector-wrapper {
    margin: 30px 0;
}

.mcp-state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0 30px;
}

/* Homepage Selector Styles */
.mcp-home-selector {
    text-align: center;
    margin: 60px 0;
    padding: 40px 20px;
}

.mcp-home-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

.mcp-home-tagline {
    font-size: 18px;
    color: #666;
    margin: 0 0 40px 0;
    font-weight: 400;
}

.mcp-home-selector .mcp-state-grid {
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    justify-items: center;
}

.mcp-home-selector .mcp-state-btn {
    width: 100%;
    max-width: 200px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    background: #fff;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mcp-home-selector .mcp-state-btn:hover {
    background: #f8f8f8;
    border-color: #1e73be;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mcp-home-selector .mcp-state-btn.active {
    background: #1e73be;
    color: #fff;
    border-color: #1e73be;
    box-shadow: 0 4px 12px rgba(30, 115, 190, 0.3);
}

.mcp-state-btn {
    padding: 12px 16px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.mcp-state-btn:hover {
    background: #e8e8e8;
    border-color: #1e73be;
}

.mcp-state-btn.active {
    background: #1e73be;
    color: #fff;
    border-color: #1e73be;
}

/* City Selector Modal Styles */
.mcp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcp-modal.hidden {
    display: none;
}

.mcp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
}

.mcp-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mcp-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.mcp-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.mcp-modal-content h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    padding-right: 40px;
}

.mcp-city-search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.mcp-city-search-input:focus {
    outline: none;
    border-color: #1e73be;
}

.mcp-city-list {
    flex: 1;
    overflow-y: auto;
    max-height: calc(80vh - 180px);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.mcp-city-item {
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid #e8e8e8;
    transition: background 0.2s;
    font-size: 15px;
}

.mcp-city-item:hover {
    background: #f0f0f0;
}

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

.mcp-city-list-loading,
.mcp-city-list-error,
.mcp-city-list-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 15px;
}

.mcp-city-list-error {
    color: #d63638;
}

body.mcp-modal-open {
    overflow: hidden;
}

/* Address Selector Styles */
.mcp-address-selector {
    margin: 20px 0;
}

.mcp-address-input-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 15px;
}

.mcp-street-input,
.mcp-zip-input {
    width: 100%;
    max-width: 500px;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 12px;
}

.mcp-zip-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.mcp-zip-wrapper .mcp-zip-input {
    flex: 1;
    max-width: 150px;
    margin-bottom: 0;
}

.mcp-detect-btn {
    padding: 10px 20px;
    background: #1e73be;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.mcp-detect-btn:hover:not(:disabled) {
    background: #155a9e;
}

.mcp-detect-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.mcp-zip-error {
    margin-top: 8px;
    padding: 10px 12px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c33;
    font-size: 14px;
}

.mcp-zip-suggestion {
    margin-top: 8px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    font-size: 14px;
    color: #856404;
}

.mcp-zip-suggestion .mcp-suggestion-text {
    display: block;
    margin-bottom: 8px;
}

.mcp-use-suggested-zip {
    background: #ffc107;
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.mcp-use-suggested-zip:hover {
    background: #e0a800;
}

/* Address Confirmation Panel */
.mcp-address-confirmation {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #1e73be;
    border-radius: 8px;
}

.mcp-address-confirmation h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.mcp-addr-display {
    margin-bottom: 20px;
    padding: 16px;
    background: #fff;
    border-radius: 6px;
}

.mcp-addr-line1 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.mcp-addr-line2 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #666;
}

.mcp-addr-zone {
    margin: 0;
    font-size: 14px;
    color: #1e73be;
    font-weight: 500;
}

.mcp-addr-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mcp-confirm-address,
.mcp-change-zip {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mcp-confirm-address {
    background: #1e73be;
    color: #fff;
}

.mcp-confirm-address:hover {
    background: #155a9e;
}

.mcp-confirm-address.mcp-success {
    background: #28a745;
}

.mcp-confirm-address.mcp-success:hover {
    background: #218838;
}

/* Register form layout */
.mcp-register-form {
    max-width: 480px;
    margin: 0 auto 40px auto;
}

.mcp-register-field {
    display: block;
    width: 100%;
    margin-bottom: 16px;
}

.mcp-register-field label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 500;
    text-align: left;
}

.mcp-register-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.mcp-register-field input:focus {
    outline: none;
    border-color: #1e73be;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
}

.mcp-register-field label.mcp-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    cursor: pointer;
}

.mcp-register-field label.mcp-auth-remember input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    flex-shrink: 0;
}

.mcp-register-field label.mcp-auth-remember input[type="checkbox"]:focus {
    outline: 2px solid #1e73be;
    outline-offset: 2px;
    border: none;
    box-shadow: none;
}

.mcp-register-actions {
    margin-top: 24px;
    text-align: center;
}

/* Password toggle styles */
.mcp-password-wrapper {
    position: relative;
}

.mcp-password-wrapper input {
    padding-right: 40px;
}

.mcp-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.mcp-toggle-password:hover,
.mcp-toggle-password:focus {
    opacity: 1;
}

.mcp-toggle-password:focus-visible {
    outline: 2px solid #1e73be;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Auth wrapper styles - Unified for all onboarding pages */
.mcp-auth-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 0;
}

.mcp-auth-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.mcp-auth-title {
    margin-top: 0;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.mcp-auth-wrapper h1,
.mcp-auth-card h1 {
    margin-top: 0;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Register form title: smaller on mobile only (Login has no .mcp-auth-card, so unaffected) */
@media (max-width: 480px) {
    .mcp-auth-wrapper .mcp-auth-card h1 {
        font-size: 1.35rem;
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 360px) {
    .mcp-auth-wrapper .mcp-auth-card h1 {
        font-size: 1.25rem;
    }
}

.mcp-auth-card p {
    text-align: center;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.mcp-auth-card p:last-child {
    margin-bottom: 0;
}

.mcp-auth-errors {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    color: #c33;
}

.mcp-auth-errors p {
    margin: 0 0 8px 0;
}

.mcp-auth-errors p:last-child {
    margin-bottom: 0;
}

.mcp-auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.mcp-auth-switch a {
    color: #1e73be;
    text-decoration: none;
}

.mcp-auth-switch a:hover {
    text-decoration: underline;
}

/* Home City Success Message */
.mcp-home-city-success {
    text-align: center;
    padding: 40px 20px;
    background: #f0f9ff;
    border: 2px solid #1e73be;
    border-radius: 8px;
    margin-top: 30px;
}

.mcp-home-city-success h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 600;
    color: #1e73be;
}

.mcp-home-city-success p {
    font-size: 16px;
    color: #333;
    margin-bottom: 24px;
    line-height: 1.6;
}

.mcp-home-city-success p strong {
    color: #1e73be;
    font-weight: 600;
}

.mcp-home-city-success .mcp-btn--primary {
    display: inline-block;
    margin-top: 10px;
}

.mcp-change-zip {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.mcp-change-zip:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* Onboarding Next Button */
.mcp-onboarding-next {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.mcp-onboarding-next .mcp-btn--primary {
    width: 100%;
    max-width: 300px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mcp-zip-wrapper {
        flex-direction: column;
    }

    .mcp-zip-wrapper .mcp-zip-input {
        max-width: 100%;
    }

    .mcp-detect-btn {
        width: 100%;
    }

    .mcp-addr-actions {
        flex-direction: column;
    }

    .mcp-confirm-address,
    .mcp-change-zip {
        width: 100%;
    }
}

.mcp-city-search-global {
    margin: 20px 0;
    position: relative;
}

.mcp-city-search-global label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 15px;
}

.mcp-city-search-global input {
    width: 100%;
    max-width: 500px;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.mcp-city-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    max-width: 500px;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.mcp-search-result-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.mcp-search-result-item:hover {
    background: #f5f5f5;
}

.mcp-search-result-item:last-child {
    border-bottom: none;
}

.mcp-search-loading,
.mcp-search-no-results,
.mcp-search-error {
    padding: 10px 12px;
    color: #666;
    font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mcp-state-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .mcp-state-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Homepage selector mobile */
    .mcp-home-selector {
        margin: 40px 0;
        padding: 30px 15px;
    }

    .mcp-home-title {
        font-size: 28px;
    }

    .mcp-home-tagline {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .mcp-home-selector .mcp-state-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .mcp-home-selector .mcp-state-btn {
        max-width: none;
        padding: 14px 16px;
        font-size: 15px;
    }

    /* Modal mobile styles */
    .mcp-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 20px;
    }

    .mcp-modal-content h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .mcp-city-list {
        max-height: calc(100vh - 200px);
    }

    .mcp-city-item {
        padding: 16px;
        font-size: 16px;
    }
}

/* Tablet responsive for homepage */
@media (min-width: 769px) and (max-width: 1024px) {
    .mcp-home-selector .mcp-state-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mcp-btn-plan-primary {
    background: #1e73be;
    color: #fff;
}

.mcp-btn-plan-neutral {
    background: #333;
    color: #fff;
}

.mcp-plan-label {
    display: block;
    font-size: 16px;
}

.mcp-plan-subtext {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .mcp-plan-choices {
        flex-direction: column;
    }
    
    .mcp-btn-plan {
        width: 100%;
    }
}

/* Location policy notice */
.mcp-city-policy {
    font-size: 13px;
    color: #666;
    margin-top: 12px;
    line-height: 1.5;
}

.mcp-city-policy strong {
    color: #333;
}

/* Hide page title/header on login and join pages */
.page-template-default.page .page-title,
.page-template-default.page .breadcrumbs,
.page-template-default.page .entry-header,
.page-template-default.page .page-header,
body.page .page-title-wrapper,
body.page .fancy-title,
body.page .dt-fancy-title {
    display: none !important;
}

/* Ensure login/join forms start right below navigation */
body.page .main-content {
    padding-top: 20px;
}

/* Remove extra spacing that might be added by theme */
body.page .content-area {
    padding-top: 0;
}

/* Ensure consistent layout for auth pages */
body.page article.post {
    margin-top: 0;
}

/* Communication Preferences — onboarding shell (controls styled via dashboard.css) */
.mcp-comm-prefs-section {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    text-align: left;
}

.mcp-comm-prefs-heading {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.mcp-comm-prefs-intro {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.mcp-comm-prefs-errors {
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .mcp-comm-prefs-section {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
}

