:root {
    --color-bg: #f4f5f8;
    --color-surface: #ffffff;
    --color-accent: #E64545;
    --color-dark: #15161A;
    --color-muted: #6c6f77;
    --color-border: #e1e4ea;
    --color-border-strong: #d6dae3;

    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

}

@keyframes progressPulse {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.8;
    }
}

.progress-fill {
    background: var(--color-accent);
    height: 100%;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: progressPulse 2s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(230, 69, 69, 0.4);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Base layout */

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-family);
    background: var(--color-bg);
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.jd-app {
    width: min(1100px, 100%);
}

/* Card shell */

.app-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    height: clamp(650px, 85vh, 900px);
    /* Fixed height */
}

/* Header */

.app-card__header {
    background: var(--color-dark);
    color: #ffffff;
    padding: 32px 36px;
    z-index: 20;
    /* Static position is fine since container is fixed */
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.app-card__title {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    font-weight: 700;
}

.app-card__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
}

.brand-accent {
    color: var(--color-accent);
}

/* Progress bar */

.progress-container {
    margin-top: 20px;
    width: 100%;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
}

.progress-track {
    background: rgba(255, 255, 255, 0.15);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}



/* Card body */

/* Card body */

.app-card__body {
    padding: 32px 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    flex: 1;
    overflow: hidden;
    /* Prevent body scroll, force internal scroll */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Screens */

.screen {
    display: none;
    flex-direction: column;
    gap: 24px;
}

.screen--active {
    display: flex;
}

.screen-intro h2 {
    margin: 0 0 4px;
    font-size: 1.25rem;
}

.screen-intro p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* Action grid on start screen */

.action-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 8px;
}

/* Buttons */

.jd-button {
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 18px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.1;
}

.jd-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.jd-button--primary {
    background: var(--color-accent);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.jd-button--primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 34px rgba(230, 69, 69, 0.3);
}

.jd-button--secondary {
    background: #f8f8fb;
    color: var(--color-dark);
    border: 1px solid var(--color-border);
}

.jd-button--secondary:hover:not(:disabled) {
    background: #f1f2f6;
}

/* Gradient primary button */
.jd-button--primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #ff6b6b 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(230, 69, 69, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.jd-button--primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(230, 69, 69, 0.4);
    filter: brightness(1.1);
}

/* Start Card Buttons */
.start-card {
    flex-direction: column;
    padding: 20px 16px;
    /* Reduced padding */
    height: auto;
    min-height: 120px;
    /* Reduced height */
    gap: 12px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-align: center;
    border: 1px solid var(--color-border);
    background: #ffffff;
}

.start-card .btn-icon {
    font-size: 2rem;
    /* Smaller icon */
    margin-bottom: 2px;
    display: block;
}

.start-card .btn-text {
    font-size: 1rem;
    font-weight: 600;
}

.start-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(230, 69, 69, 0.3);
}

.start-card.jd-button--primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #ff6b6b 100%);
    border: none;
    color: white;
}

/* "New Chat" button */

#new-chat-btn {
    white-space: nowrap;
}

#back-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 75, 75, 0.4);
}

/* Links / back buttons */

.link-button {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--color-accent);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.link-button:hover {
    text-decoration: none;
    transform: translateY(-2px);
    text-shadow: 0 4px 12px rgba(239, 75, 75, 0.4);
}

/* Ingest (upload / paste) screen */

.screen-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.ingest-panels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field input[type="file"],
.form-field textarea {
    font-family: inherit;
    font-size: 0.95rem;
}

.form-field textarea {
    min-height: 180px;
    resize: vertical;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

.form-field textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px rgba(230, 69, 69, 0.2);
}

.ingest-feedback {
    font-size: 0.9rem;
    color: var(--color-accent);
}

.ingest-feedback.hidden {
    display: none;
}

/* Chat area */

.chat-screen {
    flex: 1;
    min-height: 420px;
}

.chat-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 420px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    /* Internal scroll */
    padding: 24px;
    border-radius: var(--radius-md);
    background: #fbfbfe;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid var(--color-border);
    scroll-behavior: smooth;
}

/* Messages */

.message {
    padding: 14px 20px;
    border-radius: 20px;
    border-bottom-left-radius: 4px;
    /* User default */
    max-width: 85%;
    line-height: 1.55;
    box-shadow: var(--shadow-soft);
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    word-break: break-word;
    background: #ffffff;
    border: none;
    font-size: 0.98rem;
    position: relative;
}

