/* =========================================================
   AYC Proje Talep Formu - v2.0
   Kurumsal lacivert kimlik, modern, responsive
   ========================================================= */

.aypt-wrap {
    --ayc-navy: #1B2C5B;
    --ayc-navy-dark: #14224a;
    --ayc-navy-light: #2a3f73;
    --ayc-accent: #C9A24B;        /* altın aksan (AYC logosundaki sarı) */
    --ayc-bg: #f7f8fa;
    --ayc-card: #ffffff;
    --ayc-line: #e3e7ee;
    --ayc-text: #1f2430;
    --ayc-muted: #6b7280;
    --ayc-success: #1f9d57;
    --ayc-radius: 14px;
    --ayc-shadow: 0 6px 24px rgba(27,44,91,0.08);
    --ayc-shadow-hover: 0 14px 40px rgba(27,44,91,0.16);

    max-width: 920px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ayc-text);
    background: var(--ayc-bg);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--ayc-shadow);
}

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

/* ---------- Üst bar ---------- */
.aypt-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background: var(--ayc-navy);
    color: #fff;
}
.aypt-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}
.aypt-brand span { color: var(--ayc-accent); }

.aypt-langbar { display: flex; gap: 6px; }
.aypt-langbtn {
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}
.aypt-langbtn:hover { background: rgba(255,255,255,0.15); }
.aypt-langbtn.active { background: var(--ayc-accent); border-color: var(--ayc-accent); color: var(--ayc-navy); }

/* ---------- İlerleme çubuğu ---------- */
.aypt-progress {
    display: flex;
    align-items: center;
    padding: 24px 28px 8px;
    background: #fff;
    border-bottom: 1px solid var(--ayc-line);
}
.aypt-pstep {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: .5;
    transition: opacity .3s;
}
.aypt-pnum {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--ayc-line);
    color: var(--ayc-muted);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    flex-shrink: 0;
    transition: all .3s;
}
.aypt-plabel { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.aypt-pline {
    flex: 1;
    height: 2px;
    background: var(--ayc-line);
    margin: 0 12px;
    transition: background .3s;
}
.aypt-pstep.active { opacity: 1; }
.aypt-pstep.active .aypt-pnum { background: var(--ayc-navy); color: #fff; }
.aypt-pstep.done { opacity: 1; }
.aypt-pstep.done .aypt-pnum { background: var(--ayc-success); color: #fff; }
.aypt-pstep.done .aypt-pnum::after { content: "✓"; }
.aypt-pstep.done .aypt-pnum span { display: none; }

/* ---------- Paneller ---------- */
.aypt-form { padding: 30px 28px 28px; }
.aypt-panel { display: none; animation: ayptFade .35s ease; }
.aypt-panel.active { display: block; }
@keyframes ayptFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.aypt-h2 {
    font-size: 25px; font-weight: 800;
    margin: 0 0 6px; color: var(--ayc-navy);
}
.aypt-sub { font-size: 15px; color: var(--ayc-muted); margin: 0 0 26px; }
.aypt-h3 {
    font-size: 18px; font-weight: 700;
    margin: 0 0 18px; color: var(--ayc-navy);
    padding-left: 12px;
    border-left: 3px solid var(--ayc-accent);
}

/* ---------- Adım 1: Hizmet kartları ---------- */
.aypt-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.aypt-card {
    position: relative;
    background: var(--ayc-card);
    border: 1.5px solid var(--ayc-line);
    border-radius: var(--ayc-radius);
    padding: 28px 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    overflow: hidden;
}
.aypt-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--ayc-accent);
    transform: scaleX(0);
    transition: transform .25s;
}
.aypt-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ayc-shadow-hover);
    border-color: var(--ayc-navy);
}
.aypt-card:hover::before { transform: scaleX(1); }
.aypt-card.selected {
    border-color: var(--ayc-navy);
    box-shadow: var(--ayc-shadow-hover);
}
.aypt-card.selected::before { transform: scaleX(1); }
.aypt-card-icon { font-size: 36px; line-height: 1; }
.aypt-card-label {
    font-size: 15px; font-weight: 700;
    color: var(--ayc-navy);
    line-height: 1.35;
}

/* ---------- Adım 2: Teknik detaylar ---------- */
.aypt-selected-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff8e8;
    border: 1.5px solid var(--ayc-accent);
    border-radius: 10px;
    padding: 10px 18px;
    margin-bottom: 22px;
    font-weight: 700;
    color: var(--ayc-navy);
}
.aypt-sel-icon { font-size: 20px; }
.aypt-tech-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.aypt-tech-unit { grid-column: 1 / -1; }

