/* ============================================================
   hcstyle.css — RS Karitas Weetabula
   Stylesheet halaman Home Care
============================================================ */

/* ────────────────────────────────────────────────────────────
   HERO
──────────────────────────────────────────────────────────── */
.homecare-hero {
    background-image: url('/epasien/images/hc.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.homecare-hero-overlay {
    padding: 130px 0 110px;
    background: linear-gradient(
        160deg,
        rgba(5,  20,  60, 0.82) 0%,
        rgba(11, 61, 145, 0.78) 50%,
        rgba(20,100,  90, 0.74) 100%
    );
    color: #fff;
}

body.dark-mode .homecare-hero-overlay {
    background: linear-gradient(
        160deg,
        rgba(3,  10, 30, 0.93) 0%,
        rgba(8,  38,100, 0.90) 50%,
        rgba(8,  18, 36, 0.92) 100%
    );
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #e0faf7;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 20px;
    border-radius: 50px;
    margin-bottom: 22px;
}

.homecare-hero-overlay h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.22;
    letter-spacing: -0.5px;
    text-shadow:
        0 1px  3px rgba(0,0,0,0.90),
        0 3px 10px rgba(0,0,0,0.70),
        0 8px 30px rgba(0,0,0,0.40);
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.93);
    max-width: 560px;
    margin: 0 auto 30px;
    line-height: 1.75;
    text-shadow:
        0 1px  3px rgba(0,0,0,0.80),
        0 3px 10px rgba(0,0,0,0.50);
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-highlight-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.60);
}

.hero-highlight-item i { color: #7ff0e6; }

/* ────────────────────────────────────────────────────────────
   SECTION LAYANAN
──────────────────────────────────────────────────────────── */
.homecare-section {
    padding: 80px 0 60px;
    background: #f4f7ff;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #42b2a6, #0b3d91);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.section-title h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0b3d91;
    margin-bottom: 8px;
}

.section-title p { color: #6b7a99; font-size: 14px; }

/* ────────────────────────────────────────────────────────────
   SERVICE CARDS
   5 kartu dengan warna aksen berbeda agar mudah dibedakan
──────────────────────────────────────────────────────────── */

.layanan-wrapper {
    display: flex;
    flex-wrap: nowrap;   
    justify-content: center;
    gap: 30px;
}

.layanan-item {
    width: 240px; /* bisa sesuaikan */
}

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 16px 22px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2.5px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    outline: none;
}

.service-card:hover,
.service-card:focus {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.10);
}

.service-card.active-service {
    box-shadow: 0 10px 30px rgba(66,178,166,0.28);
}

