/* ════════ FORM ════════ */
.visit-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-soft);
    margin-top: 12px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--bg-soft);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(164, 96, 47, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(90, 63, 45, 0.45);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a3f2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.hidden-field {
    display: none;
}

.diger-field {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.diger-field label {
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-strong);
}

.diger-field input {
    padding: 10px 14px;
    border: 2px solid var(--brand);
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.diger-field input:focus {
    border-color: var(--brand-strong);
    box-shadow: 0 0 0 3px rgba(164, 96, 47, 0.15);
}

.diger-field input::placeholder {
    color: rgba(164, 96, 47, 0.5);
}

.form-section-divider {
    grid-column: 1 / -1;
    margin: 8px 0 4px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    color: var(--brand-strong);
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.form-actions .btn svg {
    vertical-align: middle;
    margin-right: 6px;
    margin-top: -2px;
}

/* ════════ ALERT ════════ */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 0.92rem;
}

.alert-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.alert-error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

/* ════════ RECORDS AUTH MODAL ════════ */
.records-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.records-auth-box {
    background: linear-gradient(160deg, #4e2f1a 0%, #2f1a11 100%);
    border: 1px solid rgba(252,226,196,0.2);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    max-width: 380px;
    width: 100%;
    text-align: center;
}

.records-auth-icon {
    color: #f6c68f;
    margin-bottom: 16px;
}

.records-auth-box h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: #fdf6ee;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.records-auth-box p {
    color: rgba(253,246,238,0.7);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

.records-auth-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#recordsAuthPw {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #fdf6ee;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}

#recordsAuthPw::placeholder { color: rgba(253,246,238,0.4); }
#recordsAuthPw:focus { border-color: #f6c68f; }

.records-auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(120deg, #a4602f, #7a4019);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.records-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(67,40,21,0.3);
}

.records-auth-error {
    display: none;
    color: #ff6b6b;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 12px;
}

/* ════════ RECORDS LOCKED ════════ */
.records-locked {
    text-align: center;
    padding: 48px 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(252,226,196,0.18);
    border-radius: var(--radius-lg);
    margin-top: 20px;
}

.locked-icon {
    color: rgba(253,246,238,0.4);
    margin-bottom: 16px;
}

.records-locked h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: #fdf6ee;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.records-locked p {
    color: rgba(253,246,238,0.6);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ════════ RECORDS CONTROLS ════════ */
.records-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 18px;
    border: 1px solid rgba(252, 226, 196, 0.3);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #fdf6ee;
    font-family: 'Manrope', sans-serif;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-input::placeholder { color: rgba(253,246,238,0.4); }
.search-input:focus { border-color: #f6c68f; }

.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid rgba(252,226,196,0.3);
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: rgba(253,246,238,0.7);
    font-family: 'Manrope', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fdf6ee;
}

.filter-btn.active {
    background: #f6c68f;
    color: #2f1a11;
    border-color: #f6c68f;
}

/* ════════ STATS ════════ */
.records-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(252,226,196,0.2);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #f6c68f;
    letter-spacing: 0.04em;
}

.stat-item span {
    font-size: 0.78rem;
    color: rgba(253,246,238,0.6);
    font-weight: 600;
}

.stat-item.olumlu strong { color: #81c784; }
.stat-item.olumsuz strong { color: #e57373; }
.stat-item.denendi strong { color: #4fc3f7; }
.stat-item.beklemede strong { color: #ffd54f; }

/* ════════ RECORD CARDS ════════ */
.records-list {
    display: grid;
    gap: 14px;
}

.record-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(252,226,196,0.18);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    backdrop-filter: blur(4px);
    transition: transform 0.3s, background 0.3s;
}

.record-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.1);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.record-kafe {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.03em;
}

.record-date {
    font-size: 0.85rem;
    color: rgba(253,246,238,0.6);
    font-weight: 600;
}

.record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.tag-olumlu { background: rgba(129,199,132,0.2); color: #81c784; border: 1px solid rgba(129,199,132,0.3); }
.tag-olumsuz { background: rgba(229,115,115,0.2); color: #e57373; border: 1px solid rgba(229,115,115,0.3); }
.tag-kararsiz { background: rgba(255,213,79,0.2); color: #ffd54f; border: 1px solid rgba(255,213,79,0.3); }
.tag-diger { background: rgba(206,147,216,0.2); color: #ce93d8; border: 1px solid rgba(206,147,216,0.3); }
.tag-yes { background: rgba(79,195,247,0.15); color: #4fc3f7; border: 1px solid rgba(79,195,247,0.25); }
.tag-no { background: rgba(255,255,255,0.08); color: rgba(253,246,238,0.5); border: 1px solid rgba(255,255,255,0.12); }
.tag-place { background: rgba(255,255,255,0.08); color: rgba(253,246,238,0.65); border: 1px solid rgba(255,255,255,0.12); }
.tag-person { background: rgba(246,198,143,0.15); color: #f6c68f; border: 1px solid rgba(246,198,143,0.25); }
.tag-beklemede { background: rgba(255,213,79,0.2); color: #ffd54f; border: 1px solid rgba(255,213,79,0.3); }
.tag-iletisim { background: rgba(79,195,247,0.15); color: #4fc3f7; border: 1px solid rgba(79,195,247,0.25); }
.tag-anlasma { background: rgba(129,199,132,0.2); color: #81c784; border: 1px solid rgba(129,199,132,0.3); }
.tag-red { background: rgba(229,115,115,0.2); color: #e57373; border: 1px solid rgba(229,115,115,0.3); }

.record-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    font-size: 0.85rem;
    color: rgba(253,246,238,0.7);
}

.record-contact span::before {
    content: '';
}

.record-last-call {
    margin-top: 6px;
    font-size: 0.82rem;
    color: rgba(253,246,238,0.55);
    font-weight: 600;
}

.record-last-call::before {
    content: '📞 ';
}

.record-notes {
    margin-top: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(252,226,196,0.15);
    border-radius: 10px;
    font-size: 0.88rem;
    color: rgba(253,246,238,0.75);
    line-height: 1.6;
}

.no-records {
    text-align: center;
    padding: 48px 24px;
    color: rgba(253,246,238,0.5);
    font-size: 0.95rem;
}

.no-records a {
    color: #f6c68f;
    text-decoration: underline;
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 760px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: 1; }

    .records-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .record-header { flex-direction: column; align-items: flex-start; gap: 4px; }

    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; justify-content: center; }

    .records-controls { flex-direction: column; }
    .search-input { width: 100%; }

    .filter-group { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .records-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}