/* =============================================
   Greece Property Audit — Client Tracking Page
   ============================================= */

.mart-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: system-ui, -apple-system, sans-serif;
}

/* ── Lookup form ── */
.mart-lookup {
    text-align: center;
}
.mart-lookup-icon { margin-bottom: 20px; }
.mart-title {
    font-size: 24px; font-weight: 500; margin: 0 0 8px; color: #1A1A1A;
}
.mart-subtitle {
    font-size: 15px; color: #666; margin: 0 0 28px; line-height: 1.5;
}
.mart-field { margin-bottom: 14px; text-align: left; }
.mart-label {
    font-size: 12px; color: #666; margin: 0 0 5px; display: block; font-weight: 500;
}
.mart-ref-input {
    display: flex; align-items: center; border: 1px solid #ddd;
    border-radius: 6px; overflow: hidden; transition: border-color 0.2s;
}
.mart-ref-input:focus-within { border-color: #8B7355; }
.mart-ref-hash {
    padding: 10px 0 10px 14px; font-size: 16px; color: #999; font-weight: 500;
}
.mart-ref-input input {
    border: none; outline: none; padding: 10px 14px 10px 4px; font-size: 15px;
    flex: 1; background: transparent;
}
.mart-wrap input[type="email"] {
    width: 100%; box-sizing: border-box; padding: 10px 14px; font-size: 15px;
    border: 1px solid #ddd; border-radius: 6px; transition: border-color 0.2s;
}
.mart-wrap input[type="email"]:focus { outline: none; border-color: #8B7355; }

.mart-btn {
    width: 100%; padding: 14px; font-size: 15px; font-weight: 500; color: #fff;
    background: #2C3E50; border: none; border-radius: 6px; cursor: pointer;
    margin-top: 8px; transition: background 0.2s; font-family: inherit;
}
.mart-btn:hover { background: #34495E; }
.mart-btn:disabled { opacity: 0.6; cursor: wait; }

.mart-error {
    margin-top: 14px; padding: 12px 16px; background: #FDF2F2;
    border: 1px solid #F5C6C6; border-radius: 6px; color: #C0392B;
    font-size: 14px; text-align: left;
}

/* ── Result view ── */
.mart-result { text-align: left; }

.mart-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.mart-header-left h2 {
    font-size: 20px; font-weight: 500; margin: 0 0 4px; color: #1A1A1A;
}
.mart-header-left span { font-size: 13px; color: #999; }
.mart-status-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
    border-radius: 20px; font-size: 14px; font-weight: 500; color: #fff;
}

/* Timeline */
.mart-timeline {
    display: flex; justify-content: space-between; margin-bottom: 32px;
    position: relative; padding: 0;
}
.mart-timeline::before {
    content: ''; position: absolute; top: 16px; left: 24px;
    right: 24px; height: 2px; background: #E8E5DF; z-index: 0;
}
.mart-step {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    position: relative; z-index: 1; flex: 1;
}
.mart-step-dot {
    width: 32px; height: 32px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 13px;
    font-weight: 600; border: 2px solid #E8E5DF; background: #fff; color: #ccc;
    transition: all 0.3s;
}
.mart-step-label { font-size: 12px; color: #999; text-align: center; }
.mart-step.done .mart-step-dot {
    background: #2ECC71; border-color: #2ECC71; color: #fff;
}
.mart-step.done .mart-step-label { color: #2ECC71; }
.mart-step.active .mart-step-dot {
    border-color: #C9A96E; background: #C9A96E; color: #fff;
    box-shadow: 0 0 0 4px rgba(201,169,110,0.2);
}
.mart-step.active .mart-step-label { color: #C9A96E; font-weight: 600; }
.mart-step.cancelled .mart-step-dot {
    border-color: #ddd; background: #f5f5f5; color: #ccc;
}

/* Cards */
.mart-card {
    background: #FAFAF8; border: 1px solid #E8E5DF; border-radius: 8px;
    padding: 20px 24px; margin-bottom: 16px;
}
.mart-card-title {
    font-size: 11px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: #8B7355; margin: 0 0 14px;
}
.mart-card-row {
    display: flex; justify-content: space-between; padding: 6px 0;
    border-bottom: 1px solid #F0EDE8; font-size: 14px;
}
.mart-card-row:last-child { border-bottom: none; }
.mart-card-row .mart-label2 { color: #888; }
.mart-card-row .mart-value { color: #1A1A1A; font-weight: 500; }

/* Quote box */
.mart-quote-box {
    background: #2C3E50; border-radius: 8px; padding: 28px; color: #fff;
    margin-bottom: 16px; text-align: center;
}
.mart-quote-amount {
    font-size: 36px; font-weight: 500; margin: 8px 0; color: #C9A96E;
}
.mart-quote-label { font-size: 13px; color: #7A8A9A; }
.mart-quote-note {
    font-size: 13px; color: #94A3B3; margin-top: 12px; line-height: 1.5;
}
.mart-quote-actions {
    display: flex; gap: 12px; margin-top: 20px; justify-content: center;
}
.mart-accept-btn {
    padding: 12px 32px; font-size: 15px; font-weight: 500; border: none;
    border-radius: 6px; cursor: pointer; font-family: inherit;
    background: #27AE60; color: #fff; transition: background 0.2s;
}
.mart-accept-btn:hover { background: #219A52; }
.mart-decline-btn {
    padding: 12px 24px; font-size: 14px; font-weight: 400; border: 1px solid #5A6A7A;
    border-radius: 6px; cursor: pointer; font-family: inherit;
    background: transparent; color: #7A8A9A; transition: all 0.2s;
}
.mart-decline-btn:hover { border-color: #C0392B; color: #C0392B; }

.mart-quote-accepted {
    margin-top: 16px; padding: 10px 16px; background: rgba(39,174,96,0.15);
    border-radius: 6px; font-size: 14px; color: #2ECC71;
}

/* Report ready */
.mart-report-box {
    background: #EAFAF1; border: 1px solid #A9DFBF; border-radius: 8px;
    padding: 24px; margin-bottom: 16px; text-align: center;
}
.mart-report-box h3 {
    margin: 12px 0 8px; font-size: 18px; color: #1A1A1A;
}
.mart-report-box p { font-size: 14px; color: #555; margin: 0 0 16px; line-height: 1.6; }
.mart-report-note {
    background: #fff; border-left: 3px solid #C9A96E; padding: 14px 18px;
    font-size: 14px; color: #555; line-height: 1.6; text-align: left;
    margin: 16px 0; border-radius: 0 6px 6px 0;
}
.mart-download-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; font-size: 15px; font-weight: 500;
    background: #8B7355; color: #fff; border: none; border-radius: 6px;
    cursor: pointer; text-decoration: none; transition: background 0.2s;
}
.mart-download-btn:hover { background: #7A6345; color: #fff; }
.mart-download-lock {
    padding: 14px 32px; font-size: 15px; color: #999; background: #f0f0f0;
    border-radius: 6px; display: inline-block; cursor: not-allowed;
}

/* Back link */
.mart-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: #8B7355; text-decoration: none;
    margin-bottom: 20px; cursor: pointer;
}
.mart-back:hover { color: #6A5540; }


/* ── Payment options ── */
.mart-deposit-info {
    margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.15);
}
.mart-deposit-label { font-size: 12px; color: #94A3B3; }
.mart-deposit-amount { font-size: 24px; font-weight: 500; color: #fff; margin: 4px 0; }
.mart-deposit-note { font-size: 12px; color: #7A8A9A; }

.mart-payment-options {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 20px; max-width: 320px; margin-left: auto; margin-right: auto;
}
.mart-pay-stripe-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; font-size: 15px; font-weight: 500;
    background: #635BFF; color: #fff; border: none; border-radius: 6px;
    cursor: pointer; transition: background 0.2s; font-family: inherit;
}
.mart-pay-stripe-btn:hover { background: #5248E5; }
.mart-pay-stripe-btn:disabled { opacity: 0.6; cursor: wait; }

.mart-pay-bank-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; font-size: 15px; font-weight: 400;
    background: transparent; color: #94A3B3; border: 1px solid #5A6A7A;
    border-radius: 6px; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.mart-pay-bank-btn:hover { border-color: #C9A96E; color: #C9A96E; }
.mart-pay-bank-btn:disabled { opacity: 0.6; cursor: wait; }

.mart-payment-divider {
    text-align: center; margin: 12px 0 4px; color: #5A6A7A; font-size: 13px;
    display: flex; align-items: center; gap: 16px;
}
.mart-payment-divider::before,
.mart-payment-divider::after {
    content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.12);
}

/* ── Deposit pending box ── */
.mart-deposit-pending-box {
    background: #FEF9E7; border: 1px solid #F9E79F; border-radius: 8px;
    padding: 24px; margin-bottom: 16px; text-align: center;
}
.mart-deposit-pending-box h3 {
    margin: 0 0 8px; font-size: 18px; color: #2C3E50;
}
.mart-dp-subtitle { font-size: 14px; color: #555; margin: 0 0 16px; }
.mart-bank-details {
    background: #fff; border: 1px solid #E8E5DF; border-radius: 6px;
    padding: 16px; margin: 16px 0; text-align: left;
}
.mart-bank-details pre {
    margin: 0; font-family: 'SF Mono', Consolas, monospace;
    font-size: 13px; color: #2C3E50; white-space: pre-wrap; line-height: 1.8;
}
.mart-dp-note { font-size: 13px; color: #888; margin-top: 16px; }

/* ── Banners ── */
.mart-success-banner {
    display: flex; align-items: center; gap: 12px;
    background: #EAFAF1; border: 1px solid #A9DFBF; border-radius: 8px;
    padding: 16px 20px; margin-bottom: 20px; font-size: 14px; color: #1A6B3C;
}
.mart-warning-banner {
    background: #FEF9E7; border: 1px solid #F9E79F; border-radius: 8px;
    padding: 16px 20px; margin-bottom: 20px; font-size: 14px; color: #8B6914;
}

/* ── Download files ── */
.mart-download-files { margin: 20px 0 8px; }
.mart-file-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: #fff; border: 1px solid #E8E5DF;
    border-radius: 6px; margin-bottom: 8px;
}
.mart-file-info {
    display: flex; align-items: center; gap: 10px;
}
.mart-file-icon { font-size: 20px; }
.mart-file-name { font-size: 14px; font-weight: 500; color: #2C3E50; }
.mart-file-size { font-size: 12px; color: #999; }
.mart-download-note {
    font-size: 12px; color: #999; text-align: center; margin-top: 4px;
}
.mart-download-lock {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px; font-size: 14px; color: #999; background: #f0f0f0;
    border-radius: 6px; cursor: not-allowed; margin-top: 16px;
}

/* ── Cancel section ── */
.mart-cancel-section {
    text-align: center; margin-top: 24px; padding-top: 20px;
    border-top: 1px solid #E8E5DF;
}
.mart-cancel-link {
    font-size: 13px; color: #C0392B; text-decoration: none;
    opacity: 0.6; transition: opacity 0.2s;
}
.mart-cancel-link:hover { opacity: 1; text-decoration: underline; }
.mart-cancelled-box {
    background: #FDEDEC; border: 1px solid #F5B7B1; border-radius: 8px;
    padding: 24px; text-align: center; margin-bottom: 16px;
}
.mart-cancelled-box h3 { margin: 0 0 8px; color: #C0392B; font-size: 18px; }
.mart-cancelled-box p { margin: 0 0 6px; font-size: 14px; color: #666; }
.mart-refund-note {
    margin-top: 12px !important; padding: 10px 16px;
    background: #FEF9E7; border: 1px solid #F9E79F; border-radius: 4px;
    font-size: 13px !important; color: #8B6914 !important;
}

/* ── Final payment wall ── */
.mart-final-payment-wall {
    background: #2C3E50; border-radius: 8px; padding: 28px; color: #fff;
    text-align: center; margin-top: 20px;
}
.mart-fpw-icon { margin-bottom: 12px; }
.mart-final-payment-wall h4 {
    margin: 0 0 8px; font-size: 17px; font-weight: 500; color: #fff;
}
.mart-fpw-amount {
    font-size: 32px; font-weight: 500; color: #C9A96E; margin: 8px 0;
}
.mart-fpw-note {
    font-size: 13px; color: #94A3B3; margin-bottom: 20px; line-height: 1.5;
}
.mart-fpw-options { max-width: 300px; margin: 0 auto; }

.mart-final-pending {
    background: #FEF9E7; border: 1px solid #F9E79F; border-radius: 8px;
    padding: 24px; text-align: center; margin-top: 20px;
}
.mart-final-pending-icon { font-size: 32px; margin-bottom: 8px; }
.mart-final-pending h4 {
    margin: 0 0 8px; font-size: 17px; color: #2C3E50;
}
.mart-final-pending p {
    font-size: 14px; color: #555; margin: 0 0 16px; line-height: 1.6;
}

/* ── Spinner ── */
.mart-spinner {
    width: 40px; height: 40px; border: 3px solid #E8E5DF;
    border-top-color: #C9A96E; border-radius: 50%;
    animation: mart-spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes mart-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
    .mart-header { flex-direction: column; align-items: flex-start; }
    .mart-quote-actions { flex-direction: column; }
    .mart-card-row { flex-direction: column; gap: 2px; }
    .mart-timeline { gap: 4px; }
    .mart-step-label { font-size: 10px; }
    .mart-file-row { flex-direction: column; gap: 10px; align-items: flex-start; }
    .mart-download-btn { width: 100%; text-align: center; justify-content: center; }
    .mart-pay-stripe-btn,
    .mart-pay-bank-btn { width: 100%; }
}
