/*
 * Inkas Payments application form - shared by the Pro panel
 * (/professional/inkas) and the public page (/inkas), so the two look
 * identical. Extracted from resources/views/professional/inkas/show.blade.php.
 *
 * Same structure as the Dulux page, in MeinHaus blue so the two partner
 * pages are told apart at a glance. Mobile-first: one column, with the
 * "from your profile" panel moving beside the form from lg up.
 */
:root {
    --ik-blue: #1E9BD0;
    --ik-blue-dark: #1576a6;
    --ik-blue-tint: #eaf6fb;
    --ik-blue-wash: #f4fafd;
    --ik-ink: #1b2a4a;
    --ik-muted: #6b7280;
    --ik-line: #e8ebef;
    --ik-green: #15803d;
    --ik-green-tint: #e8f7ee;
    --ik-orange: #e0752a;
    --ik-orange-dark: #c8641f;
    --ik-gold-tint: #faf6e8;
}

.ik { max-width: 1040px; margin: 0 auto; color: var(--ik-ink); }
.ik [hidden] { display: none !important; }

/* Back to the partners hub, which replaced this page's sidebar entry.
   Pro panel only - the public /inkas page never renders this link. */
.ik-back {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 600; color: var(--ik-muted);
    text-decoration: none; margin-bottom: 14px;
}
.ik-back:hover { color: var(--ik-blue-dark); }

/* Hero: white card, illustration on the right, dot texture bottom-left */
.ik-hero {
    position: relative;
    border-radius: 18px;
    padding: 28px 32px;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid var(--ik-line);
    overflow: hidden;
}
.ik-hero::before {
    content: '';
    position: absolute;
    left: -34px;
    bottom: -34px;
    width: 170px;
    height: 170px;
    background-image: radial-gradient(var(--ik-blue) 1.4px, transparent 1.5px);
    background-size: 14px 14px;
    opacity: .13;
    pointer-events: none;
}
.ik-hero > * { position: relative; z-index: 1; }
.ik-hero-top { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 28px; align-items: center; }
.ik-hero-art { display: block; width: 100%; height: auto; }
.ik-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ik-brand-logo { display: block; height: 46px; width: auto; }
.ik-brand-sep { width: 1px; height: 28px; background: var(--ik-line); }
.ik-brand-partner { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ik-muted); }
.ik-h1 { font-size: 27px; font-weight: 800; line-height: 1.2; margin: 0 0 8px; color: var(--ik-ink); max-width: 28ch; }
.ik-lead { font-size: 15px; line-height: 1.6; color: var(--ik-muted); margin: 0; max-width: 68ch; }
.ik-about {
    display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; max-width: 68ch;
    font-size: 13.5px; line-height: 1.5; color: #4b5563;
    background: var(--ik-gold-tint); border: 1px solid #efe6c4; border-radius: 10px; padding: 10px 12px;
}
.ik-about i { color: #a8841f; font-size: 16px; margin-top: 1px; }
.ik-status {
    display: inline-flex; align-items: center; gap: 6px; background: var(--ik-green-tint); color: var(--ik-green);
    font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}

.ik-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.ik-benefit {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--ik-blue-wash); border: 1px solid #e1eff7; border-radius: 12px; padding: 14px;
}
.ik-benefit i {
    flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--ik-blue);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    box-shadow: 0 1px 2px rgba(16, 40, 70, .08);
}
.ik-benefit strong { display: block; font-size: 14px; line-height: 1.3; color: var(--ik-ink); }
.ik-benefit span { display: block; font-size: 12.5px; line-height: 1.4; color: var(--ik-muted); margin-top: 2px; }

