/* =========================================================
   Ortak bileşenler — Temsilcilik Ağı · Hukuk Kulüpleri · Kulüp profili
   Hakkımızda tasarım sistemi (css/hakkimizda.css, .ab değişkenleri) üzerine kuruludur.
   ========================================================= */

/* ---------- Düğmeler ---------- */
.ag-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 26px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--ab-sans);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    isolation: isolate;
    transition: transform 0.35s var(--ab-ease), box-shadow 0.35s var(--ab-ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.ag-btn .ms {
    font-size: 20px;
    transition: transform 0.35s var(--ab-ease);
}

.ag-btn:hover .ms {
    transform: translateX(4px);
}

.ag-btn:active {
    transform: scale(0.97);
}

.ag-btn:focus-visible {
    outline: 2px solid #7f9ccc;
    outline-offset: 3px;
}

.ag-btn-light {
    background: #ffffff;
    color: var(--ab-navy);
}

.ag-btn-light:hover {
    box-shadow: 0 14px 30px -12px rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
}

.ag-btn-ghost {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.ag-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.ag-btn-dark {
    background: var(--ab-navy);
    color: #ffffff;
}

.ag-btn-dark:hover {
    background: #0b1c3d;
    box-shadow: 0 16px 30px -14px rgba(2, 16, 42, 0.7);
    transform: translateY(-2px);
}

.ag-btn-line {
    border-color: var(--ab-line);
    background: #ffffff;
    color: var(--ab-navy);
}

.ag-btn-line:hover {
    border-color: var(--ab-navy);
    transform: translateY(-2px);
}

.ag-btn-sm {
    height: 40px;
    padding: 0 18px;
    font-size: 13.5px;
}

.ag-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

/* Hero altında gerçek verilerden sayaçlar */
.ag-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ag-hero-facts div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ag-hero-facts strong {
    font-family: var(--ab-display);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.ag-hero-facts span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- Bölüm başlığı yardımcıları ---------- */
.ag-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
}

.ag-head-row .ab-section-head {
    margin-bottom: 0;
}

.ag-lead {
    max-width: 620px;
    margin: 20px 0 0;
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--ab-text);
}

.ag-section-soft {
    background: var(--ab-soft);
}

.ag-section-dark {
    background: var(--ab-navy);
    color: #ffffff;
}

.ag-section-dark .ab-eyebrow {
    color: rgba(255, 255, 255, 0.55);
}

.ag-section-dark .ab-h2 {
    color: #ffffff;
}

.ag-section-dark .ag-lead {
    color: rgba(255, 255, 255, 0.65);
}

/* ---------- Özellik kartları ---------- */
.ag-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.ag-card {
    position: relative;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--ab-line);
    border-radius: 28px;
    background: #ffffff;
    transition: transform 0.5s var(--ab-ease), box-shadow 0.5s var(--ab-ease), border-color 0.3s ease;
}

.ag-card.is-wide {
    grid-column: span 3;
}

.ag-card::after {
    content: '';
    position: absolute;
    inset: auto -40% -60% auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 16, 42, 0.06), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.6s var(--ab-ease);
    pointer-events: none;
}

.ag-card:hover {
    border-color: #d3d8e0;
    box-shadow: 0 30px 60px -36px rgba(2, 16, 42, 0.35);
    transform: translateY(-6px);
}

.ag-card:hover::after {
    opacity: 1;
    transform: translate(-30px, -30px);
}

.ag-card-no {
    position: absolute;
    top: 26px;
    right: 30px;
    font-family: var(--ab-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #b4bac5;
}

.ag-card-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: auto;
    border-radius: 18px;
    background: var(--ab-navy);
    color: #ffffff;
    transition: transform 0.5s var(--ab-ease), background 0.3s ease;
}

.ag-card-icon .ms {
    font-size: 26px;
}

.ag-card:hover .ag-card-icon {
    background: #ffffff;
    box-shadow: 0 0 0 1px #e4e7ec;
    color: var(--ab-navy);
    transform: rotate(-6deg) scale(1.05);
}

.ag-card h3 {
    margin: 36px 0 10px;
    font-family: var(--ab-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ab-navy);
}

.ag-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ab-text);
}

.ag-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.ag-card li {
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--ab-soft);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ab-text);
}

.ag-card.is-dark {
    border-color: transparent;
    background: var(--ab-navy);
}

.ag-card.is-dark h3 {
    color: #ffffff;
}

