/* TamGO Fiyat Hesaplama Modülü */
.pc-wrap { position: relative; width: 100%; }
.pc-wrap--full { max-width: 1100px; margin: 0 auto; }
.pc-wrap--homepage { max-width: 100%; margin: 0 auto; }
.pc-wrap--sidebar { font-size: 14px; }
.pc-wrap--inline { font-size: 14px; }

.pc-hero {
    background: linear-gradient(135deg, #1F1F1F 0%, #2d2d2d 55%, #1a1a1a 100%);
    border-radius: 24px;
    padding: 28px 28px 0;
    position: relative;
    overflow: hidden;
}
.pc-hero::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(245,184,0,.25) 0%, transparent 70%);
    pointer-events: none;
}
.pc-hero__title {
    color: #fff;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
    max-width: 640px;
}
.pc-hero__desc { color: rgba(255,255,255,.72); font-size: 14px; margin: 0 0 20px; max-width: 560px; }

.pc-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.pc-tab {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 16px 16px 0 0;
    font-weight: 600;
    font-size: 14px;
    transition: all .2s ease;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
}
.pc-tab i { font-size: 16px; opacity: .9; }
.pc-tab:hover { background: rgba(255,255,255,.14); color: #fff; }
.pc-tab.is-active {
    background: #fff;
    color: #1F1F1F;
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}

.pc-panel {
    background: #fff;
    border-radius: 0 20px 20px 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
    padding: 24px;
    position: relative;
    z-index: 2;
    overflow: visible;
}
.pc-form-grid { overflow: visible; }
.pc-wrap--sidebar .pc-panel { border-radius: 16px; padding: 0; box-shadow: none; background: transparent; }
.pc-wrap--sidebar .pc-hero { display: none; }
.pc-wrap--sidebar .pc-tabs { margin-bottom: 0; }
.pc-wrap--sidebar .pc-tab { border-radius: 10px; padding: 10px 12px; font-size: 12px; background: #f5f5f5; color: #555; }
.pc-wrap--sidebar .pc-tab.is-active { background: #F5B800; color: #1F1F1F; }

/* Homepage variant */
.pc-wrap--homepage .pc-hero {
    border-radius: 28px 28px 0 0;
    padding: 32px 32px 0;
}
.pc-wrap--homepage .pc-panel {
    border-radius: 0 0 28px 28px;
    padding: 28px;
}
@media (max-width: 768px) {
    .pc-wrap--homepage .pc-hero { padding: 22px 18px 0; border-radius: 20px 20px 0 0; }
    .pc-wrap--homepage .pc-panel { padding: 18px; border-radius: 0 0 20px 20px; }
}

/* Inline (article) variant */
.pc-compact-head { margin-bottom: 12px; }
.pc-compact-head__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1F1F1F;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pc-compact-head__title i { color: #F5B800; }
.pc-compact-head__desc { font-size: 13px; color: #666; margin: 0 0 4px; line-height: 1.45; }
.pc-wrap--inline .pc-panel { padding: 0; box-shadow: none; background: transparent; border-radius: 0; }
.pc-wrap--inline .pc-tabs { margin-bottom: 12px; }
.pc-wrap--inline .pc-tab {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    background: #fff;
    color: #555;
    border: 1px solid #eee;
}
.pc-wrap--inline .pc-tab.is-active { background: #F5B800; color: #1F1F1F; border-color: #F5B800; }
.pc-wrap--inline .pc-form-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.pc-wrap--inline .pc-btn { width: 100%; }
@media (max-width: 640px) {
    .pc-wrap--inline .pc-form-grid { grid-template-columns: 1fr; }
}

.pc-subtypes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.pc-subtype {
    border: 1px solid #eee;
    background: #fafafa;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    font-size: 12px;
    font-weight: 600;
    color: #444;
}
.pc-subtype i { display: block; font-size: 22px; color: #F5B800; margin-bottom: 6px; }
.pc-subtype.is-active, .pc-subtype:hover { border-color: #F5B800; background: #FFFBEB; color: #1F1F1F; }

.pc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}
.pc-wrap--sidebar .pc-form-grid { grid-template-columns: 1fr; }
@media (max-width: 768px) {
    .pc-form-grid { grid-template-columns: 1fr; }
    .pc-panel { border-radius: 0 0 20px 20px; }
}

.pc-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
}
.pc-field input:focus, .pc-field select:focus {
    border-color: #F5B800;
    box-shadow: 0 0 0 3px rgba(245,184,0,.15);
}

.pc-autocomplete { position: relative; z-index: 20; }

.pc-ac-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 9999;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,.14), 0 0 0 1px rgba(245,184,0,.08);
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px;
}
.pc-ac-list.is-open { display: block; }

/* Fixed-position dropdown (portaled to body — avoids overlap on mobile/sidebar) */
.pc-ac-list--fixed {
    display: none;
    position: fixed;
    z-index: 99999;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.18), 0 0 0 1px rgba(245,184,0,.08);
    overflow: auto;
    padding: 6px;
    -webkit-overflow-scrolling: touch;
}
.pc-ac-list--fixed.is-open { display: block; }
.pc-autocomplete-open { z-index: 99990 !important; position: relative; }

.pc-panel,
.pc-form-grid,
.pc-wrap,
.pc-wrap--sidebar,
.pc-wrap--inline,
.pc-wrap--homepage { overflow: visible !important; }

.pc-ac-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 10px;
    transition: background .15s;
}
.pc-ac-item:last-child { margin-bottom: 0; }
.pc-ac-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: #FFFBEB; color: #F5B800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 13px;
}
.pc-ac-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pc-ac-title {
    font-size: 13px; font-weight: 600; color: #1F1F1F;
    line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.pc-ac-subtitle {
    font-size: 11px; color: #888; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-ac-item:hover,
.pc-ac-item.is-active { background: #FFFBEB; }

.pc-field input.pc-address-selected {
    border-color: #F5B800;
    background: #FFFDF5;
}

.pc-summary__note {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #b8860b;
    margin-top: 4px;
    text-transform: none;
    letter-spacing: 0;
}

.pc-ac-empty,
.pc-ac-loading {
    padding: 12px 14px;
    font-size: 12px;
    color: #888;
}
.pc-ac-loading { display: flex; align-items: center; gap: 8px; }

.pc-field-hint {
    display: block;
    font-size: 10px;
    color: #999;
    margin-top: 5px;
}

.pc-field input, .pc-field select {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
}
.pc-field input:focus, .pc-field select:focus {
    border-color: #F5B800;
    box-shadow: 0 0 0 3px rgba(245,184,0,.15);
}

.pc-btn {
    appearance: none;
    border: 0;
    border-radius: 12px;
    background: #F5B800;
    color: #1F1F1F;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 22px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s, background .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
}
.pc-btn:hover { background: #e5aa00; transform: translateY(-1px); }
.pc-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.pc-wrap--sidebar .pc-btn { width: 100%; }

.pc-dims-toggle {
    font-size: 12px;
    color: #F5B800;
    cursor: pointer;
    font-weight: 600;
    margin: -4px 0 10px;
    display: inline-block;
}
.pc-dims { display: none; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pc-dims.is-open { display: grid; }
.pc-wrap--sidebar .pc-dims { grid-template-columns: 1fr; }

.pc-results { margin-top: 22px; display: none; }
.pc-results.is-visible { display: block; animation: pcFadeIn .35s ease; }
@keyframes pcFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pc-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.pc-summary__item {
    flex: 1 1 140px;
    background: #FFFBEB;
    border: 1px solid rgba(245,184,0,.25);
    border-radius: 14px;
    padding: 14px 16px;
}
.pc-summary__label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #888; font-weight: 600; }
.pc-summary__value { font-size: 20px; font-weight: 700; color: #1F1F1F; margin-top: 4px; }

.pc-quote-list { display: grid; gap: 10px; }
.pc-quote {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #eee;
    border-radius: 16px;
    background: #fff;
    transition: box-shadow .2s, border-color .2s;
}
.pc-quote:hover { border-color: #F5B800; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.pc-quote.is-best { border-color: #F5B800; background: linear-gradient(90deg, #FFFBEB, #fff); }
.pc-quote__logo {
    width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
    background: #f5f5f5; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #F5B800; font-size: 18px;
}
.pc-quote__body { flex: 1; min-width: 0; }
.pc-quote__name { font-weight: 700; color: #1F1F1F; font-size: 15px; }
.pc-quote__meta { font-size: 12px; color: #888; margin-top: 2px; }
.pc-quote__price { font-size: 22px; font-weight: 800; color: #1F1F1F; white-space: nowrap; }
.pc-quote__badge {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    background: #F5B800; color: #1F1F1F; padding: 3px 8px; border-radius: 999px; margin-left: 8px;
}

.pc-error {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
    display: none;
}
.pc-error.is-visible { display: block; }

.pc-loading {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(31,31,31,.2);
    border-top-color: #1F1F1F;
    border-radius: 50%;
    animation: pcSpin .7s linear infinite;
}
@keyframes pcSpin { to { transform: rotate(360deg); } }

.pc-wrap--sidebar .pc-ac-list { z-index: 100; }

.pc-pane { display: none; }
.pc-pane.is-active { display: block; }