/* Progress indicator: numbered dots joined by a line; completed steps are clickable. */
.ik-progress-card { padding: 18px 20px 16px; }
.ik-progress-count { display: none; font-size: 13px; font-weight: 700; color: var(--ik-muted); margin-bottom: 10px; }
.ik-progress-count strong { color: var(--ik-ink); }
.ik-progress { display: flex; list-style: none; padding: 0; margin: 0; }
.ik-progress li { flex: 1; position: relative; text-align: center; }
.ik-progress li + li::before {
    content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px;
    background: var(--ik-line); transition: background .2s ease;
}
.ik-progress li.is-reached + li.is-reached::before { background: var(--ik-blue); }
.ik-progress-btn {
    position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 7px;
    background: none; border: 0; padding: 0 4px; font: inherit; color: var(--ik-muted); cursor: default;
}
.ik-progress-dot {
    width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 13.5px; font-weight: 800; background: #fff; color: var(--ik-muted); border: 2px solid #d9dee4;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.ik-progress-label { font-size: 13px; font-weight: 700; line-height: 1.25; }
.ik-progress li.is-done .ik-progress-dot { background: var(--ik-blue); border-color: var(--ik-blue); color: #fff; }
.ik-progress li.is-reached:not(.is-current) .ik-progress-btn { cursor: pointer; color: var(--ik-ink); }
.ik-progress li.is-reached:not(.is-current) .ik-progress-btn:hover .ik-progress-label { text-decoration: underline; }
.ik-progress li.is-current .ik-progress-dot { border-color: var(--ik-blue); color: var(--ik-blue); box-shadow: 0 0 0 4px var(--ik-blue-tint); }
.ik-progress li.is-current .ik-progress-btn { color: var(--ik-ink); }
.ik-progress-btn:focus-visible { outline: none; }
.ik-progress-btn:focus-visible .ik-progress-dot { box-shadow: 0 0 0 4px var(--ik-blue-tint); }
/* Without JS every step is shown at once, so the indicator is just a guide. */
.ik-form:not(.ik-js) .ik-progress-card,
.ik-form:not(.ik-js) [data-js-panel] { display: none; }

/* Step panels */
.ik-js .ik-panel { display: none; }
.ik-js .ik-panel.is-active { display: block; animation: ik-in .22s ease; }
@keyframes ik-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ik-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ik-blue); margin-bottom: 4px; }
.ik-panel-title { font-size: 20px; font-weight: 800; margin: 0; color: var(--ik-ink); }
.ik-panel-title:focus { outline: none; }
.ik-panel-sub { font-size: 14px; color: var(--ik-muted); margin: 4px 0 0; }
.ik-panel-head { margin-bottom: 18px; }
.ik-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.ik-nav-end { margin-left: auto; }
.ik-js-only { display: none; }
.ik-js .ik-js-only { display: inline-flex; }