.ag-card.is-dark p {
    color: rgba(255, 255, 255, 0.65);
}

.ag-card.is-dark .ag-card-icon {
    background: rgba(255, 255, 255, 0.1);
}

.ag-card.is-dark li {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- Arama kutusu ---------- */
.tp-search {
    display: flex;
    flex: 1 1 320px;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 18px;
    border: 1px solid var(--ab-line);
    border-radius: 999px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tp-search:focus-within {
    border-color: var(--ab-navy);
    box-shadow: 0 0 0 4px rgba(2, 16, 42, 0.08);
}

.tp-search .ms {
    color: var(--ab-muted);
}

.tp-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: none;
    font-family: var(--ab-sans);
    font-size: 16px;
    outline: none;
}

/* ---------- Boş durum ---------- */
.ag-empty {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 28px;
    overflow: hidden;
    border: 1px dashed #cfd5de;
    border-radius: 28px;
    background: #ffffff;
    text-align: center;
}

.ag-empty-art {
    position: relative;
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin-bottom: 24px;
}

.ag-empty-art span {
    position: absolute;
    inset: 0;
    border: 1px solid #dfe3ea;
    border-radius: 50%;
    animation: agRipple 3.2s var(--ab-ease) infinite;
}

.ag-empty-art span:nth-child(2) {
    animation-delay: 1.6s;
}

.ag-empty-art .ms {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: var(--ab-navy);
    font-size: 30px;
    color: #ffffff;
}

@keyframes agRipple {
    from { transform: scale(0.6); opacity: 1; }
    to { transform: scale(1.4); opacity: 0; }
}

.ag-empty h3 {
    margin: 0;
    font-family: var(--ab-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ab-navy);
}

.ag-empty p {
    max-width: 480px;
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ab-muted);
}

.ag-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

/* ---------- SSS ---------- */
.ag-faq {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 80px;
    align-items: start;
}

.ag-faq-head {
    position: sticky;
    top: calc(var(--thb-header-h, 62px) + 40px);
}

.ag-faq-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    padding: 18px;
    border-radius: 20px;
    background: var(--ab-soft);
}

.ag-faq-contact > .ms {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--ab-navy);
    color: #ffffff;
}

.ag-faq-contact strong {
    display: block;
    font-size: 14.5px;
    color: var(--ab-navy);
}

.ag-faq-contact a {
    font-size: 14px;
    font-weight: 600;
    color: var(--ab-navy);
}

.ag-faq-list {
    border-top: 1px solid var(--ab-line);
}

.ag-faq-item {
    border-bottom: 1px solid var(--ab-line);
}

.ag-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 26px 0;
    border: 0;
    background: none;
    font-family: var(--ab-display);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ab-navy);
    text-align: left;
    cursor: pointer;
}

.ag-faq-q i {
    position: relative;
    flex: none;
    width: 36px;
    height: 36px;
    border: 1px solid var(--ab-line);
    border-radius: 50%;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.45s var(--ab-ease);
}

.ag-faq-q i::before,
.ag-faq-q i::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 1.5px;
    margin: -0.75px 0 0 -6px;
    background: var(--ab-navy);
    transition: transform 0.45s var(--ab-ease), background 0.3s ease;
}

.ag-faq-q i::after {
    transform: rotate(90deg);
}

.ag-faq-q:hover i {
    border-color: var(--ab-navy);
}

.ag-faq-item.is-open .ag-faq-q i {
    border-color: var(--ab-navy);
    background: var(--ab-navy);
    transform: rotate(180deg);
}

.ag-faq-item.is-open .ag-faq-q i::before,
.ag-faq-item.is-open .ag-faq-q i::after {
    background: #ffffff;
}

.ag-faq-item.is-open .ag-faq-q i::after {
    transform: rotate(0deg);
}

.ag-faq-a {
    height: 0;
    overflow: hidden;
    transition: height 0.45s var(--ab-ease);
}

.ag-faq-a > div {
    padding: 0 60px 26px 0;
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--ab-text);
}

.ag-faq-a p {
    margin: 0 0 10px;
}

.ag-faq-a ul {
    margin: 0;
    padding-left: 18px;
}

/* ---------- Başvuru bölümü ---------- */
.ag-apply {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
    align-items: start;
}

/* Form solda, başlık ve adımlar sağda sabit kalır */
.ag-apply-aside {
    order: 2;
    position: sticky;
    top: calc(var(--thb-header-h, 62px) + 40px);
}

.ag-steps {
    display: grid;
    gap: 4px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: agstep;
}

