/* ===============================
   GLOBAL
================================ */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f4f7fb;
    margin: 0;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    background: #fff;
    padding: 32px 36px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

/* ===============================
   CARD
================================ */
.card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.card-header {
    background: #0d47a1;
    color: #fff;
    padding: 24px;
}

.card-body {
    padding: 30px;
}

/* ===============================
   GRID FORM
================================ */
.grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}



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

/* ===============================
   FORM
================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1976d2;
}

/* ===============================
   TEXTAREA KHUSUS
================================ */
.textarea-alamat {
    min-height: 90px;
    resize: vertical;
}

.textarea-besar {
    min-height: 260px;
    resize: vertical;
}

/* ===============================
   FOTO
================================ */
.photo-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.photo-box img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* ===============================
   BUTTON
================================ */
.action a {
    margin-right: 8px;
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

.btn {
    background: #1976d2;
    color: #fff;
    padding: 12px 26px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    color: #fff;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    display: inline-block;
}

.btn.secondary {
    background: #9e9e9e;
}

/* ===============================
   TABLE
================================ */


.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    min-width: 900px;
    /* boleh kamu naikin */
    border-collapse: collapse;
}

th {
    background: #e3f2fd;
    padding: 14px;
    text-align: left;
    font-size: 14px;
}

td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: middle;
}


table tbody tr {
    background: #fff;
}

table th,
table td {
    padding: 12px 14px;
    line-height: 1.6;
    border-bottom: 1px solid #eee;
}

/* ===============================
   BADGE
================================ */
.badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
    text-transform: capitalize;
}

.badge.baru {
    background: #dbeafe;
    color: #1e40af;
}

.badge.diproses {
    background: #fef3c7;
    color: #92400e;
}

.badge.selesai {
    background: #dcfce7;
    color: #166534;
}

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #bbdefb;
}



/* HEADER HOMEPAGE */
.main-header {
    background: linear-gradient(135deg,
            #16a34a 0%,
            /* hijau */
            #22c55e 30%,
            #3b82f6 70%,
            /* biru */
            #1e40af 100%);
    border-bottom: none;
}

/* biar teks & link kontras */
.main-header a,
.main-header h1,
.main-header h2 {
    color: #ffffff;
}

/* nav hover tetap cakep */
.main-header .nav a:hover {
    color: #dcfce7;
}




.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* NAV */
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto; /* KUNCI: dorong nav ke kanan */

}

.nav a {
    text-decoration: none;
    font-weight: 500;
    color: #0f172a;
    font-size: 20px;
    transition: color .2s ease;
}

.nav a:hover {
    color: #16a34a;
}

@media (max-width: 768px) {
    .nav a {
        font-size: 13px;
    }
}

/* CTA */
.btn-cta {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(22, 163, 74, .25);
}


/* CTA */
.cta {
    padding: 80px 24px;
    background: linear-gradient(135deg, #16a34a, #3b82f6);
}

.cta-box {
    max-width: 1000px;
    margin: auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}

.cta-box h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.cta-box p {
    font-size: 18px;
    color: #475569;
    margin-bottom: 30px;
}

.btn-cta-lg {
    display: inline-block;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    padding: 16px 36px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(22, 163, 74, .35);
}



/* RESPONSIVE */
@media (max-width: 768px) {
    .nav {
        gap: 16px;
    }

    .logo img {
        height: 44px;
    }

    .nav a {
        font-size: 14px;
    }
}

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

.header h2 {
    margin: 0;
    color: #0d47a1;
}

/* Logo */
.logo img {
    width: 113px;
    /* 3 cm */
    height: auto;
    /* proporsional */
    max-height: 113px;
    /* optional: jangan terlalu tinggi */
    transition: transform 0.2s;
}

.logo img:hover {
    transform: scale(1.05);
}

.right-text {
    text-align: right;
}

.aktif {
    background: #4caf50
}

.nonaktif {
    background: #f44336
}

small {
    color: #555
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 80px 24px;
    align-items: center;
    max-width: 1200px;
    margin: auto;

    background-image: url('/uploads/konsultasisi.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    /* ⬅️ PENTING */
}

.hero h1 {
    font-size: 42px;
    line-height: 1.2;
}

.hero p {
    margin: 16px 0 24px;
    font-size: 18px;
    color: #374151;
}

.hero-image img {
    width: 75%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
    justify-content: right;  /* kunci utamanya */
}



.services {
    padding: 70px 24px;
    background: #f8fafc;
    text-align: center;
}

.services h2 {
    font-size: 34px;
    margin-bottom: 12px;
}

.services p.subtitle {
    color: #475569;
    max-width: 640px;
    margin: 0 auto 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: auto;
}

.service-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    transition: .3s;
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-card h4 {
    margin-top: 16px;
    font-size: 18px;
}

.service-card p {
    font-size: 14.5px;
    color: #475569;
}

.doctors {
    padding: 70px 24px;
    text-align: center;
}

.doctors h2 {
    font-size: 32px;
}

.doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.doctor-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.doctor-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
}

/* ===============================
   FEATURES
================================ */
.features {
    background: #f8fafc;
    padding: 80px 24px;
    text-align: center;
}

.features-container {
    max-width: 1200px;
    margin: auto;
}

.features h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #0f172a;
}