.message.user {
    background: var(--color-accent);
    color: #ffffff;
    margin-left: auto;
    border-radius: 20px;
    border-bottom-right-radius: 4px;
}

.message.bot {
    background: #ffffff;
    color: var(--color-dark);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    border-bottom-left-radius: 4px;
}

.message.has-choices {
    padding-bottom: 0;
}

/* ✅ animated typing dots on streaming messages */
.message.bot.streaming::after {
    content: '···';
    display: inline-block;
    margin-left: 6px;
    font-weight: 700;
    animation: blink 1s infinite;
    color: var(--color-accent);
}

/* optional extra strip row (hidden by default) */
.bot-thinking-strip {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--color-muted);
    padding: 0 4px 4px;
}

.bot-thinking-strip.hidden {
    display: none;
}

.bot-thinking-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: blink 1s infinite;
}

/* AI helper message */

.message.ai-helper {
    border-left: 4px solid var(--color-accent);
}

.ai-helper-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Suggestions */

.suggestions-wrapper {
    display: none;
    gap: 8px;
    padding: 0 4px 8px;
    overflow-x: auto;
    white-space: nowrap;
}

.suggestions-wrapper.visible {
    display: flex;
}

.suggestion-chip {
    background: #eef0f5;
    border: 1px dashed #b0b4be;
    color: #444;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-chip:hover {
    background: #ffffff;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Chat input */

.chat-input {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px 12px 10px 16px;
}

.chat-input input {
    flex: 1;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    padding: 8px 6px;
    background: transparent;
}

.chat-input input:focus {
    outline: none;
}

.chat-input {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.chat-input:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border-color: var(--color-accent);
}

/* Choice chips */

.choice-container {
    margin-top: 12px;
    padding: 12px 0 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.choice-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.choice-chip {
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 8px 16px;
    background: #f5f6fb;
    color: var(--color-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.9rem;
}

.choice-chip:hover:not(.disabled) {
    background: rgba(230, 69, 69, 0.1);
    border-color: rgba(230, 69, 69, 0.4);
}

.choice-chip.selected {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.choice-chip.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.choice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Generate bullets button under bot message */

.generate-bullets-btn {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 0;
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    font-size: 0.9rem;
}

.generate-bullets-btn:hover:not(:disabled) {
    background: #c83b3b;
    box-shadow: 0 8px 20px rgba(230, 69, 69, 0.35);
}

.generate-bullets-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Job preview */

.job-preview {
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-strong);
    background: #ffffff;
    padding: 18px 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.25s ease;
    font-size: 0.95rem;
}

.job-preview-header {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.job-preview-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.generate-btn {
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
}

.generate-btn:hover {
    box-shadow: 0 10px 28px rgba(230, 69, 69, 0.3);
}

/* Modals */

.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(21, 22, 26, 0.62);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}

.modal-backdrop.show {
    display: flex;
}

.modal-content,
.modal-content-desc {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 22px 22px;
    width: min(720px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 18px 50px rgba(21, 22, 26, 0.28);
    position: relative;
}

.modal-content h3,
.modal-content-desc h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--color-muted);
    border: none;
    background: transparent;
}

.close-btn:hover {
    color: var(--color-accent);
}

/* Description modal */

.desc-loading {
    display: none;
    align-items: center;
    gap: 16px;
    color: var(--color-muted);
    margin-bottom: 10px;
}

.desc-editor {
    width: 100%;
    min-height: 260px;
    border-radius: 12px;
    border: 1px solid var(--color-border-strong);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
    display: none;
}

.desc-editor:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px rgba(230, 69, 69, 0.2);
}

.desc-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.post-btn {
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
}

.post-success {
    display: none;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: #f8f8fb;
    border: 1px solid var(--color-border);
    margin-top: 16px;
}

.post-success .success-title {
    font-weight: 700;
    margin-top: 8px;
}

/* Loader */

.loader {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(230, 69, 69, 0.2);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader.small {
    width: 28px;
    height: 28px;
}

/* Utility */

.hidden {
    display: none !important;
}

/* Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */

@media (max-width: 768px) {
    body {
        padding: 20px 12px;
    }

    .app-card__header {
        padding: 24px 20px;
    }

    .app-card__body {
        padding: 20px 18px 24px;
    }

    .chat-messages {
        padding: 18px;
    }

    .message {
        max-width: 100%;
    }

    .modal-content,
    .modal-content-desc {
        padding: 16px 16px 18px;
    }
}

/* Salary toggle styles */
.salary-toggle-wrapper {
    border-radius: 999px;
    background: #fff5f2;
    padding: 8px 12px;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
}

.salary-toggle-tabs {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.salary-toggle-btn {
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
    cursor: pointer;
    background: transparent;
    transition: background 0.18s ease, color 0.18s ease;
}

.salary-toggle-btn.active {
    background: #ff6f61;
    color: #ffffff;
}

.salary-toggle-display {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Confirm / Edit block under review preview */
.confirm-block {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.confirm-block .jd-button {
    padding: 8px 14px;
    border-radius: 18px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    box-shadow: none;
}

.confirm-block .jd-button--primary,
.confirm-block .confirm-btn {
    background-color: #ef4b4b;
    color: #fff;
}

.confirm-block .jd-button--secondary,
.confirm-block .edit-btn {
    background-color: #f1f1f2;
    color: #1f2937;
}

/* ========================================
   Map Modal Styles
   ======================================== */

.map-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(21, 22, 26, 0.7);
    /* backdrop-filter: blur(4px); Removed for performance */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
    /* Visibility transition instead of display */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.map-modal-backdrop.open {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

.map-modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: min(900px, 100%);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(21, 22, 26, 0.35);
    overflow: hidden;
}

.map-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-dark);
}

.map-close-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--color-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.map-close-btn:hover {
    background: #f5f5f5;
    color: var(--color-accent);
}

.map-provider-selector {
    padding: 16px 24px;
    display: flex;
    gap: 12px;
    background: #f8f9fa;
    border-bottom: 1px solid var(--color-border);
}

.map-provider-btn {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--color-border);
    background: #ffffff;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--color-dark);
}

.map-provider-btn:hover {
    border-color: var(--color-accent);
    background: rgba(230, 69, 69, 0.05);
}

.map-provider-btn.active {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.map-provider-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f0f0f0;
}

.map-search-container {
    padding: 16px 24px;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--color-border);
}

.map-search-container input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
}