.ag-steps li {
    position: relative;
    display: flex;
    gap: 18px;
    padding: 16px 0;
}

.ag-steps li::before {
    counter-increment: agstep;
    content: counter(agstep, decimal-leading-zero);
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    font-family: var(--ab-display);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.ag-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 21px;
    top: 62px;
    bottom: -6px;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.ag-steps strong {
    display: block;
    margin: 2px 0 4px;
    font-size: 15.5px;
    color: #ffffff;
}

.ag-steps span {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

/* Form kartı */
.ag-form-card {
    position: relative;
    padding: 40px;
    border-radius: 32px;
    background: #ffffff;
    color: var(--ab-ink);
    box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.6);
}

.ag-form-title {
    margin: 0 0 6px;
    font-family: var(--ab-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ab-navy);
}

.ag-form-sub {
    margin: 0 0 28px;
    font-size: 14.5px;
    color: var(--ab-muted);
}

.ag-fieldset {
    margin: 0 0 28px;
    padding: 0;
    border: 0;
}

.ag-fieldset > legend {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 0;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ab-muted);
}

.ag-fieldset > legend b {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--ab-navy);
    font-size: 11px;
    letter-spacing: 0;
    color: #ffffff;
}

.ag-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ag-field {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ag-field.is-full {
    grid-column: 1 / -1;
}

.ag-field > label,
.ag-label {
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ab-navy);
}

.ag-field > label em,
.ag-label em {
    margin-left: 4px;
    font-style: normal;
    font-weight: 500;
    color: var(--ab-muted);
}

.ag-input,
.ag-textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #dde1e8;
    border-radius: 16px;
    background: #fbfbfc;
    font-family: var(--ab-sans);
    font-size: 16px;
    color: var(--ab-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.ag-textarea {
    min-height: 140px;
    padding: 14px 16px;
    line-height: 1.6;
    resize: vertical;
}

.ag-input::placeholder,
.ag-textarea::placeholder {
    color: #a3aab6;
}

.ag-input:hover,
.ag-textarea:hover {
    border-color: #c5cbd5;
}

.ag-input:focus,
.ag-textarea:focus {
    border-color: var(--ab-navy);
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 16, 42, 0.08);
}

.ag-field-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    min-height: 18px;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--ab-muted);
}

.ag-count.is-ok {
    color: #2f7d4f;
}

.ag-error {
    display: none;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: #c0392b;
}

.ag-error::before {
    content: 'error';
    font-family: 'Material Symbols Rounded';
    font-size: 15px;
    font-weight: normal;
}

.ag-field.is-invalid .ag-error {
    display: inline-flex;
}

.ag-field.is-invalid .ag-input,
.ag-field.is-invalid .ag-textarea,
.ag-field.is-invalid .ag-select-btn,
.ag-field.is-invalid .ag-drop {
    border-color: #e2a59e;
    background: #fff8f7;
}

.ag-field.is-invalid {
    animation: agShake 0.4s ease;
}