.features-desc {
    font-size: 16px;
    color: #475569;
    max-width: 600px;
    margin: 0 auto 48px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.feature-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0d47a1;
}

.feature-card p {
    font-size: 14px;
    color: #475569;
    margin-bottom: 18px;
}

.feature-card a {
    text-decoration: none;
    font-weight: 600;
    color: #16a34a;
}

.feature-card a:hover {
    text-decoration: underline;
}

/* =====================
   FOOTER
===================== */
.footer {
    background: #0f172a;
    color: #e5e7eb;
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand img {
    width: 140px;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: #cbd5f5;
}

.footer h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5f5;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #38bdf8;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #cbd5f5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer {
        text-align: center;
    }

    .footer-brand img {
        margin: auto;
    }
}

/* ===============================
   WHY ASKVETCARE
================================ */
.why {
    padding: 70px 24px;
    background: #ffffff;
}

.why-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.why h2 {
    font-size: 34px;
    margin-bottom: 12px;
    color: #0f172a;
}

.why p.subtitle {
    font-size: 17px;
    color: #475569;
    max-width: 640px;
    margin: 0 auto 48px;
}

/* GRID */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

/* CARD */
.why-card {
    background: #f8fafc;
    border-radius: 18px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    transition: all .3s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
}

/* ICON */
.why-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* TEXT */
.why-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0f172a;
}

.why-card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .why h2 {
        font-size: 28px;
    }

    .why p.subtitle {
        font-size: 15px;
    }
}

