/* ============================================================
   app.css — Kejaksaan Negeri Jeneponto
   Semua global style dipindahkan dari <style> di layouts/app.blade.php
   ============================================================ */

/* ── CSS Variables ── */
:root {
    --teal-deep:   #0a201a;
    --teal-dark:   #143d2e;
    --teal-mid:    #1a5c40;
    --teal-accent: #2a7a5a;
    --teal-bright: #3a9e72;
    --teal-light:  #e8f5ee;
    --sage-bg:     #f0f7f3;
    --sage-card:   #e4f0e9;
    --sage-border: #c5dece;
    --gold:        #b8943a;
    --gold-light:  #d4ac56;
    --gold-pale:   #f5ecd0;
    --text-dark:   #0d2b22;
    --text-body:   #2d4a3e;
    --text-muted:  #6b9080;
    --text-light:  #f0f7f3;
    --font-display: 'Cinzel', serif;
    --font-body:    'Barlow', sans-serif;
}

/* ── Reset Cursor ── */
* { cursor: none !important; }

/* ── Body & Typography ── */
body {
    font-family: var(--font-body);
    background: var(--sage-bg);
    color: var(--text-body);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--text-dark);
}

/* ── Scrollbar ── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: #e8f5ee; }
::-webkit-scrollbar-thumb { background: var(--teal-accent); border-radius: 3px; }

/* ── Custom Cursor ── */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: #2a7a5a;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(42, 122, 90, 0.55);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: all 0.12s ease-out;
}

.custom-cursor.cursor-hover    { width: 18px; height: 18px; background: #1a5c40; }
.custom-cursor-ring.ring-hover { width: 50px; height: 50px; border-color: rgba(42, 122, 90, 0.8); }

/* ── Navbar ── */
.navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 32, 26, 0.97);
    border-bottom: 1px solid rgba(42, 122, 90, 0.25);
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--teal-accent);
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-body);
}

.btn-primary:hover {
    background: var(--teal-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 122, 90, 0.35);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border: 1.5px solid rgba(42, 122, 90, 0.5);
    color: rgba(232, 245, 238, 0.9);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    background: transparent;
    font-family: var(--font-body);
}

.btn-outline:hover {
    background: rgba(42, 122, 90, 0.15);
    border-color: rgba(42, 122, 90, 0.8);
    color: white;
}

/* ── Cards ── */
.card-kejaksaan {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--sage-border);
    box-shadow: 0 1px 3px rgba(42, 122, 90, 0.08);
    transition: all 0.25s;
    overflow: hidden;
}

.card-kejaksaan:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(42, 122, 90, 0.15);
}

/* ── Dividers ── */
.teal-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal-accent), transparent);
}

.gold-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    border-width: 1px;
}

/* ── Table ── */
.table-kejaksaan {
    width: 100%;
    border-collapse: collapse;
}

.table-kejaksaan th {
    padding: 0.875rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    background: var(--teal-dark);
    border-bottom: none;
    text-align: left;
    font-family: var(--font-display);
}

.table-kejaksaan td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(197, 222, 206, 0.5);
    vertical-align: middle;
}

.table-kejaksaan tr:hover td { background: var(--sage-bg); }

/* ── Gradients ── */
.gradient-teal {
    background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-mid) 100%);
}

/* ── Hero Section ── */
.hero-section {
    background:
        radial-gradient(ellipse at 15% 50%, rgba(42, 122, 90, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(42, 122, 90, 0.10) 0%, transparent 50%),
        linear-gradient(180deg, #0a201a 0%, #0d2b22 55%, #143d2e 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Grid lines overlay */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent, transparent 2px,
        rgba(42, 122, 90, 0.025) 2px, rgba(42, 122, 90, 0.025) 4px
    );
    pointer-events: none;
    z-index: 0;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.8;
}

.hero-glow {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
}

.hero-glow--left  {
    left: 0;
    top: 33%;
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, rgba(42, 122, 90, 0.22) 0%, transparent 70%);
    transform: translate(-40%, -30%);
}

.hero-glow--right {
    right: 0;
    bottom: 25%;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(58, 158, 114, 0.08) 0%, transparent 70%);
    transform: translate(30%, 20%);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.15;
}