@keyframes agShake {
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Özel açılır seçici (yerel select yerine) */
.ag-select {
    position: relative;
}

.ag-select-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 14px 0 16px;
    border: 1px solid #dde1e8;
    border-radius: 16px;
    background: #fbfbfc;
    font-family: var(--ab-sans);
    font-size: 16px;
    color: var(--ab-ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ag-select-btn > span:first-child {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ag-select-btn span.is-placeholder {
    color: #a3aab6;
}

.ag-select-btn .ms {
    flex: none;
    margin-left: auto;
    font-size: 22px;
    color: var(--ab-muted);
    transition: transform 0.3s var(--ab-ease);
}

.ag-select.is-open .ag-select-btn {
    border-color: var(--ab-navy);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 16, 42, 0.08);
}

.ag-select.is-open .ag-select-btn .ms {
    transform: rotate(180deg);
}

.ag-select-pop {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    display: flex;
    flex-direction: column;
    max-height: 320px;
    padding: 8px;
    border: 1px solid var(--ab-line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 30px 60px -24px rgba(2, 16, 42, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.2s ease, transform 0.3s var(--ab-ease), visibility 0s linear 0.3s;
}

.ag-select.is-open .ag-select-pop {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.3s var(--ab-ease);
}

.ag-select-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
    margin-bottom: 6px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--ab-soft);
}

.ag-select-search .ms {
    font-size: 19px;
    color: var(--ab-muted);
}

.ag-select-search input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 0;
    background: none;
    font-family: var(--ab-sans);
    font-size: 15px;
    outline: none;
}

.ag-select-list {
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.ag-select-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14.5px;
    color: var(--ab-ink);
    cursor: pointer;
}

.ag-select-list li small {
    margin-left: auto;
    font-size: 12px;
    color: var(--ab-muted);
}

.ag-select-list li img {
    flex: none;
    width: 26px;
    height: 26px;
    padding: 2px;
    border: 1px solid var(--ab-line);
    border-radius: 8px;
    background: #ffffff;
    object-fit: contain;
}

.ag-select-list li.is-active,
.ag-select-list li:hover {
    background: var(--ab-soft);
}

.ag-select-list li[aria-selected="true"] {
    font-weight: 600;
    color: var(--ab-navy);
}

.ag-select-list li[aria-selected="true"]::after {
    content: 'check';
    margin-left: auto;
    font-family: 'Material Symbols Rounded';
    font-size: 18px;
    font-weight: normal;
}

.ag-select-list li.is-custom {
    color: var(--ab-navy);
}

.ag-select-empty {
    padding: 14px 12px;
    font-size: 14px;
    color: var(--ab-muted);
}

/* Seçenek çipleri (radyo / çoklu seçim) */
.ag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ag-chip {
    position: relative;
}

.ag-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ag-chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid #dde1e8;
    border-radius: 999px;
    background: #fbfbfc;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ab-text);
    cursor: pointer;
    transition: all 0.25s var(--ab-ease);
}

.ag-chip span:hover {
    border-color: #b9c0cb;
}

.ag-chip input:checked + span {
    border-color: var(--ab-navy);
    background: var(--ab-navy);
    color: #ffffff;
}

.ag-chip input:focus-visible + span {
    outline: 2px solid #7f9ccc;
    outline-offset: 2px;
}

/* Büyük seçim kartları (başvuru türü) */
.ag-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ag-choice label {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dde1e8;
    border-radius: 20px;
    background: #fbfbfc;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.35s var(--ab-ease);
}

.ag-choice label:hover {
    border-color: #b9c0cb;
    transform: translateY(-2px);
}

.ag-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ag-choice .ms {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #eef0f4;
    color: var(--ab-navy);
    transition: background 0.25s ease, color 0.25s ease;
}

.ag-choice strong {
    display: block;
    font-size: 15px;
    color: var(--ab-navy);
}

.ag-choice small {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ab-muted);
}

.ag-choice label:has(input:checked) {
    border-color: var(--ab-navy);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 16, 42, 0.08);
}

.ag-choice label:has(input:checked) .ms {
    background: var(--ab-navy);
    color: #ffffff;
}

.ag-choice label:has(input:focus-visible) {
    outline: 2px solid #7f9ccc;
    outline-offset: 2px;
}

/* Onay kutusu */
.ag-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ab-text);
    cursor: pointer;
}

.ag-check input {
    position: relative;
    flex: none;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 1.5px solid #c5cbd5;
    border-radius: 7px;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.ag-check input::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.25s var(--ab-ease);
}

.ag-check input:checked {
    border-color: var(--ab-navy);
    background: var(--ab-navy);
}

.ag-check input:checked::after {
    transform: rotate(45deg) scale(1);
}

.ag-check input:focus-visible {
    outline: 2px solid #7f9ccc;
    outline-offset: 2px;
}

.ag-check button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--ab-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.ag-field.is-invalid .ag-check input {
    border-color: #c0392b;
}

/* Dosya alanı */
.ag-drop {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 14px 16px;
    border: 1.5px dashed #cfd5de;
    border-radius: 18px;
    background: #fbfbfc;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ag-drop:hover,
.ag-drop.is-over {
    border-color: var(--ab-navy);
    background: #ffffff;
}

.ag-drop input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.ag-drop-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 14px;
    background: #eef0f4;
    color: var(--ab-navy);
}

.ag-drop-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.ag-drop-text {
    flex: 1;
    min-width: 0;
}

.ag-drop-text strong {
    display: block;
    overflow: hidden;
    font-size: 14.5px;
    color: var(--ab-navy);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ag-drop-text small {
    font-size: 12.5px;
    color: var(--ab-muted);
}

.ag-drop-clear {
    position: relative;
    z-index: 1;
    display: none;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--ab-soft);
    color: var(--ab-muted);
    cursor: pointer;
}

.ag-drop.has-file .ag-drop-clear {
    display: grid;
}