/* ── Warna per layanan ── */
.service-card.hc-blue   { --sc-clr: #0b3d91; --sc-bg: #e8f0ff; }
.service-card.hc-teal   { --sc-clr: #0f766e; --sc-bg: #e0fdf4; }
.service-card.hc-purple { --sc-clr: #6d28d9; --sc-bg: #f3f0ff; }
.service-card.hc-orange { --sc-clr: #c2410c; --sc-bg: #fff4e6; }
.service-card.hc-green  { --sc-clr: #15803d; --sc-bg: #f0fdf4; }

.service-card:hover   { border-color: var(--sc-clr); }
.service-card.active-service { border-color: var(--sc-clr); background: var(--sc-bg); }

.service-icon-wrap {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: var(--sc-clr, #0b3d91);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    margin-bottom: 14px;
    transition: transform 0.3s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.service-card:hover .service-icon-wrap,
.service-card.active-service .service-icon-wrap { transform: scale(1.1) rotate(-5deg); }

.service-card h5 {
    font-size: 13px;
    font-weight: 800;
    color: var(--sc-clr, #0b3d91);
    margin-bottom: 5px;
    line-height: 1.3;
}

.service-card p {
    font-size: 12px;
    color: #6b7a99;
    margin: 0 0 10px;
    flex: 1;
}

.service-card-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sc-bg, #e8f0ff);
    border: 1.5px solid var(--sc-clr, #0b3d91);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sc-clr, #0b3d91);
    font-size: 11px;
    margin-top: auto;
    transition: all 0.3s;
}

.service-card.active-service .service-card-arrow,
.service-card:hover .service-card-arrow {
    background: var(--sc-clr, #0b3d91);
    color: #fff;
    transform: rotate(180deg);
}

/* ────────────────────────────────────────────────────────────
   FORM SECTION
──────────────────────────────────────────────────────────── */
#formHomeCare {
    padding: 0 0 90px;
    background: #f4f7ff;
}

.form-wrapper {
    background: #fff;
    padding: 40px 50px 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border-top: 4px solid #0b3d91;
}

/* Form header (ikon + judul layanan) */
.form-header-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1.5px solid #eef2ff;
}

.form-header-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #42b2a6, #0b3d91);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
}

.form-header-top h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0b3d91;
    margin: 0;
}

.sub-judul { color: #6b7a99; font-size: 13.5px; margin: 0; }

.section-label {
    font-weight: 700;
    color: #0b3d91;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.divider {
    border: none;
    border-top: 2px solid #eef2ff;
    margin: 28px 0;
}

/* ────────────────────────────────────────────────────────────
   TARIF CARD
──────────────────────────────────────────────────────────── */
.tarif-card {
    background: #f8faff;
    border-radius: 14px;
    padding: 16px 14px;
    margin-bottom: 16px;
    border: 2px solid #e8ecff;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.tarif-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(#42b2a6, #0b3d91);
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: opacity 0.25s;
}

.tarif-card:hover,
.tarif-card.selected-tarif {
    border-color: #42b2a6;
    background: #f0fffe;
    box-shadow: 0 8px 22px rgba(66,178,166,0.15);
}

.tarif-card:hover { transform: translateY(-2px); }

.tarif-card:hover::before,
.tarif-card.selected-tarif::before { opacity: 1; }

.tarif-card.selected-tarif {
    background: linear-gradient(135deg, #f0fffe, #edfcfa);
    box-shadow: 0 8px 24px rgba(66,178,166,0.22);
}

.tarif-check {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.25s;
}

.tarif-card.selected-tarif .tarif-check {
    background: linear-gradient(135deg, #42b2a6, #0b3d91);
    border-color: transparent;
    color: #fff;
}

.tarif-check i { font-size: 11px; opacity: 0; transition: opacity 0.2s; }
.tarif-card.selected-tarif .tarif-check i { opacity: 1; }

.tarif-icon-wrap {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #42b2a6, #0b3d91);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.25s;
}

.tarif-card:hover .tarif-icon-wrap,
.tarif-card.selected-tarif .tarif-icon-wrap { transform: scale(1.08); }

.tarif-info { flex: 1; }

.tarif-info h6 {
    margin: 0 0 3px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.tarif-info .harga {
    font-size: 14px;
    font-weight: 700;
    color: #42b2a6;
}

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

.form-group label {
    font-weight: 600;
    font-size: 13.5px;
    color: #374151;
    margin-bottom: 7px;
    display: block;
}

.form-label-icon {
    color: #42b2a6;
    margin-right: 4px;
    width: 16px;
    text-align: center;
}

.req { color: #dc2626; }
.opsional { color: #9ca3af; font-weight: 400; font-size: 12px; margin-left: 3px; }

.form-control {
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 6px 15px;
    font-size: 14px;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #1e293b;
}

.form-control:focus {
    border-color: #42b2a6;
    box-shadow: 0 0 0 3px rgba(66,178,166,0.15);
    outline: none;
}

/* ────────────────────────────────────────────────────────────
   VALIDASI
──────────────────────────────────────────────────────────── */
.alert-custom {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    color: #dc2626;
    border-radius: 10px;
    padding: 11px 15px;
    font-size: 13.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-error {
    color: #dc2626;
    font-size: 12.5px;
    margin-top: 5px;
    min-height: 17px;
}

/* ────────────────────────────────────────────────────────────
   PICKER TANGGAL INDONESIA
──────────────────────────────────────────────────────────── */
.tgl-picker-wrap {
    display: grid;
    grid-template-columns: 1fr 2fr 1.4fr;
    gap: 8px;
}

.tgl-sel {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    /* Custom dropdown arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2342b2a6' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-color: #fff;
    background-clip: padding-box;
    padding-right: 28px !important;
    font-weight: 600;
    color: #1e293b;
}

.tgl-sel:focus {
    border-color: #42b2a6;
    box-shadow: 0 0 0 3px rgba(66,178,166,0.15);
    outline: none;
}

.tgl-picker-labels {
    display: grid;
    grid-template-columns: 1fr 2fr 1.4fr;
    gap: 8px;
    margin-top: 4px;
}

.tgl-picker-labels span {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.tgl-preview {
    display: flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #f0fffe, #e6fcf8);
    border: 1.5px solid #42b2a6;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f766e;
    animation: tglFadeIn 0.3s ease;
}

.tgl-preview .fa { color: #42b2a6; font-size: 15px; flex-shrink: 0; }

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

/* HP kecil: 2 kolom lalu Tahun di bawah */
@media (max-width: 390px) {
    .tgl-picker-wrap   { grid-template-columns: 1fr 1fr; }
    .tgl-picker-labels { grid-template-columns: 1fr 1fr; }
    .tgl-picker-wrap select:last-child   { grid-column: 1 / -1; }
    .tgl-picker-labels span:last-child   { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 768px) {
    .layanan-wrapper {
        flex-wrap: wrap;
    }

    .layanan-item {
        width: 100%;
        max-width: 320px;
    }
}

/* ────────────────────────────────────────────────────────────
   ACCORDION OPSIONAL
──────────────────────────────────────────────────────────── */
.opsional-section {
    border: 1.5px solid #e8ecff;
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.25s;
}

.opsional-section:has(.opsional-body:not([style*="display:none"])) {
    border-color: #42b2a6;
}

.opsional-toggle {
    width: 100%;
    background: #f8faff;
    border: none;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.opsional-toggle:hover { background: #f0fffe; }

.opsional-toggle-left {
    display: flex;
    align-items: center;
    gap: 13px;
}

.opsional-toggle-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #42b2a6, #0b3d91);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
}

.opsional-toggle-text {
    display: flex;
    flex-direction: column;
}

.opsional-toggle-text strong { font-size: 13.5px; color: #1e293b; }
.opsional-toggle-text small  { font-size: 12px; color: #6b7a99; margin-top: 2px; }

.opsional-arrow { color: #9ca3af; transition: transform 0.25s; font-size: 13px; }
.opsional-arrow.open { transform: rotate(180deg); }

.opsional-body {
    padding: 16px 18px 20px;
    border-top: 1.5px solid #eef2ff;
    background: #fff;
}

/* ────────────────────────────────────────────────────────────
   UPLOAD FOTO
──────────────────────────────────────────────────────────── */
.upload-area {
    border: 2px dashed #c7d2fe;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    color: #6b7a99;
    background: #f8faff;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #42b2a6;
    background: #f0fffe;
    color: #42b2a6;
}

.upload-area i    { font-size: 32px; margin-bottom: 8px; display: block; }
.upload-area p    { margin: 0 0 4px; font-weight: 600; font-size: 14px; }
.upload-area small{ font-size: 12px; }

.foto-preview-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.foto-preview-item {
    position: relative;
    width: 88px; height: 88px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e8ecff;
}

.foto-preview-item img { width: 100%; height: 100%; object-fit: cover; }

.foto-del {
    position: absolute;
    top: 3px; right: 3px;
    width: 22px; height: 22px;
    background: rgba(220,38,38,0.88);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 10px;
    cursor: pointer;
    border: none;
}

/* ────────────────────────────────────────────────────────────
   PETA LOKASI
──────────────────────────────────────────────────────────── */
.peta-info {
    background: #eff8ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.55;
}

.peta-info i { flex-shrink: 0; margin-top: 2px; }

.btn-lokasi {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #42b2a6, #0b3d91);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 14px;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(11,61,145,0.22);
}

.btn-lokasi:hover  { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11,61,145,0.30); }
.btn-lokasi:active { transform: scale(0.97); }
.btn-lokasi:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.map-container {
    width: 100%;
    height: 280px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #e8ecff;
    display: none;
}

.map-container iframe { width: 100%; height: 100%; border: none; }

.koordinat-info {
    margin-top: 10px;
    background: #f0fffe;
    border: 1px solid #6ee7de;
    color: #0f766e;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ────────────────────────────────────────────────────────────
   ALERT ESTIMASI
──────────────────────────────────────────────────────────── */
.alert-info-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #eff8ff, #e0f4ff);
    border: 1px solid #bae6fd;
    color: #0369a1;
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 13.5px;
    margin-bottom: 28px;
    line-height: 1.65;
}

.alert-info-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #0b3d91, #42b2a6);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-info-text strong { color: #0b3d91; }

/* ────────────────────────────────────────────────────────────
   TOMBOL UTAMA
──────────────────────────────────────────────────────────── */
.btn-group-form {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #42b2a6, #0b3d91);
    color: #fff;
    border: none;
    padding: 13px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(11,61,145,0.25);
}

.btn-modern:hover  { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11,61,145,0.35); }
.btn-modern:active { transform: scale(0.97); }
.btn-modern .fa    { font-size: 17px; }

.btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #6b7a99;
    border: 1.5px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-reset:hover { border-color: #42b2a6; color: #42b2a6; background: #f0fffe; }

/* ────────────────────────────────────────────────────────────
   MODAL KONFIRMASI
──────────────────────────────────────────────────────────── */
.modal-konfirmasi-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 50, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeOverlay 0.25s ease;
}

@keyframes fadeOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-konfirmasi-box {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    animation: slideModal 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
    scrollbar-width: thin;
}

@keyframes slideModal {
    from { transform: translateY(40px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.modal-konfirmasi-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px 16px;
    border-bottom: 1.5px solid #eef2ff;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    z-index: 2;
}

.modal-header-icon {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, #42b2a6, #0b3d91);
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.modal-header-text { flex: 1; }
.modal-header-text h4 { margin: 0 0 2px; font-size: 16px; font-weight: 800; color: #0b3d91; }
.modal-header-text p  { margin: 0; font-size: 12.5px; color: #6b7a99; }

.modal-close-btn {
    background: #f1f5f9;
    border: none;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.modal-close-btn:hover { background: #fee2e2; color: #dc2626; }

.modal-warning-bar {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
    padding: 11px 20px;
    font-size: 13px;
    line-height: 1.55;
}

.modal-warning-bar i       { color: #f59e0b; margin-top: 2px; flex-shrink: 0; font-size: 15px; }
.modal-warning-bar strong  { color: #78350f; }

.modal-data-ringkasan {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ringkasan-group {
    background: #f8faff;
    border: 1.5px solid #e8ecff;
    border-radius: 13px;
    overflow: hidden;
}

.ringkasan-group-title {
    background: linear-gradient(135deg, #0b3d91, #1a56c4);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ringkasan-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 16px;
    border-bottom: 1px solid #eef2ff;
    font-size: 13.5px;
}

.ringkasan-row:last-child { border-bottom: none; }

.rk-label {
    color: #6b7a99;
    font-weight: 600;
    width: 110px;
    flex-shrink: 0;
    font-size: 12.5px;
    padding-top: 2px;
}

.rk-value {
    color: #1e293b;
    font-weight: 600;
    flex: 1;
    word-break: break-word;
}

.rk-badge {
    display: inline-block;
    background: linear-gradient(135deg, #42b2a6, #0b3d91);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}

/* Checklist */
.modal-checklist { padding: 0 24px 16px; }

.checklist-title {
    font-size: 12.5px;
    color: #6b7a99;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.checklist-title i { color: #0b3d91; }

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13.5px;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 7px;
    border: 1.5px solid #e8ecff;
    background: #f8faff;
    user-select: none;
}

.checklist-item:hover { background: #f0fffe; border-color: #42b2a6; }
.checklist-item input[type="checkbox"] { display: none; }

.checklist-box {
    width: 22px; height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: #fff;
    transition: all 0.2s;
    font-size: 11px;
    color: transparent;
}

.checklist-item input:checked + .checklist-box {
    background: linear-gradient(135deg, #42b2a6, #0b3d91);
    border-color: transparent;
    color: #fff;
}

.checklist-item input:checked ~ span:last-child {
    color: #0b3d91;
    font-weight: 600;
}

/* Tombol modal */
.modal-action-btns {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    border-top: 1.5px solid #eef2ff;
    flex-wrap: wrap;
}

.btn-modal-edit {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    background: transparent;
    color: #6b7a99;
    border: 1.5px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600; font-size: 14px;
    cursor: pointer;
    transition: all 0.25s;
    min-width: 130px;
}

.btn-modal-edit:hover { border-color: #42b2a6; color: #42b2a6; background: #f0fffe; }

.btn-modal-kirim {
    flex: 2;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #42b2a6, #0b3d91);
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 700; font-size: 14.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(11,61,145,0.25);
    min-width: 180px;
}

.btn-modal-kirim:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(11,61,145,0.35);
}

.btn-modal-kirim:active:not(:disabled) { transform: scale(0.97); }

.btn-modal-kirim:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

/* ════════════════════════════════════════════════════════════
   DARK MODE
════════════════════════════════════════════════════════════ */
body.dark-mode .homecare-section  { background: #0f172a; }
body.dark-mode .section-title h3  { color: #22d3ee; }
body.dark-mode .section-title p   { color: #94a3b8; }

/* Service cards dark */
body.dark-mode .service-card {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .service-card h5 { color: #7dd3fc; }
body.dark-mode .service-card p  { color: #94a3b8; }
body.dark-mode .service-card.active-service { background: #1e3a3a; }
body.dark-mode .service-card-arrow { border-color: #334155; background: #0f172a; }

/* Form dark */
body.dark-mode #formHomeCare  { background: linear-gradient(180deg,#0f172a,#111827); }
body.dark-mode .form-wrapper  { background: #1e293b; color: #e2e8f0; border-top-color: #22d3ee; }
body.dark-mode .form-header-top { border-color: #334155; }
body.dark-mode .form-header-top h3 { color: #22d3ee; }
body.dark-mode .sub-judul     { color: #94a3b8; }
body.dark-mode .section-label { color: #22d3ee; }
body.dark-mode .divider       { border-color: #334155; }

body.dark-mode .form-control  { background: #0f172a; border-color: #334155; color: #e2e8f0; }
body.dark-mode .form-control:focus { border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34,211,238,0.2); }
body.dark-mode .form-group label { color: #cbd5e1; }
body.dark-mode .form-control::placeholder { color: #475569; }
body.dark-mode .form-label-icon { color: #22d3ee; }
body.dark-mode .opsional       { color: #475569; }

/* Tarif cards dark */
body.dark-mode .tarif-card { background: #0f172a; border-color: #334155; }
body.dark-mode .tarif-card:hover,
body.dark-mode .tarif-card.selected-tarif { background: #1e3a3a; border-color: #22d3ee; }
body.dark-mode .tarif-info h6  { color: #e2e8f0; }
body.dark-mode .tarif-info .harga { color: #22d3ee; }
body.dark-mode .tarif-check    { background: #1e293b; border-color: #475569; }
body.dark-mode .tarif-card.selected-tarif .tarif-check { background: linear-gradient(135deg,#22d3ee,#3b82f6); }
body.dark-mode .tarif-icon-wrap { background: linear-gradient(135deg,#22d3ee,#3b82f6); }

/* Accordion dark */
body.dark-mode .opsional-section { border-color: #334155; }
body.dark-mode .opsional-toggle  { background: #0f172a; }
body.dark-mode .opsional-toggle:hover { background: #1e3a3a; }
body.dark-mode .opsional-toggle-text strong { color: #e2e8f0; }
body.dark-mode .opsional-toggle-text small  { color: #94a3b8; }
body.dark-mode .opsional-body   { background: #1e293b; border-color: #334155; }

/* Upload dark */
body.dark-mode .upload-area { background: #0f172a; border-color: #334155; color: #94a3b8; }
body.dark-mode .upload-area:hover,
body.dark-mode .upload-area.dragover { background: #1e3a3a; border-color: #22d3ee; color: #22d3ee; }
body.dark-mode .foto-preview-item { border-color: #334155; }

/* Peta dark */
body.dark-mode .peta-info  { background: #0c2a3a; border-color: #0369a1; color: #7dd3fc; }
body.dark-mode .map-container { border-color: #334155; }
body.dark-mode .koordinat-info { background: #0c2a2a; border-color: #22d3ee; color: #6ee7de; }
body.dark-mode .btn-lokasi { background: linear-gradient(135deg,#22d3ee,#3b82f6); }

/* Alert info dark */
body.dark-mode .alert-info-box  { background: #0c2a3a; border-color: #0369a1; color: #7dd3fc; }
body.dark-mode .alert-info-text strong { color: #22d3ee; }
body.dark-mode .alert-info-icon { background: linear-gradient(135deg,#22d3ee,#3b82f6); }

/* Alert validasi dark */
body.dark-mode .alert-custom   { background: #2d0f0f; border-color: #991b1b; color: #fca5a5; }

/* Tombol dark */
body.dark-mode .btn-modern { background: linear-gradient(135deg,#22d3ee,#3b82f6); }
body.dark-mode .btn-reset  { border-color: #334155; color: #94a3b8; }
body.dark-mode .btn-reset:hover { border-color: #22d3ee; color: #22d3ee; background: #0c2a3a; }

/* Picker tanggal dark */
body.dark-mode .tgl-sel {
    background-color: #0f172a;
    color: #e2e8f0;
}
body.dark-mode .tgl-sel option { background: #1e293b; color: #e2e8f0; }
body.dark-mode .tgl-picker-labels span { color: #475569; }
body.dark-mode .tgl-preview {
    background: linear-gradient(135deg, #0c2a2a, #082020);
    border-color: #22d3ee;
    color: #6ee7de;
}
body.dark-mode .tgl-preview .fa { color: #22d3ee; }

/* Modal dark */
body.dark-mode .modal-konfirmasi-box    { background: #1e293b; }
body.dark-mode .modal-konfirmasi-header { background: #1e293b; border-color: #334155; }
body.dark-mode .modal-header-text h4    { color: #22d3ee; }
body.dark-mode .modal-header-text p     { color: #94a3b8; }
body.dark-mode .modal-close-btn         { background: #334155; color: #94a3b8; }
body.dark-mode .modal-close-btn:hover   { background: #7f1d1d; color: #fca5a5; }
body.dark-mode .modal-warning-bar       { background: #1c1400; border-color: #d97706; color: #fcd34d; }
body.dark-mode .modal-warning-bar strong{ color: #fef08a; }
body.dark-mode .ringkasan-group         { background: #0f172a; border-color: #334155; }
body.dark-mode .ringkasan-row           { border-color: #1e293b; }
body.dark-mode .rk-label                { color: #64748b; }
body.dark-mode .rk-value                { color: #e2e8f0; }
body.dark-mode .checklist-title         { color: #64748b; }
body.dark-mode .checklist-item          { background: #0f172a; border-color: #334155; color: #cbd5e1; }
body.dark-mode .checklist-item:hover    { background: #0c2a3a; border-color: #22d3ee; }
body.dark-mode .checklist-box           { background: #1e293b; border-color: #475569; }
body.dark-mode .modal-action-btns       { border-color: #334155; }
body.dark-mode .btn-modal-edit          { color: #94a3b8; border-color: #334155; }
body.dark-mode .btn-modal-edit:hover    { border-color: #22d3ee; color: #22d3ee; background: #0c2a3a; }
body.dark-mode .btn-modal-kirim         { background: linear-gradient(135deg,#22d3ee,#3b82f6); }
body.dark-mode .btn-modal-kirim:disabled{ background: #334155; color: #475569; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .homecare-hero-overlay { padding: 90px 0 70px; }
    .homecare-hero-overlay h2 { font-size: 2.2rem; }
    .form-wrapper { padding: 28px 22px 36px; }
    .form-header-top { flex-direction: column; align-items: flex-start; }
    .btn-group-form { flex-direction: column; }
    .btn-modern, .btn-reset { width: 100%; justify-content: center; }
}

@media (max-width: 576px) {
    .modal-konfirmasi-box { border-radius: 18px; max-height: 95vh; }
    .modal-konfirmasi-header { padding: 14px 16px; }
    .modal-data-ringkasan  { padding: 12px 14px; }
    .modal-checklist       { padding: 0 14px 14px; }
    .modal-action-btns     { padding: 14px 14px 20px; flex-direction: column; }
    .btn-modal-edit,
    .btn-modal-kirim       { flex: none; width: 100%; min-width: unset; }
    .rk-label              { width: 90px; }
}

/* ============================================================
   UPLOAD KTP — WAJIB
============================================================ */
.ktp-section {
    border: 2px solid #e8ecff;
    border-radius: 16px;
    padding: 18px 20px 14px;
    margin-bottom: 16px;
    background: #f8faff;
    transition: border-color 0.25s;
}

.ktp-section:focus-within,
.ktp-section.ktp-error {
    border-color: #dc2626;
    background: #fff8f8;
}

.ktp-section.ktp-ok {
    border-color: #42b2a6;
    background: #f0fffe;
}

/* Header baris ikon + teks */
.ktp-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.ktp-header-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #42b2a6, #0b3d91);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.ktp-header-text {
    display: flex;
    flex-direction: column;
}

.ktp-header-text strong {
    font-size: 13.5px;
    color: #1e293b;
}

.ktp-header-text small {
    font-size: 12px;
    color: #6b7a99;
    margin-top: 2px;
}

/* Area upload KTP */
.ktp-upload-area {
    border: 2px dashed #c7d2fe;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    overflow: hidden;
    background: #fff;
    position: relative;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ktp-upload-area:hover,
.ktp-upload-area.dragover {
    border-color: #42b2a6;
    background: #f0fffe;
}

.ktp-upload-area.ktp-uploaded {
    border-style: solid;
    border-color: #42b2a6;
    cursor: default;
}

/* Placeholder (belum upload) */
.ktp-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 30px 20px;
    color: #6b7a99;
    text-align: center;
    width: 100%;
}

.ktp-placeholder i    { font-size: 36px; color: #c7d2fe; margin-bottom: 4px; }
.ktp-placeholder p    { font-size: 14px; font-weight: 600; margin: 0; }
.ktp-placeholder small{ font-size: 12px; }

/* Preview (sudah upload) */
.ktp-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 140px;
    position: relative;
}

.ktp-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    padding: 8px;
    display: block;
}

.ktp-preview-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    gap: 10px;
}

.ktp-ok-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(66,178,166,0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.ktp-ok-badge i { font-size: 13px; }

.ktp-del-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(220,38,38,0.88);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.ktp-del-btn:hover { background: rgba(185,28,28,0.95); }

/* Thumbnail KTP di dalam modal ringkasan */
.rk-ktp-thumb-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rk-ktp-thumb {
    width: 64px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1.5px solid #e8ecff;
}

.rk-ktp-name {
    font-size: 12.5px;
    color: #0f766e;
    font-weight: 600;
    word-break: break-all;
}

/* ── Dark Mode KTP ── */
body.dark-mode .ktp-section             { background: #0f172a; border-color: #334155; }
body.dark-mode .ktp-section.ktp-ok      { background: #0c2a2a; border-color: #22d3ee; }
body.dark-mode .ktp-section.ktp-error   { background: #2d0f0f; border-color: #991b1b; }
body.dark-mode .ktp-section:focus-within{ border-color: #991b1b; background: #2d0f0f; }
body.dark-mode .ktp-header-text strong  { color: #e2e8f0; }
body.dark-mode .ktp-header-text small   { color: #94a3b8; }
body.dark-mode .ktp-upload-area         { background: #1e293b; border-color: #334155; }
body.dark-mode .ktp-upload-area:hover,
body.dark-mode .ktp-upload-area.dragover{ background: #1e3a3a; border-color: #22d3ee; }
body.dark-mode .ktp-upload-area.ktp-uploaded { border-color: #22d3ee; }
body.dark-mode .ktp-placeholder         { color: #64748b; }
body.dark-mode .ktp-placeholder i       { color: #334155; }
body.dark-mode .rk-ktp-thumb            { border-color: #334155; }
body.dark-mode .rk-ktp-name             { color: #22d3ee; }