/* ===========================
   kontak.css
   (User-facing contact page + Admin contact panel)
=========================== */


/* ================================
   1. KONTAK PAGE (USER - FRONT)
================================ */

.kontak-page {
    background: #f6f8f4;
    padding-bottom: 60px;
}

/* --- Hero --- */
.kontak-hero {
    background: linear-gradient(135deg, #2f4f3f 0%, #3f6b53 60%, #5a8a6f 100%);
    padding: 70px 20px 50px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.kontak-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.kontak-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 240px; height: 240px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.kontak-hero-inner {
    position: relative;
    z-index: 1;
}

.kontak-hero h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.kontak-hero p {
    color: rgba(255,255,255,0.82);
    font-size: 15px;
    margin: 0;
}

/* --- Container --- */
.kontak-container {
    max-width: 1100px;
}

.kontak-row {
    margin-top: 10px;
}

/* --- Alert --- */
.alert-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

.alert-modern button {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
}

.alert-sukses {
    background: #d4f0e0;
    color: #1a5c35;
    border-left: 4px solid #2f6f4f;
}

.alert-error {
    background: #fde8e8;
    color: #8b1a1a;
    border-left: 4px solid #dc3545;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Card Form --- */
.kontak-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    overflow: hidden;
    height: 100%;
}

.kontak-card-header {
    background: linear-gradient(135deg, #2f4f3f, #3f6b53);
    color: #fff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kontak-card-header i {
    font-size: 20px;
}

.kontak-card-header h4 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.kontak-card-body {
    padding: 26px;
}

/* --- Field --- */
.field-group {
    margin-bottom: 18px;
    position: relative;
}

.field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #3a3a3a;
    margin-bottom: 6px;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca69c;
    font-size: 14px;
}

.form-kontak {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1.5px solid #dde4de;
    border-radius: 9px;
    font-size: 14px;
    background: #fafbfa;
    transition: border 0.25s, box-shadow 0.25s;
    outline: none;
    color: #333;
}

.form-kontak:focus {
    border-color: #3f6b53;
    box-shadow: 0 0 0 3px rgba(63,107,83,0.12);
    background: #fff;
}

.textarea-kontak {
    padding-left: 12px !important;
    min-height: 120px;
    resize: vertical;
}

.field-error {
    display: block;
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
    min-height: 16px;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
}

/* --- Tombol Kirim --- */
.btn-kirim {
    width: 100%;
    background: linear-gradient(135deg, #2f4f3f, #3f6b53);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-kirim:hover {
    background: linear-gradient(135deg, #245c41, #2f4f3f);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(47,79,63,0.28);
}

.btn-kirim:active {
    transform: translateY(0);
}

.btn-kirim.loading {
    opacity: 0.75;
    pointer-events: none;
}

/* --- Info Cards --- */
.info-kontak-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    border-left: 4px solid transparent;
    transition: 0.25s;
}

.info-kontak-card:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

.wa-card     { border-left-color: #25d366; }
.email-card  { border-left-color: #3f6b53; }
.jam-card    { border-left-color: #c99700; }
.lokasi-card { border-left-color: #6b8f7c; }

.info-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.wa-card     .info-icon { background: #e8fdf1; color: #25d366; }
.email-card  .info-icon { background: #eef5f0; color: #3f6b53; }
.jam-card    .info-icon { background: #fdf8e8; color: #c99700; }
.lokasi-card .info-icon { background: #eef3ef; color: #6b8f7c; }

.info-detail h5 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
    color: #2a2a2a;
}

.info-detail p {
    margin: 0 0 4px;
    font-size: 12px;
    color: #888;
}

.info-link {
    font-size: 13px;
    font-weight: 600;
    color: #2f4f3f;
    text-decoration: none;
}

.info-link:hover {
    color: #3f6b53;
    text-decoration: underline;
}

/* --- Tombol ke Review --- */
.btn-review-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    padding: 13px;
    background: #fff;
    border: 2px solid #2f4f3f;
    border-radius: 12px;
    color: #2f4f3f;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: 0.25s;
}

.btn-review-link:hover {
    background: #2f4f3f;
    color: #fff;
    text-decoration: none;
}


/* ================================
   2. KONTAK ADMIN (BACKEND)
================================ */

/* --- Layout --- */
.kontak-admin-page,
.kontak-admin-card {
    position: relative;
    z-index: 1;
}

/* --- Header --- */
.kontak-admin-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.header-overlay {
    pointer-events: none;
}

/* --- Header Right (Profil + Stats) --- */
.header-right {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.header-stats {
    display: flex;
    gap: 10px;
}

/* --- Tombol Profil --- */
a.btn-profil-header,
a.btn-profil-header:link,
a.btn-profil-header:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.4);
    transition: 0.2s;
}

a.btn-profil-header:hover {
    background: #fff;
    color: #2f4f3f !important;
    opacity: 1;
    text-decoration: none;
}


/* ================================
   3. RESPONSIVE
================================ */

@media (max-width: 768px) {
    .kontak-hero h1 { font-size: 24px; }

    .header-right {
        align-items: flex-start;
    }
}