.konsultasi-hero {
    padding: 80px 24px;
    text-align: center;
    background: linear-gradient(135deg, #16a34a, #2563eb);
    color: #fff;
}

.konsultasi-hero h1 {
    font-size: 40px;
}

.konsultasi-hero p {
    max-width: 720px;
    margin: 16px auto 0;
    font-size: 18px;
}

.konsultasi-layanan {
    padding: 60px 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.layanan-card {
    background: #fff;
    padding: 28px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.layanan-card img {
    width: 120px;
    margin-bottom: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #f0f2f5;
    font-family: Arial, Helvetica, sans-serif;
}

/* =====================
   WRAPPER
===================== */
.chat-wrapper {
    max-width: 720px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 90vh;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* =====================
   HEADER
===================== */
.chat-header {
    background: #0d6efd;
    color: #fff;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header .back {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.chat-header span {
    font-weight: bold;
}

/* =====================
   BODY CHAT
===================== */
.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #eaeaea;
}

/* =====================
   ITEM
===================== */
.chat-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    max-width: 75%;
}

/* USER (PASIEN) */
.chat-item.user {
    align-self: flex-start;
}

.chat-item.user .bubble {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 15px 15px 15px 0;
    color: #333;
}

/* DOKTER */
.chat-item.dokter {
    align-self: flex-end;
    text-align: right;
}

.chat-item.dokter .bubble {
    background: #0d6efd;
    color: #fff;
    border-radius: 15px 15px 0 15px;
}

/* =====================
   BUBBLE
===================== */
.bubble {
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.bubble img {
    display: block;
    max-width: 220px;
    margin-top: 6px;
    border-radius: 8px;
}

/* =====================
   TIME
===================== */
.time {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}

/* =====================
   FORM
===================== */
.chat-form {
    display: flex;
    align-items: center;
    border-top: 1px solid #ddd;
    padding: 8px;
    background: #fafafa;
}

.chat-form textarea {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px;
    resize: none;
    font-size: 14px;
    height: 45px;
}

.chat-form button {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 0 16px;
    height: 45px;
    margin-left: 8px;
    border-radius: 5px;
    cursor: pointer;
}

/* =====================
   UPLOAD
===================== */
.upload-btn {
    font-size: 20px;
    cursor: pointer;
    margin-right: 8px;
}

.form-actions{
    display:flex;
    align-items:center;
    margin-top:16px;
}

.btn-cancel{
    margin-left:auto; /* 🔥 ini kuncinya */
    background:#e0e0e0;
    color:#333;
    text-decoration:none;
    padding:12px 26px;
    border-radius:12px;
    font-size:14px;
}

.btn-cancel:hover{
    background:#d5d5d5;
}

@media (max-width: 768px) {

    .hero {
        grid-template-columns: 1fr;
        padding: 48px 20px;
        text-align: center;
        background-image: none; /* buang bg image biar ringan */
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.7;
    }

    .hero-image {
        order: -1; /* gambar di atas teks */
        margin-bottom: 24px;
    }

    .hero-image img {
        width: 100%;
        max-width: 280px;
        margin: auto;
        display: block;
    }

    .btn-primary {
        display: block;
        width: 100%;
        padding: 14px;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .features {
        padding: 56px 20px;
    }

    .features h2 {
        font-size: 26px;
    }

    .features-desc {
        font-size: 14.5px;
    }

    .feature-card {
        padding: 24px 20px;
    }
}

@media (max-width: 768px) {

    .cta {
        padding: 60px 20px;
    }

    .cta-box {
        padding: 40px 24px;
        border-radius: 20px;
    }

    .cta-box h2 {
        font-size: 26px;
    }

    .cta-box p {
        font-size: 15px;
    }

    .btn-cta-lg {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {

    .doctor-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .doctor-card img {
        max-height: 240px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {

    .header-container {
        flex-direction: column;
        gap: 14px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .nav a {
        font-size: 14px;
    }
}

@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
        gap: 28px;
        align-items: center;
    }

    .nav-toggle {
        display: none;
    }
}

.filter {
    margin-bottom: 16px;
}

.filter .btn {
    margin-right: 10px;
}

.filter .btn.active {
    background: #2563eb;
    color: #fff;
}

/* PETSHOP */
.petshop-hero {
    background: linear-gradient(135deg,#FFA500,#FFB74D);
    color:#fff;
    text-align:center;
    padding:60px 20px;
}
.petshop-hero h1 {
    font-size:2.5rem;
    margin-bottom:20px;
}
.petshop-hero p {
    font-size:1.2rem;
    max-width:700px;
    margin:0 auto 30px auto;
}
.petshop-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    padding:40px 20px;
}
.petshop-card {
    border:1px solid #ddd;
    border-radius:12px;
    padding:20px;
    text-align:center;
    background:#fff;
    transition:transform 0.2s, box-shadow 0.2s;
}
.petshop-card:hover {
    transform:translateY(-5px);
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}
.petshop-card h3 {
    margin:15px 0 10px 0;
}
.petshop-card p {
    font-size:0.95rem;
    color:#555;
}
.petshop-card a {
    display:inline-block;
    margin-top:10px;
    padding:10px 15px;
    background:#FFA500;
    color:#fff;
    border-radius:6px;
    text-decoration:none;
}
.petshop-card a:hover {
    background:#FF8C00;
}

/* chat ajax */

.chat-container {
    max-width: 800px;
    height: 90vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    background: #e5ddd5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
}

/* HEADER */
.chat-header {
    background: #075e54;
    color: #fff;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: #128c7e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-name {
    font-weight: bold;
}

.chat-status {
    font-size: 12px;
    opacity: .8;
}

/* BODY */
.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

/* ITEM */
.chat-item {
    display: flex;
    margin-bottom: 10px;
}

.chat-item.user {
    justify-content: flex-end;
}

.chat-item.dokter {
    justify-content: flex-start;
}

/* BUBBLE */
.chat-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    position: relative;
}

.chat-item.user .chat-bubble {
    background: #dcf8c6;
    border-bottom-right-radius: 0;
}

.chat-item.dokter .chat-bubble {
    background: #fff;
    border-bottom-left-radius: 0;
}

.chat-time {
    font-size: 11px;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

/* INPUT */
.chat-input {
    display: flex;
    padding: 10px;
    background: #f0f0f0;
}

.chat-input input {
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    outline: none;
}

.chat-input button {
    background: #128c7e;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    margin-left: 8px;
    cursor: pointer;
}

.alert-box-wrapper{
    display:flex;
    justify-content:center;
    margin-bottom:24px;
}

.alert-box{
    background:#fff;
    border:1px solid #fecaca;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    border-radius:14px;
    padding:20px 24px;
    max-width:420px;
    width:100%;
    text-align:center;
}

.alert-title{
    font-size:16px;
    font-weight:700;
    color:#b91c1c;
    margin-bottom:8px;
}

.alert-message{
    font-size:14px;
    color:#374151;
    margin-bottom:16px;
    line-height:1.6;
}

.alert-box button{
    background:#b91c1c;
    color:#fff;
    border:none;
    padding:8px 22px;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
}

.alert-box button:hover{
    opacity:.9;
}

#formWrapper{
    position: relative;
}

#formWrapper[aria-disabled="true"]{
    opacity:.5;
    pointer-events:none;
}
