/* === Başvuru Wizard === */

.application-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 32px;
    align-items: start;
}

/* === FORM === */
.application-form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 30px 32px;
    position: sticky; top: 130px;
    min-height: 620px;
    display: flex; flex-direction: column;
}

/* Stepper */
.stepper {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 10px;
}
.stepper__dot {
    position: relative;
    width: 30px; height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    font-size: 0.65rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    display: grid; place-items: center;
    transition: all 0.3s var(--ease-out);
    padding: 0;
}
.stepper__num { line-height: 1; }
.stepper__dot:hover { border-color: var(--color-brand-hi); color: var(--color-brand-hi); }
.stepper__dot.is-active {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0,105,174,0.25);
}
.stepper__dot.is-done {
    background: transparent;
    border-color: var(--color-brand-hi);
    color: var(--color-brand-hi);
}
.stepper__line {
    flex: 1;
    height: 1.5px;
    background: rgba(255,255,255,0.12);
    position: relative;
    top: 0;
}
.stepper__line.is-done {
    background: var(--color-brand-hi);
}

.stepper__current {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--color-brand-hi);
    text-transform: uppercase;
    margin: 8px 0 20px;
    font-weight: 700;
}

/* Wizard step */
.wizard-step {
    display: none;
    animation: stepIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.wizard-step.is-active {
    display: block;
}
@keyframes stepIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.wizard-title {
    font-size: 1.3rem;
    margin: 0 0 18px;
    color: #fff;
}

.application-form .field { margin-bottom: 14px; }
.application-form .row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}
.field__hint-inline {
    font-size: 0.7rem;
    color: var(--color-muted);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: none;
    margin-left: 4px;
}

.range-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, var(--color-brand) var(--progress, 50%), rgba(255,255,255,0.08) var(--progress, 50%));
    border-radius: 4px;
    outline: none;
    margin-top: 10px;
    cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--color-brand-hi);
    border: 2px solid var(--color-bg);
    box-shadow: 0 2px 6px rgba(0,105,174,0.55);
    cursor: pointer;
}
.range-slider::-moz-range-thumb {
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--color-brand-hi);
    border: 2px solid var(--color-bg);
    cursor: pointer;
}

/* Chip (radio/checkbox group) */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}
.chip input { display: none; }
.chip:hover { border-color: var(--color-brand-hi); color: var(--color-brand-hi); }
.chip.is-active {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,105,174,0.4);
}

/* Checkbox */
.checkbox {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--color-text);
    text-transform: none;
    letter-spacing: 0;
    margin: 6px 0;
}
.checkbox input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--color-brand);
}

/* Type cards (Step 2) */
.type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.type-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.25s;
}
.type-card input { display: none; }
.type-card:hover { border-color: var(--color-brand-hi); }
.type-card.is-active {
    background: rgba(0,105,174,0.18);
    border-color: var(--color-brand);
    box-shadow: 0 6px 20px rgba(0,105,174,0.3);
}
.type-card__icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(0,105,174,0.15);
    color: var(--color-brand-hi);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.type-card__icon svg { width: 26px; height: 26px; }
.type-card strong { display: block; font-size: 0.95rem; color: #fff; margin-bottom: 2px; }
.type-card span { color: var(--color-muted); font-size: 0.78rem; }

.info-note {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(0,105,174,0.1);
    border: 1px solid rgba(0,105,174,0.3);
    border-radius: 8px;
    color: var(--color-muted);
    font-size: 0.82rem;
}
.info-note strong { color: #fff; }

/* Uploader */
.uploader-box {
    position: relative;
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 22px 20px;
    text-align: center;
    background: rgba(255,255,255,0.02);
    transition: all 0.25s;
}
.uploader-box:hover { border-color: var(--color-brand-hi); background: rgba(0,105,174,0.08); }
.uploader-box input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.uploader-box label {
    display: block;
    cursor: pointer;
    color: var(--color-text);
}
.uploader-box label small { color: var(--color-muted); font-size: 0.78rem; }
.uploader-box__list {
    margin-top: 12px;
    display: flex; flex-wrap: wrap; gap: 6px;
    justify-content: center;
}
.uploader-box__list span {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,105,174,0.2);
    font-size: 0.78rem;
    color: #fff;
}

/* Navigation */
.wizard-nav {
    margin-top: auto;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--color-border);
}
.wizard-nav .btn {
    padding: 10px 22px;
    font-size: 0.88rem;
}
.wizard-nav .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* === CANVAS === */
.application-canvas {
    background: linear-gradient(180deg, #0a0f17 0%, #050a12 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 720px;
    display: flex;
    flex-direction: column;
    position: sticky; top: 130px;
}
.application-canvas__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(0,105,174,0.08);
}
.application-canvas__title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}
.application-canvas__sub {
    font-size: 0.76rem;
    color: var(--color-muted);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.04em;
}
.application-canvas__scale {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: var(--color-brand-hi);
    padding: 5px 12px;
    border: 1px solid var(--color-brand);
    border-radius: 6px;
    letter-spacing: 0.08em;
}