.ag-drop.has-file {
    border-style: solid;
    border-color: #b9dcc6;
    background: #f6fbf8;
}

/* Bot tuzağı */
.ag-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Gönder */
.ag-submit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--ab-line);
}

.ag-submit-row p {
    margin: 0;
    font-size: 13px;
    color: var(--ab-muted);
}

.ag-submit {
    min-width: 200px;
}

.ag-submit .ag-spin {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: agSpin 0.7s linear infinite;
}

.ag-submit.is-loading {
    pointer-events: none;
}

.ag-submit.is-loading .ag-spin {
    display: block;
}

.ag-submit.is-loading .ms {
    display: none;
}

@keyframes agSpin {
    to { transform: rotate(360deg); }
}

.ag-form-alert {
    display: none;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff4f2;
    font-size: 14px;
    line-height: 1.55;
    color: #8f2d22;
}

.ag-form-alert.is-visible {
    display: flex;
}

.ag-form-alert .ms {
    font-size: 21px;
}

/* Başarı durumu */
.ag-success {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 40px 8px;
    text-align: center;
}

.ag-form-card.is-done form {
    display: none;
}

.ag-form-card.is-done .ag-success {
    display: flex;
}

.ag-success-mark {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: #e9f6ee;
    color: #2f7d4f;
}

.ag-success-mark svg {
    width: 44px;
    height: 44px;
}

.ag-success-mark path {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
}

.ag-form-card.is-done .ag-success-mark path {
    animation: agDraw 0.6s 0.2s var(--ab-ease) forwards;
}

@keyframes agDraw {
    to { stroke-dashoffset: 0; }
}

.ag-success h3 {
    margin: 0;
    font-family: var(--ab-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--ab-navy);
}

.ag-success p {
    max-width: 420px;
    margin: 10px 0 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ab-muted);
}

/* ---------- KVKK penceresi ---------- */
.ag-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 16, 42, 0.55);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.ag-modal.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.ag-modal-box {
    display: flex;
    flex-direction: column;
    width: min(640px, 100%);
    max-height: min(80vh, 720px);
    border-radius: 28px;
    background: #ffffff;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.45s var(--ab-ease);
}

.ag-modal.is-open .ag-modal-box {
    transform: none;
}

.ag-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--ab-line);
}

.ag-modal-head h3 {
    margin: 0;
    font-family: var(--ab-display);
    font-size: 19px;
    font-weight: 600;
    color: var(--ab-navy);
}

.ag-modal-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--ab-soft);
    color: var(--ab-navy);
    cursor: pointer;
}

.ag-modal-body {
    padding: 24px 28px 28px;
    overflow-y: auto;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--ab-text);
}

.ag-modal-body h4 {
    margin: 18px 0 6px;
    font-size: 14.5px;
    color: var(--ab-navy);
}

.ag-modal-body p {
    margin: 0 0 10px;
}

.ag-modal-note {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f5f6f8;
    font-size: 13.5px;
    color: #3b4352;
}

