/* ===============================
   Klustarief Brand Variables
=================================*/
:root {
    --kt-blue: #054099;          /* Your Main Blue */
    --kt-blue-mid: #1c2c52;      /* Your Dark Navy */
    --kt-teal: #054099;          /* Unified to Main Blue */
    --kt-orange: #ff7a3c;        /* Accent orange */
    --kt-gray-soft: #f8fafc;
    --kt-gray-bg: #f1f5f9;
    --kt-border: #d3e0ea;
    --kt-text: #1c2c52;          /* Text matches Dark Navy */
    --kt-muted: #64748b;
    --kt-success: #10b981;
    --kt-shadow-soft: 0 18px 45px rgba(28, 44, 82, 0.18);
    --kt-radius: 5px;

    /* Font */
    --kt-font: "Poppins", ui-sans-serif, system-ui, sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
               "Noto Color Emoji";
}

/* ===============================
   1. OVERLAY & MODAL
=================================*/
.painter-request-form-wrapper {
    font-family: var(--kt-font) !important;
    color: var(--kt-text);
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Force Poppins on inner elements */
.painter-request-form-wrapper h1,
.painter-request-form-wrapper h2,
.painter-request-form-wrapper h3,
.painter-request-form-wrapper h4,
.painter-request-form-wrapper h5,
.painter-request-form-wrapper h6,
.painter-request-form-wrapper p,
.painter-request-form-wrapper label,
.painter-request-form-wrapper .step-title,
.painter-request-form-wrapper .step-desc,
.painter-request-form-wrapper .card-label,
.painter-request-form-wrapper .related-name,
.painter-request-form-wrapper .related-location,
.painter-request-form-wrapper .related-distance,
.painter-request-form-wrapper .related-service-pill,
.painter-request-form-wrapper .pro-desc,
.painter-request-form-wrapper .pro-tag,
.painter-request-form-wrapper .meta-item,
.painter-request-form-wrapper .checkbox-label,
.painter-request-form-wrapper .btn-prev,
.painter-request-form-wrapper .btn-next,
.painter-request-form-wrapper .btn-submit,
.painter-request-form-wrapper .btn-home,
.painter-request-form-wrapper input,
.painter-request-form-wrapper textarea,
.painter-request-form-wrapper select {
    font-family: var(--kt-font) !important;
}

.painter-wizard-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top left,
        rgba(255, 122, 60, 0.15),
        rgba(5, 64, 153, 0.85)
    );
    backdrop-filter: blur(9px);
    z-index: 999999;
    display: none; /* Toggled via JS */
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.painter-wizard-modal-overlay.is-open {
    display: flex !important;
    opacity: 1;
}

/* THE FIXED SIZE MODAL CARD */
.painter-wizard-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: var(--kt-radius);
    box-shadow: var(--kt-shadow-soft);
    width: 100%;
    max-width: 860px;
    
    /* Fixed Height Logic */
    height: 90vh; /* Fixed at 90% of viewport height */
    max-height: 800px; /* Cap it so it doesn't get too huge */
    min-height: 500px; /* Ensure it's never too small */
    
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Hide anything spilling out */
}

/* Gradient top border */
.painter-wizard-modal-content::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg,
        var(--kt-blue),
        var(--kt-blue-mid),
        var(--kt-orange)
    );
    z-index: 2;
}

/* ===============================
   2. LAYOUT STRUCTURE (Flexbox)
=================================*/

/* 1. Hero Section (Fixed at top, no scroll) */
.selected-pro-hero-container {
    background: #ffffff;
    padding: 64px 26px 14px; /* Top padding space for close button */
    border-bottom: 1px solid var(--kt-border);
    flex-shrink: 0; /* Prevents shrinking */
    position: relative;
    z-index: 3;
}

/* 2. The Form Element (Fills remaining space) */
.painter-request-main-form {
    display: flex;
    flex-direction: column;
    flex: 1; /* Take up all remaining space */
    min-height: 0; /* Critical for nested flex scrolling */
    overflow: hidden;
}