.application-canvas__stage {
    flex: 1;
    padding: 16px;
    background: radial-gradient(ellipse at center, rgba(0,105,174,0.08), transparent 70%);
}
.application-canvas__stage svg {
    width: 100%; height: 100%; max-height: 600px;
    display: block;
}

#app-svg .floor,
#app-svg .basement {
    fill: rgba(0,105,174,0.45);
    stroke: #3fa3e0;
    stroke-width: 1.2;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
#app-svg .basement {
    fill: rgba(30,40,55,0.55);
    stroke: #5a6472;
    stroke-dasharray: 4 3;
}
#app-svg .lot-outline {
    fill: rgba(63,163,224,0.05);
    stroke: rgba(63,163,224,0.6);
    stroke-width: 1.2;
    stroke-dasharray: 5 3;
}
#app-svg .apt-line {
    stroke: rgba(100,190,255,0.5);
    stroke-width: 0.8;
    stroke-dasharray: 2 2;
}
#app-svg .roof-line {
    fill: rgba(100,190,255,0.25);
    stroke: #3fa3e0;
    stroke-width: 1.2;
}
#app-svg .dim-arrow {
    stroke: rgba(63,163,224,0.6);
    stroke-width: 0.8;
    fill: none;
}
#app-svg .dim-text {
    fill: rgba(63,163,224,0.85);
    font-family: 'Courier New', monospace;
    font-size: 9.5px;
    letter-spacing: 0.1em;
}
#app-svg .parking-car {
    fill: rgba(100,190,255,0.45);
    stroke: rgba(155,220,255,0.7);
    stroke-width: 0.5;
}
#app-svg .amenity {
    fill: rgba(155,220,255,0.2);
    stroke: rgba(155,220,255,0.75);
    stroke-width: 0.8;
}
#app-svg .amenity-icon {
    font-size: 14px;
}
#app-svg .floor-label,
#app-svg .basement-label {
    fill: rgba(255,255,255,0.6);
    font-family: 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
}

/* Legend */
.application-canvas__legend {
    display: flex; gap: 18px; flex-wrap: wrap;
    padding: 12px 24px;
    border-top: 1px solid var(--color-border);
    font-size: 0.74rem;
    color: var(--color-muted);
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot {
    width: 12px; height: 12px; border-radius: 3px;
    border: 1px solid;
}
.legend-dot--floor      { background: rgba(0,105,174,0.5); border-color: #3fa3e0; }
.legend-dot--basement   { background: rgba(30,40,55,0.55); border-color: #5a6472; }
.legend-dot--apartment  { background: transparent; border-color: rgba(100,190,255,0.6); border-style: dashed; }
.legend-dot--amenity    { background: rgba(155,220,255,0.2); border-color: rgba(155,220,255,0.75); }

@media (max-width: 1100px) {
    .application-grid { grid-template-columns: 1fr; }
    .application-form,
    .application-canvas { position: static; }
}

@media (max-width: 600px) {
    .type-cards { grid-template-columns: 1fr; }
    .stepper__dot { width: 24px; height: 24px; }
    .stepper__dot .stepper__num { font-size: 0.55rem; }
}