/* ---------- Form alanları ---------- */
.aypt-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--ayc-text);
}
.aypt-req { color: #d33; }
.aypt-hint { font-size: 13px; color: var(--ayc-muted); margin: 0 0 10px; }
.aypt-input, .aypt-textarea {
    width: 100%;
    border: 1.5px solid var(--ayc-line);
    border-radius: 9px;
    padding: 11px 14px;
    font-size: 14.5px;
    color: var(--ayc-text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}
.aypt-input:focus, .aypt-textarea:focus {
    outline: none;
    border-color: var(--ayc-navy);
    box-shadow: 0 0 0 3px rgba(27,44,91,0.1);
}
.aypt-textarea { resize: vertical; min-height: 90px; }
select.aypt-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231B2C5B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.aypt-wrap[dir="rtl"] select.aypt-input {
    background-position: left 14px center;
    padding-right: 14px; padding-left: 36px;
}
.aypt-input.aypt-err, .aypt-textarea.aypt-err {
    border-color: #d33;
    box-shadow: 0 0 0 3px rgba(221,51,51,0.1);
}

/* ---------- Adım 3: Harita & dosya ---------- */
.aypt-map {
    width: 100%;
    height: 320px;
    border-radius: var(--ayc-radius);
    border: 1.5px solid var(--ayc-line);
    overflow: hidden;
    z-index: 1;
}
.aypt-coords {
    margin-top: 10px;
    font-size: 13.5px;
    color: var(--ayc-navy);
    font-weight: 600;
    background: #eef1f7;
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-block;
}
.aypt-file-drop {
    position: relative;
    border: 2px dashed var(--ayc-line);
    border-radius: var(--ayc-radius);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.aypt-file-drop:hover, .aypt-file-drop.dragover {
    border-color: var(--ayc-navy);
    background: #f0f3fa;
}
.aypt-file-icon { font-size: 30px; }
.aypt-file-text { font-size: 14px; color: var(--ayc-muted); }
.aypt-file-name { font-size: 14px; font-weight: 700; color: var(--ayc-navy); }
.aypt-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%; height: 100%;
}

/* ---------- Adım 4: Özet ---------- */
.aypt-summary {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--ayc-line);
    border-radius: var(--ayc-radius);
    overflow: hidden;
    margin-bottom: 24px;
}
.aypt-summary th, .aypt-summary td {
    text-align: start;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ayc-line);
    font-size: 14px;
    vertical-align: top;
}
.aypt-summary th {
    width: 32%;
    background: #f4f6fa;
    color: var(--ayc-navy);
    font-weight: 700;
}
.aypt-summary tr:last-child th,
.aypt-summary tr:last-child td { border-bottom: none; }
.aypt-sum-map-preview {
    width: 100%; max-width: 280px;
    height: 120px; border-radius: 8px;
    border: 1px solid var(--ayc-line);
    margin-top: 6px;
}
.aypt-doc-badge {
    display: inline-block;
    background: var(--ayc-navy);
    color: #fff;
    font-size: 12px; font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.aypt-contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ---------- Başarı kutusu ---------- */
.aypt-success-box {
    text-align: center;
    padding: 30px 20px;
    background: #f0faf4;
    border: 1.5px solid var(--ayc-success);
    border-radius: var(--ayc-radius);
    margin-top: 20px;
}
.aypt-success-icon {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--ayc-success);
    color: #fff;
    font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
}
.aypt-success-text { font-size: 16px; font-weight: 600; color: #166e3e; margin: 0 0 18px; }
.aypt-pdf-btn {
    display: inline-block;
    background: var(--ayc-navy);
    color: #fff !important;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 14.5px;
    transition: background .2s;
}
.aypt-pdf-btn:hover { background: var(--ayc-navy-dark); }

/* ---------- Mesaj ---------- */
.aypt-message {
    margin: 18px 0 0;
    padding: 12px 16px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
}
.aypt-message.err { background: #fdecec; color: #c0392b; border: 1px solid #f5c6cb; }
.aypt-message.ok  { background: #eafaf935; color: #166e3e; border: 1px solid #b7e4c7; }

/* ---------- Navigasyon ---------- */
.aypt-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--ayc-line);
}
.aypt-btn {
    border: none;
    border-radius: 9px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.aypt-back {
    background: #fff;
    color: var(--ayc-navy);
    border: 1.5px solid var(--ayc-line);
}
.aypt-back:hover { border-color: var(--ayc-navy); }
.aypt-primary {
    background: var(--ayc-navy);
    color: #fff;
    margin-inline-start: auto;
}
.aypt-primary:hover { background: var(--ayc-navy-dark); transform: translateY(-1px); }
.aypt-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .aypt-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .aypt-tech-fields { grid-template-columns: 1fr; }
    .aypt-contact { grid-template-columns: 1fr; }
    .aypt-progress { padding: 18px 16px 6px; overflow-x: auto; }
    .aypt-plabel { display: none; }        /* mobilde sadece numaralar */
    .aypt-pline { margin: 0 6px; }
    .aypt-form { padding: 22px 16px; }
    .aypt-topbar { padding: 14px 18px; }
    .aypt-h2 { font-size: 21px; }
    .aypt-map { height: 260px; }
}
@media (max-width: 440px) {
    .aypt-cards { grid-template-columns: 1fr; }
}