/* ---------- Duyarlı ---------- */
@media (max-width: 1080px) {
    .ag-apply,
    .ag-faq {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .ag-apply-aside,
    .ag-faq-head {
        position: static;
    }

    .ag-apply-aside {
        order: 0;
    }

    .ag-card,
    .ag-card.is-wide {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .ag-hero-actions .ag-btn {
        flex: 1 1 100%;
    }

    .ag-hero-facts {
        gap: 24px 32px;
    }

    .ag-hero-facts strong {
        font-size: 24px;
    }

    .ag-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .ag-card,
    .ag-card.is-wide {
        grid-column: auto;
        min-height: 0;
    }

    .ag-card-icon {
        margin-bottom: 0;
    }

    .ag-card h3 {
        margin-top: 24px;
    }

    .ag-form-card {
        padding: 26px 20px;
        border-radius: 26px;
    }

    .ag-grid,
    .ag-choice {
        grid-template-columns: minmax(0, 1fr);
    }

    .ag-submit-row .ag-btn {
        width: 100%;
    }

    .ag-faq-q {
        padding: 22px 0;
        font-size: 16.5px;
    }

    .ag-faq-a > div {
        padding-right: 0;
    }

    .ag-select-pop {
        position: fixed;
        inset: auto 0 0;
        top: auto;
        max-height: 72vh;
        padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
        border-radius: 26px 26px 0 0;
        transform: translateY(100%);
    }

    .ag-select.is-open .ag-select-pop {
        transform: none;
    }

    .ag-select.is-open::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: 29;
        background: rgba(2, 16, 42, 0.45);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ag-empty-art span,
    .ag-field.is-invalid {
        animation: none;
    }
}

/* ---------- Başvuru: sağdaki sabit alan ekrana sığacak kadar kompakt ---------- */
@media (min-width: 1081px) {
    .ag-apply-aside {
        top: calc(var(--thb-header-h, 62px) + 28px);
    }

    .ag-apply-aside .ab-eyebrow {
        margin-bottom: 14px;
    }

    .ag-apply-aside .ab-h2 {
        font-size: clamp(28px, 2.7vw, 38px);
    }

    .ag-apply-aside .ag-lead {
        margin-top: 14px;
        font-size: 15px;
        line-height: 1.65;
    }

    .ag-apply-aside .ag-steps {
        gap: 0;
        margin-top: 26px;
    }

    .ag-apply-aside .ag-steps li {
        gap: 14px;
        padding: 9px 0;
    }

    .ag-apply-aside .ag-steps li::before {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        font-size: 12px;
    }

    .ag-apply-aside .ag-steps li:not(:last-child)::after {
        left: 17px;
        top: 47px;
        bottom: -4px;
    }

    .ag-apply-aside .ag-steps strong {
        margin: 0 0 2px;
        font-size: 14.5px;
    }

    .ag-apply-aside .ag-steps span {
        font-size: 13.5px;
        line-height: 1.5;
    }
}

.ag-field[hidden] {
    display: none;
}

/* ---------- İletişim sayfası ---------- */
.ct-hero {
    min-height: min(70vh, 640px);
}

.ct-title {
    font-size: clamp(40px, 6vw, 84px);
}

.ct-rings {
    transform-origin: 920px 360px;
}

/* Açık zeminde adım listesi */
.ct-aside .ag-steps li::before {
    border-color: #d8dde5;
    background: #ffffff;
    color: #02102a;
}

.ct-aside .ag-steps li:not(:last-child)::after {
    background: #dfe3ea;
}

.ct-aside .ag-steps strong {
    color: var(--ab-navy);
}

.ct-aside .ag-steps span {
    color: var(--ab-muted);
}

.ct-routes {
    display: grid;
    gap: 6px;
    margin-top: 22px;
}

.ct-routes-title {
    margin: 0 0 4px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ab-muted);
}

.ct-routes a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 14px 7px 8px;
    border: 1px solid var(--ab-line);
    border-radius: 16px;
    background: #ffffff;
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.35s var(--ab-ease);
}

.ct-routes a:hover {
    border-color: var(--ab-navy);
    transform: translateX(3px);
}

.ct-routes a > .ms:first-child {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: var(--ab-soft);
    font-size: 19px;
    color: var(--ab-navy);
}

.ct-routes a > span:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.ct-routes strong {
    display: block;
    font-size: 14px;
    color: var(--ab-navy);
}

.ct-routes small {
    font-size: 12px;
    color: var(--ab-muted);
}

.ct-routes a > .ms:last-child {
    font-size: 18px;
    color: #b4bac5;
}

/* Pencereler <main class="ab"> dışında: tasarım değişkenleri burada da tanımlı olmalı */
.ag-modal {
    --ab-navy: #02102a;
    --ab-ink: #0b0d12;
    --ab-text: #3b4352;
    --ab-muted: #6b7383;
    --ab-line: #e4e7ec;
    --ab-soft: #f5f6f8;
    --ab-display: 'Poppins', 'Lexend Deca', sans-serif;
    --ab-sans: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ab-ease: cubic-bezier(0.22, 1, 0.36, 1);
    font-family: var(--ab-sans);
    color: var(--ab-ink);
}

.ag-modal *,
.ag-modal *::before,
.ag-modal *::after {
    box-sizing: border-box;
}

/* =========================================================
   ORTAK FORM TABANI (tüm site) — tek çerçeve, tek odak halkası
   ========================================================= */
.ag-input, .ag-textarea, .tp-search { box-sizing: border-box; }
.ag-input:disabled, .ag-textarea:disabled { background: #f3f4f6; color: #8a92a2; cursor: not-allowed; }
.tp-search input, .tp-search input:focus { border: 0; outline: 0; box-shadow: none; background: transparent; -webkit-appearance: none; appearance: none; }
.tp-search input::-webkit-search-decoration, .tp-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.tp-search .ms { flex-shrink: 0; }