/* 3. SCROLLABLE CONTENT AREA */
.wizardPage_main-content-area-wrapper {
    flex: 1; /* Grow to fill space between header and footer */
    overflow-y: auto; /* Enable Vertical Scrollbar here only */
    padding: 26px 32px 24px;
    background: radial-gradient(circle at top right,
        rgba(5, 64, 153, 0.06),
        transparent 55%
    );
    
    /* Custom Scrollbar Styling */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.wizardPage_main-content-area-wrapper::-webkit-scrollbar {
    width: 6px;
}
.wizardPage_main-content-area-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.wizardPage_main-content-area-wrapper::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 999px;
}

/* 4. FIXED FOOTER (Stays at bottom) */
.wizard-footer {
    background: #ffffff;
    border-top: 1px solid var(--kt-border);
    padding: 16px 32px 18px;
    flex-shrink: 0; /* Do not shrink */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 10;
    position: relative;
}

/* ===============================
   3. CLOSE BUTTON & HERO CARD STYLES
=================================*/

/* Close button */
.painter-wizard-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none !important;
    outline: none !important;
    background: rgba(28, 44, 82, 0.05) !important;
    color: var(--kt-blue) !important;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4);
    transition: all 0.18s ease;
}
.painter-wizard-modal-close:hover {
    background: var(--kt-blue) !important;
    color: #ffffff !important;
    transform: translateY(-1px) scale(1.03);
}