/* Cards */
.ik-card { background: #fff; border: 1px solid var(--ik-line); border-radius: 16px; padding: 24px 26px; margin-bottom: 16px; }
.ik-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ik-card-icon {
    flex: 0 0 38px; height: 38px; border-radius: 11px; background: var(--ik-blue-tint); color: var(--ik-blue);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.ik-card-title { font-size: 16.5px; font-weight: 800; margin: 0; color: var(--ik-ink); }
.ik-card-sub { font-size: 13px; color: var(--ik-muted); margin: 2px 0 0; }
.ik-sep { border: 0; border-top: 1px solid #f0f2f4; margin: 22px 0; opacity: 1; }

.ik-ready {
    display: flex; gap: 12px; align-items: flex-start; background: var(--ik-blue-wash);
    border: 1px dashed #bfe0ef; border-radius: 12px; padding: 12px 14px; margin-bottom: 20px; font-size: 13.5px; line-height: 1.5;
}
.ik-ready i { color: var(--ik-blue); font-size: 18px; }
.ik-ready strong { color: var(--ik-ink); }

/* Fields */
.ik-field { margin-bottom: 20px; }
.ik-field:last-child { margin-bottom: 0; }
.ik-label { display: block; font-weight: 700; font-size: 14px; color: var(--ik-ink); margin-bottom: 7px; }
.ik-label .ik-optional, .ik-optional { font-weight: 500; color: var(--ik-muted); }
.ik-help { font-size: 12.5px; color: var(--ik-muted); margin-top: 6px; }
.ik-error { font-size: 12.5px; color: #c62828; margin-top: 6px; font-weight: 600; }
.ik-error:empty { display: none; }
.ik .form-control { border-radius: 10px; min-height: 46px; border-color: #d9dee4; }
.ik .form-control:focus { border-color: var(--ik-blue); box-shadow: 0 0 0 3px var(--ik-blue-tint); }
.ik .form-control[readonly] { background: var(--ik-blue-wash); }
.ik .form-control[aria-invalid="true"] { border-color: #e57373; }
.ik .input-group-text { border-radius: 10px; background: #f6f7f9; border-color: #d9dee4; color: var(--ik-muted); font-weight: 600; }
.ik-w-sm { max-width: 260px; }
.ik-w-md { max-width: 320px; }

/* Choice cards (business structure) */
.ik-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ik-choice { position: relative; margin: 0; cursor: pointer; }
.ik-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ik-choice-body {
    display: flex; gap: 12px; align-items: center; height: 100%;
    border: 1.5px solid #d9dee4; border-radius: 12px; padding: 14px;
    transition: border-color .15s ease, background .15s ease;
}
.ik-choice-body i { font-size: 22px; color: var(--ik-muted); }
.ik-choice-body strong { display: block; font-size: 14.5px; color: var(--ik-ink); }
.ik-choice-body small { display: block; font-size: 12.5px; color: var(--ik-muted); line-height: 1.35; }
.ik-choice:hover .ik-choice-body { border-color: #b9c3cd; }
.ik-choice input:checked + .ik-choice-body { border-color: var(--ik-blue); background: var(--ik-blue-wash); }
.ik-choice input:checked + .ik-choice-body i { color: var(--ik-blue); }
.ik-choice input:focus-visible + .ik-choice-body { box-shadow: 0 0 0 3px var(--ik-blue-tint); }

/* Yes / No toggle */
.ik-toggle { display: inline-flex; border: 1.5px solid #d9dee4; border-radius: 11px; padding: 3px; gap: 3px; }
.ik-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ik-toggle label {
    margin: 0; padding: 8px 22px; border-radius: 8px; font-weight: 700; font-size: 14px;
    color: var(--ik-muted); cursor: pointer; transition: background .15s ease, color .15s ease;
}
.ik-toggle input:checked + label { background: var(--ik-blue); color: #fff; }
.ik-toggle input:focus-visible + label { box-shadow: 0 0 0 3px var(--ik-blue-tint); }

.ik-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; cursor: pointer; }
.ik-check .form-check-input { margin: 0; }

/* Review */
.ik-review-section + .ik-review-section { border-top: 1px solid #f0f2f4; margin-top: 18px; padding-top: 18px; }
.ik-review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ik-review-head h3 { font-size: 15px; font-weight: 800; margin: 0; }
.ik-review-edit {
    background: none; border: 0; padding: 4px 6px; font-size: 13px; font-weight: 700; color: var(--ik-blue);
    display: inline-flex; align-items: center; gap: 4px; border-radius: 6px;
}
.ik-review-edit:hover { background: var(--ik-blue-tint); }
.ik-review-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0; }
.ik-review-list dt { font-size: 12.5px; font-weight: 600; color: var(--ik-muted); margin: 0; }
.ik-review-list dd { font-size: 14.5px; font-weight: 600; color: var(--ik-ink); margin: 2px 0 0; word-break: break-word; }
.ik-review-list .ik-review-wide { grid-column: 1 / -1; }
/* Project size: soft check for a monthly total typed by mistake. */
.ik-size-warning {
    display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 9px 12px;
    border-radius: 8px; font-size: 13px; line-height: 1.45;
    background: #fff7e6; color: #8a5a00; border: 1px solid #f6dfa8;
}
.ik-size-warning i { margin-top: 1px; }

/* Documents */
.ik-upload { border: 1px solid var(--ik-line); border-radius: 14px; padding: 18px; }
.ik-upload + .ik-upload { margin-top: 14px; }
.ik-upload-head { display: flex; gap: 12px; margin-bottom: 14px; }
.ik-upload-head strong { display: block; font-size: 15px; color: var(--ik-ink); }
.ik-upload-tips { list-style: none; padding: 0; margin: 4px 0 0; }
.ik-upload-tips li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.5; color: #4b5563; }
.ik-upload-tips li::before { content: '\2713'; position: absolute; left: 0; color: var(--ik-blue); font-weight: 800; }
.ik-drop {
    display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; cursor: pointer; text-align: center;
    border: 2px dashed #cdd5dd; border-radius: 12px; padding: 22px 14px; background: #fbfcfd;
    transition: border-color .15s ease, background .15s ease;
}
.ik-drop:hover, .ik-drop.is-over { border-color: var(--ik-blue); background: var(--ik-blue-wash); }
.ik-drop i { font-size: 26px; color: var(--ik-blue); }
.ik-drop span { font-size: 14px; font-weight: 600; color: var(--ik-ink); }
.ik-drop span u { color: var(--ik-blue); text-underline-offset: 2px; }
.ik-drop small { font-size: 12px; color: var(--ik-muted); }
.ik-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ik-drop:focus-within { box-shadow: 0 0 0 3px var(--ik-blue-tint); border-color: var(--ik-blue); }
.ik-js .ik-upload.has-file .ik-drop { display: none; }

/* Licence: reuse the government ID already on MeinHaus. */
.ik-saved { margin: 4px 0 14px; }
.ik-saved-check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ik-ink); cursor: pointer; margin-bottom: 10px; }
.ik-saved-check input { width: 18px; height: 18px; accent-color: var(--ik-blue); flex: none; }
.ik-saved-file { display: flex; align-items: center; gap: 12px; border: 1px solid var(--ik-line); border-radius: 12px; padding: 10px 12px; background: #fafbfc; }
.ik-upload.uses-saved .ik-saved-file { border: 1.5px solid var(--ik-blue); background: var(--ik-blue-wash); }
.ik-saved-file .ik-file-icon { width: 44px; height: 44px; font-size: 20px; }
.ik-saved-view { flex: none; font-size: 13px; font-weight: 700; color: var(--ik-blue); text-decoration: none; }
.ik-saved-view:hover { text-decoration: underline; }
.ik-saved-note { font-size: 12.5px; color: var(--ik-muted); margin: 8px 0 0; }
.ik-saved-note i { color: #1a8f4c; }
.ik-file { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--ik-blue); background: var(--ik-blue-wash); border-radius: 12px; padding: 10px 12px; }
.ik-file-thumb { flex: none; width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #fff; border: 1px solid var(--ik-line); }
.ik-file-icon { flex: none; width: 52px; height: 52px; border-radius: 8px; background: #fff; border: 1px solid var(--ik-line); display: flex; align-items: center; justify-content: center; font-size: 24px; color: #d14343; }
.ik-file-meta { min-width: 0; flex: 1; }
.ik-file-name { font-size: 14px; font-weight: 700; color: var(--ik-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ik-file-size { font-size: 12px; color: var(--ik-muted); }
.ik-file-actions { display: flex; gap: 6px; }
.ik-file-actions button {
    background: #fff; border: 1px solid #d9dee4; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; font-weight: 700; color: var(--ik-ink);
}
.ik-file-actions button:hover { border-color: var(--ik-blue); color: var(--ik-blue); }
.ik-privacy {
    display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13.5px; line-height: 1.5; color: #1f5f2e;
    background: var(--ik-green-tint); border-radius: 10px; padding: 11px 13px;
}
.ik-privacy i { font-size: 17px; color: var(--ik-green); }

/* Buttons */
.ik-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.ik-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--ik-orange); color: #fff; border: 0; border-radius: 11px;
    padding: 14px 28px; font-weight: 800; font-size: 15.5px; letter-spacing: .01em;
    text-decoration: none; transition: background .15s ease;
}
.ik-btn:hover, .ik-btn:focus { background: var(--ik-orange-dark); color: #fff; }
.ik-btn:disabled { opacity: .7; }
.ik-btn-next { background: var(--ik-blue); }
.ik-btn-next:hover, .ik-btn-next:focus { background: var(--ik-blue-dark); }
.ik-btn-back {
    align-items: center; gap: 6px; background: none; border: 0; color: var(--ik-muted);
    font-weight: 700; font-size: 14.5px; padding: 10px 6px; border-radius: 8px;
}
.ik-btn-back:hover { color: var(--ik-ink); }
.ik-btn-ghost {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1.5px solid var(--ik-blue); color: var(--ik-blue);
    font-weight: 700; padding: 10px 18px; border-radius: 10px; white-space: nowrap; text-decoration: none;
}
.ik-btn-ghost:hover { background: var(--ik-blue); color: #fff; }
.ik-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: ik-spin .7s linear infinite; }
@keyframes ik-spin { to { transform: rotate(360deg); } }
.ik-disclosure { flex: 1 1 280px; font-size: 13px; line-height: 1.5; color: #4b5563; margin: 0; }
.ik-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin-bottom: 16px; background: #fdecec; color: #8f1d1d; }
.ik-alert[hidden] { display: none; }

/* Aside */
.ik-aside { position: sticky; top: 96px; }
.ik-onfile { list-style: none; padding: 0; margin: 0; }
.ik-onfile li { display: flex; gap: 10px; padding: 9px 0; }
.ik-onfile li + li { border-top: 1px solid #f1f3f5; }
.ik-onfile i { color: var(--ik-blue); font-size: 15px; margin-top: 1px; }
.ik-onfile-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ik-muted); }
.ik-onfile-value { font-size: 14px; color: var(--ik-ink); word-break: break-word; }
.ik-need { list-style: none; padding: 0; margin: 0; }
.ik-need li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.45; color: #374151; }
.ik-need li + li { margin-top: 10px; }
.ik-need i { color: var(--ik-blue); font-size: 17px; }
.ik-need strong { display: block; color: var(--ik-ink); }

/* Submitted */
.ik-done-icon {
    width: 56px; height: 56px; border-radius: 50%; background: var(--ik-green-tint); color: var(--ik-green);
    display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 14px;
}
.ik-timeline { list-style: none; padding: 0; margin: 20px 0 0; }
.ik-timeline li { position: relative; padding: 0 0 18px 36px; }
.ik-timeline li:last-child { padding-bottom: 0; }
.ik-timeline li::before {
    content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--ik-line);
}
.ik-timeline li:last-child::before { display: none; }
.ik-tl-dot {
    position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 13px;
    background: #f1f3f5; color: var(--ik-muted); border: 2px solid #fff;
}
.ik-timeline li.is-done .ik-tl-dot { background: var(--ik-green); color: #fff; }
.ik-timeline li.is-current .ik-tl-dot { background: var(--ik-blue); color: #fff; box-shadow: 0 0 0 4px var(--ik-blue-tint); }
.ik-tl-title { font-weight: 700; font-size: 14.5px; }
.ik-tl-sub { font-size: 13px; color: var(--ik-muted); }

.ik-details summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    font-weight: 800; font-size: 15.5px;
}
.ik-details summary::-webkit-details-marker { display: none; }
.ik-details summary i { transition: transform .2s ease; color: var(--ik-muted); }
.ik-details[open] summary i { transform: rotate(180deg); }
.ik-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 18px; }
.ik-answer-q { font-size: 12.5px; color: var(--ik-muted); line-height: 1.35; }
.ik-answer-a { font-size: 14.5px; font-weight: 700; color: var(--ik-ink); word-break: break-word; }

.ik-empty { text-align: center; padding: 48px 20px; }
.ik-empty i { font-size: 40px; color: #cbd5e1; }

@media (max-width: 991.98px) {
    .ik-aside { position: static; }
}

@media (max-width: 767.98px) {
    .ik-hero { padding: 22px 18px; border-radius: 16px; }
    .ik-hero-top { grid-template-columns: 1fr; gap: 0; }
    .ik-hero-art-wrap { display: none; }
    .ik-brand-logo { height: 38px; }
    .ik-brand-sep, .ik-brand-partner { display: none; }
    .ik-h1 { font-size: 21px; }
    .ik-lead { font-size: 14px; }
    .ik-benefits { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
    .ik-benefit { align-items: center; padding: 11px 12px; }
    .ik-progress-card { padding: 14px 12px 12px; }
    .ik-progress-count { display: block; }
    .ik-progress-label { display: none; }
    .ik-progress-dot { width: 28px; height: 28px; font-size: 12.5px; }
    .ik-progress li + li::before { top: 13px; }
    .ik-card { padding: 20px 16px; border-radius: 14px; }
    .ik-panel-title { font-size: 18px; }
    .ik-choices { grid-template-columns: 1fr; }
    .ik-answers, .ik-review-list { grid-template-columns: 1fr; }
    .ik-submit .ik-btn { width: 100%; }
    .ik-nav .ik-btn { flex: 1; }
    .ik-w-sm, .ik-w-md { max-width: none; }
    .ik-file { flex-wrap: wrap; }
    .ik-file-actions { width: 100%; }
    .ik-file-actions button { flex: 1; }
}