.hero-title--white { color: #ffffff; }
.hero-title--gold  { color: #d4ac56; }

.hero-description { color: rgba(232, 245, 238, 0.82); }

/* ── Photo Slider ── */
.hero-photo-container {
    position: relative;
    width: 420px;
    height: 440px;
}

@media (max-width: 640px) {
    .hero-photo-container {
        width: 100%;
        max-width: 340px;
        height: 360px;
    }
}

.hero-slide { position: absolute; inset: 0; }

.hero-slide--active   { opacity: 1; z-index: 2; transition: opacity 0.7s ease-in; }
.hero-slide--inactive { opacity: 0; z-index: 1; transition: opacity 0.5s ease-out; }

.hero-label-wrapper {
    position: absolute;
    inset-inline: 0;
    bottom: 24px;
    z-index: 20;
    text-align: center;
    pointer-events: none;
}

.hero-label {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    transition: opacity 0.25s, transform 0.25s;
}

.hero-label--active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.hero-label--inactive {
    opacity: 0;
    transform: translateY(6px);
}

.hero-label__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
    margin-bottom: 2px;
}

.hero-label__title {
    font-size: 0.75rem;
    color: rgba(200, 230, 215, 0.65);
    letter-spacing: 0.04em;
}

.hero-dot {
    height: 5px;
    width: 5px;
    border-radius: 50%;
    background: rgba(42, 122, 90, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.35s, background 0.35s, border-radius 0.35s;
}

.hero-dot--active {
    width: 24px;
    border-radius: 3px;
    background: #2a7a5a;
}

.hero-motto {
    margin-top: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-display);
}

/* ── Prose Berita ── */
.prose-berita p      { margin-bottom: 1.25rem; line-height: 1.9; }
.prose-berita strong { font-weight: 600; color: #1a1a1a; }
.prose-berita ul,
.prose-berita ol     { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose-berita li     { margin-bottom: 0.5rem; }

.prose-berita h2,
.prose-berita h3 {
    font-weight: 700;
    color: #0a2e1a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* ── Developer Credit ── */
.dev-credit {
    color: rgba(107, 144, 128, 0.5);
    text-decoration: underline;
    text-decoration-color: rgba(212, 172, 86, 0.3);
    text-underline-offset: 3px;
    transition: color 0.25s, text-decoration-color 0.25s;
}

.dev-credit:hover {
    color: #d4ac56;
    text-decoration-color: #d4ac56;
}

/* ── Iklan Popup Animation ── */
@keyframes iklanStrip {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* ── Pagination Button ── */
.page-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid #c5dece;
    color: #2d4a3e;
    background: white;
}

.page-btn.active {
    background: linear-gradient(135deg, #0a2e1a, #155230);
    color: white;
    border-color: transparent;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ── Grid ── */
.peng-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .peng-grid { grid-template-columns: 1fr 1fr; } }

/* ── Section Title ── */
.kontak-section-title {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.5rem; font-weight: 700;
    color: #0a2e1a; margin-bottom: 1.5rem;
}

/* ── Contact Cards ── */
.kontak-cards { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.kontak-card {
    display: flex; align-items: flex-start; gap: 1rem;
    background: #fff; padding: 1.25rem;
    border-radius: 0.75rem; border: 1px solid #fef9c3;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kontak-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.kontak-card__icon {
    width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.kontak-card__icon--red    { background: #fef2f2; }
.kontak-card__icon--red    .kontak-icon { color: #ef4444; }
.kontak-card__icon--green  { background: #f0fdf4; }
.kontak-card__icon--green  .kontak-icon { color: #16a34a; }
.kontak-card__icon--blue   { background: #eff6ff; }
.kontak-card__icon--blue   .kontak-icon { color: #3b82f6; }
.kontak-card__icon--yellow { background: #fefce8; }
.kontak-card__icon--yellow .kontak-icon { color: #ca8a04; }
.kontak-icon { width: 1.25rem; height: 1.25rem; }
.kontak-card__label {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: #9ca3af; margin-bottom: 0.25rem;
}
.kontak-card__value { font-size: 0.875rem; color: #1f2937; font-weight: 500; line-height: 1.5; }

/* ── Map Card ── */
.kontak-map {
    border-radius: 0.75rem; border: 1px solid #fef9c3;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    padding: 2rem 1.5rem; text-align: center;
    background: linear-gradient(135deg, #0a2e1a, #1a6b3c);
    min-height: 13rem; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.kontak-map__icon  { width: 2.5rem; height: 2.5rem; color: #facc15; margin-bottom: 0.5rem; }
.kontak-map__name  { color: #d1fae5; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.kontak-map__addr  { color: #6b7280; font-size: 0.75rem; margin-bottom: 0.75rem; }
.kontak-map__link  { font-size: 0.75rem; color: #facc15; text-decoration: underline; transition: color 0.2s; }
.kontak-map__link:hover { color: #fde68a; }

/* ── Form Wrapper ── */
.kontak-form-wrap {
    background: #fff; border-radius: 1rem; padding: 2rem;
    border: 1px solid #fef9c3; box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.kontak-form { display: flex; flex-direction: column; gap: 1.25rem; }
.kontak-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .kontak-form__row { grid-template-columns: 1fr; } }
.kontak-form__field { display: flex; flex-direction: column; }
.kontak-form__label { font-size: 0.875rem; font-weight: 600; color: #374151; margin-bottom: 0.375rem; }
.kontak-form__req { color: #f87171; }
.kontak-form__optional { font-weight: 400; font-size: 0.8em; color: #9ca3af; margin-left: 0.2rem; }
.kontak-form__input,
.kontak-form__textarea {
    width: 100%; padding: 0.625rem 0.75rem;
    border: 1px solid #e5e7eb; border-radius: 0.5rem;
    font-size: 0.875rem; color: #111827; background: #fff;
    outline: none; transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font-body, 'Barlow', sans-serif); box-sizing: border-box;
}
.kontak-form__input::placeholder,
.kontak-form__textarea::placeholder { color: #d1d5db; }
.kontak-form__input:focus,
.kontak-form__textarea:focus {
    border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.12);
}
.kontak-form__input--error { border-color: #fca5a5 !important; background: #fef2f2 !important; }
.kontak-form__textarea { resize: none; }

/* ── Phone Input ── */
.kontak-phone {
    position: relative;
    display: flex; align-items: stretch;
    border: 1px solid #e5e7eb; border-radius: 0.5rem;
    overflow: visible; transition: border-color 0.2s, box-shadow 0.2s;
}
.kontak-phone:focus-within {
    border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.12);
}
.kontak-phone__prefix {
    display: flex; align-items: center; gap: 0.3rem;
    padding: 0 0.6rem;
    background: #f9fafb; border: none;
    border-right: 1px solid #e5e7eb;
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 0.8rem; color: #374151; font-weight: 500;
    flex-shrink: 0; cursor: pointer;
    min-height: 2.5rem; height: 100%;
    transition: background 0.15s;
}
.kontak-phone__prefix:hover { background: #f3f4f6; }
.kontak-phone__flag    { border-radius: 2px; flex-shrink: 0; }
.kontak-phone__code    { font-size: 0.8rem; white-space: nowrap; }
.kontak-phone__chevron {
    width: 0.75rem; height: 0.75rem; color: #9ca3af;
    transition: transform 0.2s ease; flex-shrink: 0;
}
.kontak-phone__chevron.open { transform: rotate(180deg); }
.kontak-phone__input {
    flex: 1; padding: 0.625rem 0.75rem;
    border: none; outline: none;
    font-size: 0.875rem; color: #111827; background: #fff;
    font-family: var(--font-body, 'Barlow', sans-serif);
    min-width: 0; border-radius: 0 0.5rem 0.5rem 0;
}
.kontak-phone__input::placeholder { color: #d1d5db; }

/* ── Phone Dropdown ── */
.phone-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px); left: 0;
    z-index: 999;
    background: #fff;
    border: 1px solid #e5e7eb; border-radius: 0.625rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    width: 280px; overflow: hidden;
}
.phone-dropdown.open { display: block; }
.phone-dropdown__search-wrap {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
}
.phone-dropdown__search {
    width: 100%; padding: 0.45rem 0.65rem;
    border: 1px solid #e5e7eb; border-radius: 0.4rem;
    font-size: 0.8rem; outline: none; color: #111827;
    font-family: var(--font-body, 'Barlow', sans-serif);
    box-sizing: border-box; background: #fff;
}
.phone-dropdown__search:focus { border-color: #eab308; }
.phone-dropdown__list {
    list-style: none; margin: 0; padding: 0.25rem 0;
    max-height: 220px; overflow-y: auto;
}
.phone-dropdown__list::-webkit-scrollbar { width: 4px; }
.phone-dropdown__list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
.phone-dropdown__item {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.5rem 0.85rem; font-size: 0.8rem; color: #111827;
    cursor: pointer; transition: background 0.1s;
}
.phone-dropdown__item:hover { background: #fefce8; }
.phone-dropdown__item.active { background: #fef9c3; }
.phone-dropdown__item img { border-radius: 2px; flex-shrink: 0; }
.phone-dropdown__item-name { flex: 1; }
.phone-dropdown__item-code { color: #6b7280; font-weight: 600; font-size: 0.75rem; }
.phone-dropdown__empty {
    padding: 0.75rem 1rem; font-size: 0.8rem;
    color: #9ca3af; text-align: center;
}

/* ── Submit ── */
.kontak-form__submit {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; padding: 0.75rem 1.5rem;
    background: var(--teal-accent, #2a7a5a); color: #fff;
    font-size: 0.875rem; font-weight: 600; border: none; border-radius: 0.5rem;
    cursor: pointer; transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-body, 'Barlow', sans-serif);
}
.kontak-form__submit:hover {
    background: var(--teal-mid, #1a5c40);
    transform: translateY(-2px); box-shadow: 0 8px 24px rgba(42,122,90,0.3);
}
.kontak-form__submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
@keyframes kontak-spin { to { transform: rotate(360deg); } }
.kontak-spin { animation: kontak-spin 1s linear infinite; }

/* ── Error Banner ── */
.kontak-error-banner {
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 0.75rem; padding: 1rem 1.25rem;
    font-size: 0.875rem; color: #b91c1c; margin-bottom: 1.25rem;
}
.kontak-error-banner p { margin-bottom: 0.25rem; }

/* ── Privacy Note ── */
.peng-privacy {
    display: flex; align-items: flex-start; gap: 0.5rem;
    padding: 0.75rem 1rem; border-radius: 0.75rem; margin-top: 0.25rem;
    background: rgba(42,122,90,0.06); border: 1px solid rgba(42,122,90,0.15);
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .kontak-form-wrap { padding: 1.5rem 1rem; }
}

/* ── Body & Grid ── */
.kontak-body {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
    background: #f8f7f2;
}
.kontak-grid {
    display: grid;
    gap: 2.5rem;
}
@media (min-width: 1024px) {
    .kontak-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Section Title ── */
.kontak-section-title {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a2e1a;
    margin-bottom: 1.5rem;
}

/* ── Contact Cards ── */
.kontak-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
.kontak-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #fef9c3;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kontak-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.kontak-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kontak-card__icon--red    { background: #fef2f2; }
.kontak-card__icon--red    .kontak-icon { color: #ef4444; }
.kontak-card__icon--green  { background: #f0fdf4; }
.kontak-card__icon--green  .kontak-icon { color: #16a34a; }
.kontak-card__icon--blue   { background: #eff6ff; }
.kontak-card__icon--blue   .kontak-icon { color: #3b82f6; }
.kontak-card__icon--yellow { background: #fefce8; }
.kontak-card__icon--yellow .kontak-icon { color: #ca8a04; }
.kontak-icon { width: 1.25rem; height: 1.25rem; }
.kontak-card__label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}
.kontak-card__value {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 500;
    line-height: 1.5;
}

/* ── Map Card ── */
.kontak-map {
    border-radius: 0.75rem;
    border: 1px solid #fef9c3;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    padding: 2rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #0a2e1a, #1a6b3c);
    min-height: 13rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.kontak-map__icon  { width: 2.5rem; height: 2.5rem; color: #facc15; margin-bottom: 0.5rem; }
.kontak-map__name  { color: #d1fae5; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.kontak-map__addr  { color: #6b7280; font-size: 0.75rem; margin-bottom: 0.75rem; }
.kontak-map__link  { font-size: 0.75rem; color: #facc15; text-decoration: underline; transition: color 0.2s; }
.kontak-map__link:hover { color: #fde68a; }

/* ── Form Wrapper ── */
.kontak-form-wrap {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #fef9c3;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.kontak-form { display: flex; flex-direction: column; gap: 1.25rem; }
.kontak-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 640px) {
    .kontak-form__row { grid-template-columns: 1fr; }
}
.kontak-form__field { display: flex; flex-direction: column; }
.kontak-form__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}
.kontak-form__req { color: #f87171; }
.kontak-form__optional {
    font-weight: 400;
    font-size: 0.8em;
    color: #9ca3af;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0.2rem;
}
.kontak-form__input,
.kontak-form__textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font-body, 'Barlow', sans-serif);
    box-sizing: border-box;
}
.kontak-form__input::placeholder,
.kontak-form__textarea::placeholder { color: #d1d5db; }
.kontak-form__input:focus,
.kontak-form__textarea:focus {
    border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.12);
}
.kontak-form__input--error { border-color: #fca5a5 !important; background: #fef2f2 !important; }
.kontak-form__textarea { resize: none; }

/* ── Phone Input ── */
.kontak-phone {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: visible;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.kontak-phone:focus-within {
    border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.12);
}
.kontak-phone__prefix {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.6rem;
    background: #f9fafb;
    border: none;
    border-right: 1px solid #e5e7eb;
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 0.8rem;
    color: #374151;
    font-weight: 500;
    flex-shrink: 0;
    cursor: pointer;
    height: 100%;
    min-height: 2.5rem;
    transition: background 0.15s;
}
.kontak-phone__prefix:hover { background: #f3f4f6; }
.kontak-phone__flag    { border-radius: 2px; flex-shrink: 0; }
.kontak-phone__code    { font-size: 0.8rem; white-space: nowrap; }
.kontak-phone__chevron {
    width: 0.75rem;
    height: 0.75rem;
    color: #9ca3af;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.kontak-phone__chevron.open { transform: rotate(180deg); }
.kontak-phone__input {
    flex: 1;
    padding: 0.625rem 0.75rem;
    border: none;
    outline: none;
    font-size: 0.875rem;
    color: #111827;
    background: #fff;
    font-family: var(--font-body, 'Barlow', sans-serif);
    min-width: 0;
    border-radius: 0 0.5rem 0.5rem 0;
}
.kontak-phone__input::placeholder { color: #d1d5db; }

/* ── Phone Dropdown ── */
.phone-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 999;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    width: 280px;
    overflow: hidden;
}
.phone-dropdown.open { display: block; }
.phone-dropdown__search-wrap {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
}
.phone-dropdown__search {
    width: 100%;
    padding: 0.45rem 0.65rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    outline: none;
    color: #111827;
    font-family: var(--font-body, 'Barlow', sans-serif);
    box-sizing: border-box;
    background: #fff;
}
.phone-dropdown__search:focus { border-color: #eab308; }
.phone-dropdown__list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    max-height: 220px;
    overflow-y: auto;
}
.phone-dropdown__list::-webkit-scrollbar { width: 4px; }
.phone-dropdown__list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
.phone-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    color: #111827;
    cursor: pointer;
    transition: background 0.1s;
}
.phone-dropdown__item:hover { background: #fefce8; }
.phone-dropdown__item.active { background: #fef9c3; }
.phone-dropdown__item img { border-radius: 2px; flex-shrink: 0; }
.phone-dropdown__item-name { flex: 1; }
.phone-dropdown__item-code { color: #6b7280; font-weight: 600; font-size: 0.75rem; }
.phone-dropdown__empty {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
}

/* ── Submit Button ── */
.kontak-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--teal-accent, #2a7a5a);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-body, 'Barlow', sans-serif);
}
.kontak-form__submit:hover {
    background: var(--teal-mid, #1a5c40);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42,122,90,0.3);
}
.kontak-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
@keyframes kontak-spin { to { transform: rotate(360deg); } }
.kontak-spin { animation: kontak-spin 1s linear infinite; }

/* ── Form Note ── */
.kontak-form__note { font-size: 0.75rem; color: #9ca3af; text-align: center; }
.kontak-form__note-link { color: #ca8a04; text-decoration: underline; }
.kontak-form__note-link:hover { color: #a16207; }

/* ── Error Banner ── */
.kontak-error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #b91c1c;
    margin-bottom: 1.25rem;
}
.kontak-error-banner p { margin-bottom: 0.25rem; }

/* ── Mobile ── */
@media (max-width: 768px) {
    .kontak-body      { padding: 2rem 1rem; }
    .kontak-form-wrap { padding: 1.5rem 1rem; }
}

/* ══════════════════════════════════════════
   SUCCESS VIEW  (prefix: ks-)
   ══════════════════════════════════════════ */
.kontak-success {
    background: #fff;
    border: 1px solid #bbf7d0;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    text-align: center;
    animation: ksFadeUp .4s ease both;
}

@keyframes ksFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Icon */
.ks-icon-wrap {
    position: relative;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.25rem;
}
.ks-ping {
    position: absolute;
    inset: 0;
    background: #dcfce7;
    border-radius: 9999px;
    animation: ksPing 1.2s cubic-bezier(0,0,.2,1) 1 both;
}
@keyframes ksPing {
    0%   { transform: scale(1); opacity: .7; }
    100% { transform: scale(1.6); opacity: 0; }
}
.ks-icon-circle {
    position: relative;
    width: 5rem;
    height: 5rem;
    background: #dcfce7;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ks-check { width: 2.5rem; height: 2.5rem; color: #22c55e; }

/* Text */
.ks-title {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}
.ks-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.ks-name  { font-weight: 600; color: #374151; }
.ks-email { color: #3b82f6; font-weight: 500; }

/* Flight animation */
.ks-flight {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
}
.ks-flight__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #15803d;
    margin-bottom: 0.75rem;
}
.ks-flight__track {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 0;
}
.ks-flight__node {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #d1d5db;
    max-width: 9rem;
    opacity: 0.4;
    transform: scale(0.95);
    transition: all 0.5s ease;
}
.ks-flight__node.active {
    border-color: #86efac;
    color: #15803d;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    opacity: 1;
    transform: scale(1);
}
.ks-flight__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 7rem;
}
.ks-flight__arrow {
    font-size: 1rem;
    color: #d1d5db;
    opacity: 0.3;
    transition: color 0.5s, opacity 0.5s;
}
.ks-flight__arrow.active { color: #22c55e; opacity: 1; }

.ks-flight__confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #15803d;
}
.ks-flight__dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #22c55e;
    border-radius: 9999px;
    display: inline-block;
    animation: ksPulse 2s infinite;
}
@keyframes ksPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Note & button */
.ks-note {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 1.25rem;
}
.ks-btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border: 2px solid #0a2e1a;
    color: #0a2e1a;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.ks-btn:hover { background: #0a2e1a; color: #fff; }

/* ══════════════════════════════════════════
   SUCCESS VIEW  (prefix: ks-)
   ══════════════════════════════════════════ */
.kontak-success {
    background: #fff;
    border: 1px solid #bbf7d0;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    text-align: center;
    animation: ksFadeUp .4s ease both;
}

@keyframes ksFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Icon */
.ks-icon-wrap {
    position: relative;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.25rem;
}
.ks-ping {
    position: absolute;
    inset: 0;
    background: #dcfce7;
    border-radius: 9999px;
    animation: ksPing 1.2s cubic-bezier(0,0,.2,1) 1 both;
}
@keyframes ksPing {
    0%   { transform: scale(1); opacity: .7; }
    100% { transform: scale(1.6); opacity: 0; }
}
.ks-icon-circle {
    position: relative;
    width: 5rem;
    height: 5rem;
    background: #dcfce7;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ks-check { width: 2.5rem; height: 2.5rem; color: #22c55e; }

/* Text */
.ks-title {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}
.ks-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.ks-name  { font-weight: 600; color: #374151; }
.ks-email { color: #3b82f6; font-weight: 500; }

/* Flight animation */
.ks-flight {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
}
.ks-flight__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #15803d;
    margin-bottom: 0.75rem;
}
.ks-flight__track {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 0;
}
.ks-flight__node {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #d1d5db;
    max-width: 9rem;
    opacity: 0.4;
    transform: scale(0.95);
    transition: all 0.5s ease;
}
.ks-flight__node.active {
    border-color: #86efac;
    color: #15803d;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    opacity: 1;
    transform: scale(1);
}
.ks-flight__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 7rem;
}
.ks-flight__arrow {
    font-size: 1rem;
    color: #d1d5db;
    opacity: 0.3;
    transition: color 0.5s, opacity 0.5s;
}
.ks-flight__arrow.active { color: #22c55e; opacity: 1; }

.ks-flight__confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #15803d;
}
.ks-flight__dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #22c55e;
    border-radius: 9999px;
    display: inline-block;
    animation: ksPulse 2s infinite;
}
@keyframes ksPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Note & button */
.ks-note {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 1.25rem;
}
.ks-btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border: 2px solid #0a2e1a;
    color: #0a2e1a;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.ks-btn:hover { background: #0a2e1a; color: #fff; }