/* Hero Card */
.selected-pro-card {
    position: relative;
    display: flex;
    align-items: stretch;
    border-radius: var(--kt-radius);
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: radial-gradient(circle at top left, rgba(5, 64, 153, 0.06), #ffffff 60%);
    overflow: hidden;
}

/* Badge */
.pro-card-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(130deg, var(--kt-blue), var(--kt-blue-mid));
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px 7px;
    border-bottom-left-radius: var(--kt-radius);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Avatar Column */
.pro-card-image-col {
    width: 132px;
    background: linear-gradient(180deg, rgba(5, 64, 153, 0.1), rgba(28, 44, 82, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px;
}
.pro-avatar-large img, .pro-avatar-large .initials-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 16px 35px rgba(28, 44, 82, 0.28);
    object-fit: cover;
}

/* Info Column */
.pro-card-info-col {
    flex: 1;
    padding: 18px 22px 16px;
}
.pro-info-large h3 {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 800;
    color: var(--kt-blue);
}

.pro-meta-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.meta-item {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--kt-muted);
    background: rgba(148, 163, 184, 0.08); padding: 5px 10px; border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
}
.meta-item i { font-size: 12px; color: var(--kt-blue-mid); }
.meta-item.rating i { color: #fbbf24; }
.meta-item.premium { color: #d97706; border-color: #fcd34d; background: #fffbeb; }

.pro-extra-fields { border-top: 1px dashed rgba(148, 163, 184, 0.5); margin-top: 10px; padding-top: 10px; }
.pro-desc { margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: var(--kt-muted); }
.pro-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pro-tag {
    font-size: 11px; padding: 4px 10px; border-radius: 999px; font-weight: 600;
    background: rgba(5, 64, 153, 0.12); color: var(--kt-blue);
}

/* ===============================
   4. WIZARD STEPS
=================================*/
.wizard-step { display: none; }
.wizard-step.active { display: block; }

.progress-container { margin-bottom: 24px; }
.progress-bar-bg { background: rgba(226, 232, 240, 0.9); height: 6px; border-radius: 999px; overflow: hidden; }
.progress-bar-fill {
    background: linear-gradient(90deg, var(--kt-blue), var(--kt-blue-mid), var(--kt-orange));
    height: 100%; width: 0; border-radius: 999px; transition: width 0.35s ease-out;
}

.step-title { font-size: 24px; font-weight: 800; color: var(--kt-blue); margin: 0 0 6px; }
.step-desc { margin: 0 0 22px; font-size: 15px; color: var(--kt-muted); }

/* ===============================
   5. FORM ELEMENTS & CARDS
=================================*/
/* Radio Cards */
.radio-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.radio-card { position: relative; cursor: pointer; margin: 0; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.card-content {
    display: flex; align-items: center; padding: 14px 15px; background: #ffffff;
    border-radius: var(--kt-radius); border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: 0 4px 12px rgba(28, 44, 82, 0.06); transition: all 0.18s ease;
}
.card-content:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(28, 44, 82, 0.12); border-color: rgba(5, 64, 153, 0.7); }
.check-icon {
    width: 22px; height: 22px; border-radius: 5px; border: 1px solid rgba(148, 163, 184, 0.7);
    display: inline-flex; align-items: center; justify-content: center; margin-right: 14px;
    color: transparent; font-size: 13px; background: #ffffff; flex-shrink: 0; transition: all 0.18s ease;
}
.card-label { font-weight: 600; font-size: 14px; color: var(--kt-text); }
.radio-card input:checked + .card-content {
    border-color: transparent; background: radial-gradient(circle at top left, rgba(5, 64, 153, 0.20), rgba(28, 44, 82, 0.06), #ffffff 70%);
    box-shadow: 0 12px 30px rgba(28, 44, 82, 0.18);
}
.radio-card input:checked + .card-content .check-icon {
    background: linear-gradient(135deg, var(--kt-blue-mid), var(--kt-blue));
    border-color: transparent; color: #ffffff;
}

/* Related Providers */
.related-providers-grid { display: flex; flex-direction: column; gap: 12px; }
.related-card .card-content { align-items: center; gap: 14px; padding: 13px 16px; }
.related-avatar img, .related-avatar div {
    width: 44px; height: 44px; border-radius: 999px; object-fit: cover;
    display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--kt-blue); background: #e5e7eb;
}
.related-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.related-header-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.related-name { font-size: 14px; font-weight: 600; color: var(--kt-text); }
.related-distance {
    padding: 3px 9px; border-radius: 999px; background: rgba(148, 163, 184, 0.14);
    display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--kt-muted); white-space: nowrap;
}
.related-location { font-size: 12px; color: var(--kt-muted); display: inline-flex; align-items: center; gap: 5px; }
.related-services { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.related-service-pill { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(5, 64, 153, 0.12); color: var(--kt-blue); font-weight: 500; }

/* Inputs */
.input-row { display: flex; gap: 14px; }
.input-row .input-group { flex: 1; }
.input-group { margin-bottom: 18px; }
.input-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--kt-text); }
.input-group input, .input-group textarea {
    width: 100%; padding: 11px 13px; border-radius: var(--kt-radius); border: 1px solid rgba(148, 163, 184, 0.8);
    font-size: 14px; color: var(--kt-text); background: #ffffff;
}
.input-group textarea { resize: vertical; min-height: 120px; }
.input-group input:focus, .input-group textarea:focus {
    outline: none; border-color: rgba(5, 64, 153, 0.9); box-shadow: 0 0 0 1px rgba(5, 64, 153, 0.7), 0 0 0 6px rgba(5, 64, 153, 0.18);
}

/* File Upload & Progress */
.file-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.file-preview-item {
    transition: all 0.3s ease;
}
.file-preview-item.uploading {
    border-color: var(--kt-blue) !important;
}
.upload-progress-bar {
    transition: width 0.3s linear;
}

/* Checkbox Simple */
.checkbox-simple { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; }
.checkbox-simple .kt-checkbox {
    appearance: none; width: 18px; height: 18px; border-radius: 6px; border: 1px solid rgba(148, 163, 184, 0.9);
    background: #ffffff; flex-shrink: 0; position: relative;
}
.checkbox-simple .kt-checkbox:checked { border-color: transparent; background-image: linear-gradient(135deg, var(--kt-blue-mid), var(--kt-blue)); }
.checkbox-simple .kt-checkbox:checked::after {
    content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #ffffff; font-size: 12px; font-weight: 700;
}
.checkbox-simple .checkbox-label { font-size: 13px; color: var(--kt-muted); line-height: 1.5; }

/* Buttons */
.btn-prev, .btn-next, .btn-submit {
    border-radius: var(--kt-radius); font-weight: 600; font-size: 14px; padding: 11px 24px;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.18s ease;
}
.btn-prev { border: 1px solid rgba(148, 163, 184, 0.9); background: var(--kt-blue-mid); color: #ffffff; }
.btn-prev:hover:not(:disabled) { background: #f1f5f9; color: var(--kt-blue-mid); border-color: rgba(5, 64, 153, 0.7); }
.btn-prev:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-next, .btn-submit {
    border: none; color: #ffffff;
    background-image: linear-gradient(135deg, var(--kt-blue), var(--kt-blue-mid), var(--kt-orange));
    box-shadow: 0 12px 28px rgba(28, 44, 82, 0.35);
}
.btn-next:hover, .btn-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 40px rgba(28, 44, 82, 0.45); }
.btn-next:disabled, .btn-submit:disabled { opacity: 0.7; cursor: wait; transform: none; box-shadow: none; }

/* Success */
.success-message { text-align: center; padding: 46px 20px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; }
.success-logo { height: 88px; width: auto; margin-bottom: 24px; }
.success-message h2 { font-size: 26px; font-weight: 800; color: var(--kt-success); margin-bottom: 8px; }
.btn-home {
    padding: 10px 22px; border-radius: var(--kt-radius); font-weight: 600; font-size: 14px; color: #ffffff;
    text-decoration: none; background-image: linear-gradient(135deg, var(--kt-blue-mid), var(--kt-blue)); margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .painter-wizard-modal-overlay { padding: 0; }
    .painter-wizard-modal-content { height: 100vh; max-height: none; border-radius: 0; }
    .selected-pro-hero-container { padding: 60px 16px 10px; }
    .pro-card-image-col { width: 100px; padding-inline: 12px; }
    .pro-avatar-large img, .pro-avatar-large .initials-avatar { width: 68px; height: 68px; }
    .wizardPage_main-content-area-wrapper { padding: 18px 16px 20px; }
    .wizard-footer { padding-inline: 16px; flex-wrap: wrap; justify-content: center; }
    .input-row { flex-direction: column; }
}

/* =========================================================================
   CUSTOMER DASHBOARD STYLES (Trustoo-Style Full Width)
   ========================================================================= */

.cd-trustoo-container {
    display: flex;
    flex-direction: row;
    height: 90vh;
    min-height: 600px;
    background-color: #fff;
    font-family: 'Poppins', sans-serif;
    color: #1a202c;
    border: 1px solid #e2e8f0;
    margin: 0;
    width: 100%;
}

/* Sidebar */
.cd-trustoo-sidebar {
    width: 360px;
    flex-shrink: 0;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    background: #fff;
}
.cd-sidebar-header { padding: 20px 24px; border-bottom: 1px solid #f1f5f9; }
.cd-sidebar-title { font-size: 18px; font-weight: 700; margin: 0; color: #1a202c; }
.cd-sidebar-content { flex: 1; overflow-y: auto; background: #f8fafc; }

/* Request Item */
.cd-request-item { background: #fff; border-bottom: 1px solid #e2e8f0; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.cd-request-item-summary { padding: 16px 20px; cursor: pointer; transition: background 0.2s; }
.cd-request-item-summary:hover { background: #f8fafc; }
.cd-request-item.active .cd-request-item-summary { background: #f0f7ff; border-left: 4px solid #033567; }

.cd-req-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cd-req-title { font-weight: 700; font-size: 15px; text-transform: capitalize; }
.cd-req-pill { background: #e2e8f0; color: #4a5568; font-size: 11px; padding: 2px 6px; border-radius: 99px; font-weight: 600; font-style:normal;}

.cd-req-status-row { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.cd-req-footer-row { display: flex; justify-content: space-between; color: #718096; font-size: 12px; }
.cd-req-meta { display: flex; align-items: center; gap: 8px; }

/* Matched Painters List */
.cd-request-painters-details { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: #f8fafc; border-top: 1px solid #f1f5f9; }
.cd-request-item.expanded .cd-request-painters-details { max-height: 500px; }

.cd-painter-sublist-item { display: flex; padding: 12px 20px; border-bottom: 1px solid #e2e8f0; cursor: pointer; align-items: center; gap: 12px; }
.cd-painter-sublist-item:hover { background: #fff; }
.cd-painter-sublist-item img.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid #e2e8f0; }
.cd-painter-sublist-item .info { flex: 1; }
.cd-painter-sublist-item .painter-name { font-weight: 600; font-size: 13px; color: #2d3748; }
.cd-painter-sublist-item .msg-status { font-size: 11px; color: #718096; margin-top: 2px; }
.cd-painter-sublist-item .time { font-size: 11px; color: #a0aec0; }

/* Footer Other Services */
.cd-sidebar-other-services { padding: 20px; background: #fff; margin-top: 10px; }
.cd-sidebar-other-services .title { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.cd-sidebar-other-services .tags span { background: #f1f5f9; padding: 6px 12px; border-radius: 6px; font-size: 12px; color: #475569; display:inline-block; margin:2px;}
.cd-sidebar-other-services .link { color: #033567; font-size: 13px; text-decoration: none; font-weight: 600; display:block; margin-top:10px;}

/* Main Content */
.cd-trustoo-main { flex: 1; display: flex; flex-direction: column; background: #fff; position: relative;}
.cd-main-header { height: 70px; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; padding: 0 30px; justify-content: space-between; }
.cd-main-header .header-info { display: flex; align-items: center; gap: 12px; }
.cd-main-header .avatar { width: 40px; height: 40px; border-radius: 50%; }
.cd-main-header .name { font-weight: 700; font-size: 15px; }
.cd-main-header .location { font-size: 12px; color: #718096; }

.cd-main-content-area { flex: 1; background: #fff; overflow-y: auto; display:flex; flex-direction:column; }
.cd-quote-details-main { flex:1; display:flex; flex-direction:column; height:100%;}

/* Chat Area */
.cd-chat-area-wrapper { display: flex; flex-direction: column; height: 100%; padding: 20px 30px; flex:1; }
.chat-messages-container { flex:1; overflow-y:auto; margin-bottom:20px; padding-right:10px; }

.cd-message-row.system { display: flex; justify-content: center; margin-bottom: 20px; }
.cd-message-bubble { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; width: 100%; max-width: 600px; font-size: 13px; }
.cd-message-bubble .msg-header { font-weight: 700; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; margin-bottom: 8px; }

/* Input & Replies */
.cd-quick-replies { margin-top: auto; padding: 15px 0; border-top: 1px solid #f1f5f9; }
.cd-quick-replies .title { font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 8px; }
.cd-chat-input-bar { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; }
.cd-chat-input-bar textarea { width: 100%; border: none; background: transparent; resize: none; height: 50px; font-size: 14px; outline: none; margin-bottom: 10px; }
.cd-chat-actions { display: flex; justify-content: space-between; align-items: center; }
.btn-icon { background: none; border: none; color: #64748b; font-weight: 600; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.btn-send { background: #033567; color: #fff; border: none; padding: 8px 20px; border-radius: 6px; font-weight: 600; cursor: pointer; }

/* Details Section */
.cd-detail-section { padding: 20px 30px; border-bottom: 1px solid #f1f5f9; }
.cd-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 15px; font-size: 13px; }
.cd-status-actions { display: flex; align-items: center; gap: 10px; }
.cd-status-select { padding: 6px 12px; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 13px; }
.cd-status-save-button { background: #033567; color: #fff; border: none; padding: 6px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; }

/* Responsive Dashboard */
@media (max-width: 768px) {
    .cd-trustoo-container { flex-direction: column; height: auto; }
    .cd-trustoo-sidebar { width: 100%; height: auto; max-height: 400px; border-right: none; border-bottom: 1px solid #e2e8f0; }
}
/* ===============================
   6. SPLIT LAYOUT & UPLOAD CARD
=================================*/

/* The Container Split */
.step2-split-container {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
    align-items: stretch; /* Makes both columns equal height */
    position: relative;
    z-index: 1;
}

.step2-col-message {
    flex: 0 0 75%;
    max-width: 75%;
    position: relative;
    z-index: 5; /* Ensures Textarea stays on top */
}

.step2-col-upload {
    flex: 0 0 25%;
    max-width: 25%;
    position: relative;
    z-index: 2;
}

/* Helper to fill height */
.h-100-group {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Textarea Styling */
.full-height-textarea {
    flex: 1;
    min-height: 140px;
    resize: none; /* Disables manual resize to keep layout clean */
}

/* --- THE NEW PROPER CARD UPLOADER --- */

/* 1. The Wrapper: Must be Relative to trap the absolute input */
.upload-card-wrapper {
    position: relative; 
    flex: 1;
    min-height: 140px;
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: var(--kt-radius);
    transition: all 0.2s ease;
    overflow: hidden; /* Contains children */
}

.upload-card-wrapper:hover {
    border-color: var(--kt-blue);
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(5, 64, 153, 0.08);
}

/* 2. The Input: Hidden but covers the card for clicking */
.job-photos-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10; /* Above the visual label, but inside the wrapper */
}

/* 3. The Visual Label: Centered content */
.upload-card-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Lets clicks pass through to the input */
    padding: 10px;
    text-align: center;
}

/* Icon Styling */
.upload-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(5, 64, 153, 0.08);
    color: var(--kt-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
}

.upload-card-wrapper:hover .upload-icon-circle {
    transform: scale(1.1);
    background: var(--kt-blue);
    color: #ffffff;
}

/* Text Styling */
.upload-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--kt-blue-mid);
    line-height: 1.2;
}

.upload-subtitle {
    font-size: 10px;
    color: var(--kt-muted);
    margin-top: 2px;
}

/* ===============================
   MOBILE RESPONSIVENESS
=================================*/
@media (max-width: 768px) {
    .step2-split-container {
        flex-direction: column;
        gap: 0;
    }
    
    .step2-col-message, 
    .step2-col-upload {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .upload-card-wrapper {
        min-height: 100px; /* Smaller on mobile */
        margin-top: 15px;
        border-width: 1px; /* Thinner border on mobile looks better */
    }
    
    /* Horizontal layout for uploader on mobile to save space */
    .upload-card-label {
        flex-direction: row;
        gap: 12px;
    }
    .upload-icon-circle {
        margin-bottom: 0;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .upload-title {
        text-align: left;
        font-size: 13px;
    }
    .upload-subtitle {
        display: none; /* Hide subtitle on mobile for cleanliness */
    }
}
/* =========================================================
   MOBILE FIX: Always-visible footer + safe-area + button grid
   Paste at the very end of painter-form.css
========================================================= */

/* 1) Fix "100vh" issues on mobile browsers (address bar / bottom bar).
   Use new viewport units when supported. */
@supports (height: 100dvh) {
  .painter-wizard-modal-content {
    height: 100dvh !important;
  }
}
@supports (height: 100svh) {
  .painter-wizard-modal-content {
    height: 100svh !important;
  }
}

/* 2) Make footer sticky so it never disappears while scrolling */
.wizard-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffff;
  /* Safe-area padding for iOS (home indicator) */
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

/* 3) Ensure scroll area doesn't hide last content behind sticky footer */
.wizardPage_main-content-area-wrapper {
  /* Extra space so content never sits under footer */
  padding-bottom: 110px;
}

/* 4) Tighten + normalize button sizing so they don't get cut off */
.btn-prev, .btn-next, .btn-submit {
  min-width: 0;              /* prevents overflow inside flex/grid */
  white-space: nowrap;       /* keep label on one line */
  line-height: 1.2;
}

/* 5) MOBILE: Make footer buttons perfectly adaptable */
@media (max-width: 520px) {

  /* Use grid instead of flex so buttons are always visible */
  .wizard-footer {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-content: initial !important;
    align-items: stretch;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom)) !important;
  }

  /* Make buttons full height and readable */
  .wizard-footer .btn-prev,
  .wizard-footer .btn-next,
  .wizard-footer .btn-submit {
    width: 100%;
    padding: 12px 12px;
    font-size: 13px;
    border-radius: 10px; /* slightly nicer on small screens */
  }

  /* Submit always full width (takes both columns) */
  .wizard-footer .btn-submit {
    grid-column: 1 / -1;
  }

  /* Reduce icon size slightly to prevent clipping */
  .wizard-footer i {
    font-size: 13px;
  }
}

/* 6) MOBILE: For medium phones (up to 768px), ensure buttons never overflow */
@media (max-width: 768px) {
  .wizard-footer {
    gap: 10px;
  }

  /* Allow buttons to shrink without pushing each other off-screen */
  .wizard-footer .btn-prev,
  .wizard-footer .btn-next,
  .wizard-footer .btn-submit {
    flex: 1;
  }
}
/* =========================================================
   MOBILE FIX (Android/iOS): footer always visible + real viewport
   Paste at the VERY END of painter-form.css
========================================================= */

/* Use modern viewport units so 100vh doesn't go under browser/system UI */
@supports (height: 100svh) {
  .painter-wizard-modal-content { height: 100svh !important; }
}
@supports (height: 100dvh) {
  .painter-wizard-modal-content { height: 100dvh !important; }
}

/* Keep footer visible and above bottom bars */
.wizard-footer{
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;

  /* iOS safe area */
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

/* Ensure last content never hides behind sticky footer */
.wizardPage_main-content-area-wrapper{
  padding-bottom: 160px; /* space for footer + breathing room */
}

/* ---------- EXTRA Android protection (system navigation bar overlap) ---------- */
@media (max-width: 520px){
  /* Android often needs more than safe-area. Give real extra space. */
  .wizard-footer{
    padding: 12px 12px 72px !important; /* <— key fix: pushes buttons above nav bar */
    border-top: 1px solid var(--kt-border);
  }

  /* Make buttons fit every width cleanly */
  .wizard-footer{
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .wizard-footer .btn-prev,
  .wizard-footer .btn-next,
  .wizard-footer .btn-submit{
    width: 100%;
    min-width: 0;
    padding: 12px 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* Submit takes full width */
  .wizard-footer .btn-submit{
    grid-column: 1 / -1;
  }

  /* Increase scroll padding so content never sits under footer */
  .wizardPage_main-content-area-wrapper{
    padding-bottom: 220px !important;
  }

  /* -------- Reduce hero height on small screens (frees space) -------- */
  .selected-pro-hero-container{
    padding: 54px 12px 10px !important;
  }

  .selected-pro-card{
    flex-direction: column;
  }

  .pro-card-image-col{
    width: 100% !important;
    padding: 12px !important;
    justify-content: flex-start;
  }

  .pro-card-info-col{
    padding: 12px 12px 14px !important;
  }

  .pro-info-large h3{
    font-size: 18px !important;
    line-height: 1.2;
  }

  .meta-item{
    font-size: 11px;
    padding: 4px 8px;
  }

  /* Close button slightly smaller on mobile */
  .painter-wizard-modal-close{
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }
}