.map-search-container input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(230, 69, 69, 0.1);
}

.map-search-btn {
    padding: 12px 24px;
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.map-search-btn:hover {
    background: #c83b3b;
    box-shadow: 0 4px 12px rgba(230, 69, 69, 0.3);
}

.map-container {
    height: 450px;
    width: 100%;
    position: relative;
    background: #f0f0f0;
}

.map-status {
    padding: 12px 24px;
    background: #f8f9fa;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-muted);
    min-height: 48px;
    display: flex;
    align-items: center;
}

.map-status.has-address {
    color: var(--color-dark);
    font-weight: 500;
}

.map-modal-actions {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Leaflet marker popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
}

.leaflet-popup-content {
    margin: 12px;
    font-size: 0.9rem;
}

/* Responsive map modal */
@media (max-width: 768px) {
    .map-modal-content {
        max-height: 95vh;
    }

    .map-container {
        height: 350px;
    }

    .map-provider-selector {
        flex-direction: column;
    }

    .map-search-container {
        flex-direction: column;
    }

    .map-search-btn {
        width: 100%;
    }

    .map-modal-actions {
        flex-direction: column-reverse;
    }

    .map-modal-actions button {
        width: 100%;
    }
}

/* Skeleton Loader */
.skeleton-loader {
    width: 100%;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 14px;
    background: #e0e0e0;
    margin-bottom: 8px;
    border-radius: 4px;
    animation: skeleton-loading 1.5s infinite ease-in-out;
}

.skeleton-text:last-child {
    width: 80%;
}

@keyframes skeleton-loading {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.6;
    }
}

/* Rich Text Editor Overrides (Quill) */
.ql-container {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-color: var(--color-border-strong) !important;
    background: #ffffff;
    font-family: inherit !important;
    font-size: 0.95rem !important;
}

.ql-toolbar {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-color: var(--color-border-strong) !important;
    background: #f8f8fb;
}

.ql-editor {
    min-height: 200px;
}

/* Map Status Enhancement */
#map-status {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-dark);
    background: var(--color-bg);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    margin: 12px 0;
    line-height: 1.5;
    transition: all 0.3s ease;
}

#map-status.has-address {
    border-color: var(--color-accent);
    background: #fff5f5;
    /* Light accent tint */
    box-shadow: var(--shadow-soft);
}