/* Kalkulator Umroh Mandiri — Plugin Styles */

.kumroh-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    background: linear-gradient(160deg, #e8f5e9 0%, #f1f8e9 40%, #ffffff 100%);
    min-height: 100vh;
    box-sizing: border-box;
}

/* Header */
.kumroh-header {
    text-align: center;
    margin-bottom: 28px;
}

.kumroh-icon {
    width: 60px;
    height: 60px;
    background: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.35);
}

.kumroh-title {
    font-size: 26px;
    font-weight: 700;
    color: #2e7d32;
    margin: 0 0 6px;
    line-height: 1.2;
}

.kumroh-subtitle {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* Sections */
.kumroh-section {
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    margin-bottom: 18px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}

.kumroh-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #2e7d32;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8f5e9;
}

.kumroh-section-title svg {
    flex-shrink: 0;
    color: #2e7d32;
}

/* Fields */
.kumroh-field {
    margin-bottom: 16px;
}

.kumroh-field:last-child {
    margin-bottom: 0;
}

.kumroh-field > label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 7px;
}

.kumroh-field > label svg {
    color: #555;
}

.kumroh-field input[type="text"],
.kumroh-field input[type="tel"],
.kumroh-field input[type="email"],
.kumroh-field input[type="number"],
.kumroh-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #dde8dd;
    border-radius: 9px;
    font-size: 14px;
    color: #222;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.kumroh-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23555'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.kumroh-field input:focus,
.kumroh-field select:focus {
    border-color: #43a047;
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.15);
    background: #fff;
}

.kumroh-field input::placeholder {
    color: #aaa;
}

/* Row layout */
.kumroh-row {
    display: flex;
    gap: 12px;
}

.kumroh-row .kumroh-field {
    flex: 1;
    min-width: 0;
}

.kumroh-field-inner {
    flex: 1;
    min-width: 0;
}

.kumroh-field-inner input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #dde8dd;
    border-radius: 9px;
    font-size: 14px;
    color: #222;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.kumroh-field-inner input:focus {
    border-color: #43a047;
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.15);
    background: #fff;
}

.kumroh-field-inner input::placeholder {
    color: #aaa;
}

.kumroh-hint {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    padding-left: 2px;
}

/* Checkboxes */
.kumroh-checkbox-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid #ebebeb;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
}

.kumroh-checkbox-item:last-child {
    margin-bottom: 0;
}

.kumroh-checkbox-item:hover {
    background: #f0faf0;
    border-color: #c8e6c9;
}

.kumroh-checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.kumroh-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 5px;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
}

.kumroh-checkbox-item input[type="checkbox"]:checked ~ .kumroh-checkmark {
    background: #43a047;
    border-color: #43a047;
}

.kumroh-checkbox-item input[type="checkbox"]:checked ~ .kumroh-checkmark::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

.kumroh-checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    color: #222;
    line-height: 1.3;
}

.kumroh-price-tag {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

/* Submit Button */
.kumroh-btn-hitung {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 16px;
    background: #2e7d32;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.35);
    letter-spacing: 0.3px;
}

.kumroh-btn-hitung:hover {
    background: #1b5e20;
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.45);
}

.kumroh-btn-hitung:active {
    transform: scale(0.98);
}

/* Disclaimer */
.kumroh-disclaimer {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 14px;
    margin-bottom: 0;
}

/* Hasil */
.kumroh-hasil {
    background: #fff;
    border-radius: 14px;
    margin-top: 22px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.09);
    animation: kumroh-slide-in 0.35s ease;
}

@keyframes kumroh-slide-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.kumroh-hasil-header {
    background: #2e7d32;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kumroh-hasil-body {
    padding: 18px 22px 22px;
}

.kumroh-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #444;
}

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

.kumroh-breakdown-row span:last-child {
    font-weight: 600;
    color: #222;
}

.kumroh-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 14px 18px;
    background: #e8f5e9;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #1b5e20;
}

.kumroh-total-nilai {
    font-size: 18px;
    color: #2e7d32;
}

.kumroh-per-orang-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 10px 18px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
}

.kumroh-per-orang-row span:last-child {
    font-weight: 600;
    color: #333;
}

/* Catatan biaya tetap */
.kumroh-catatan {
    font-style: normal;
    font-size: 11px;
    color: #888;
    background: #f0f0f0;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Action buttons row — scrollable horizontal on mobile */
.kumroh-aksi-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px; /* cegah shadow tombol terpotong */
}

.kumroh-aksi-row::-webkit-scrollbar {
    display: none;
}

.kumroh-btn-aksi {
    flex: 1 0 auto;
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.kumroh-btn-aksi:active {
    transform: scale(0.97);
}

.kumroh-btn-email {
    background: #1565c0;
    color: #fff;
    box-shadow: 0 3px 10px rgba(21, 101, 192, 0.3);
}

.kumroh-btn-email:hover {
    background: #0d47a1;
    box-shadow: 0 4px 14px rgba(21, 101, 192, 0.4);
}

.kumroh-btn-pdf {
    background: #bf360c;
    color: #fff;
    box-shadow: 0 3px 10px rgba(191, 54, 12, 0.3);
}

.kumroh-btn-pdf:hover {
    background: #8d1f00;
    box-shadow: 0 4px 14px rgba(191, 54, 12, 0.4);
}

/* ── Print / PDF styles ── */
@media print {
    body * { visibility: hidden; }

    .kumroh-wrapper,
    .kumroh-wrapper * { visibility: visible; }

    .kumroh-wrapper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #fff !important;
        padding: 20px 32px;
        box-shadow: none !important;
    }

    #kumroh-form,
    .kumroh-btn-hitung,
    .kumroh-disclaimer,
    .kumroh-aksi-row { display: none !important; }

    .kumroh-hasil {
        display: block !important;
        box-shadow: none !important;
        border: 1px solid #ddd;
        border-radius: 0 !important;
    }

    .kumroh-hasil-header {
        background: #2e7d32 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .kumroh-total-row {
        background: #e8f5e9 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .kumroh-wrapper {
        min-height: unset !important;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .kumroh-wrapper {
        padding: 16px 12px 32px;
    }

    .kumroh-title {
        font-size: 22px;
    }

    .kumroh-row {
        flex-direction: column;
        gap: 0;
    }

    .kumroh-btn-hitung {
        font-size: 15px;
        padding: 14px;
    }
}

/* ═══════════════════════════════════════════════
   v1.2.2 — Validasi & Separator Ribuan
═══════════════════════════════════════════════ */

/* Required star */
.kumroh-req-star {
    color: #d32f2f;
    margin-left: 2px;
    font-weight: 700;
}

.kumroh-required-note {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: #d32f2f;
    font-style: italic;
    letter-spacing: 0;
}

/* Section sub-label */
.kumroh-section-sub {
    margin-left: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    font-style: italic;
}

/* Transport notice */
.kumroh-transport-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 3px solid #f9a825;
    border-radius: 7px;
    padding: 9px 13px;
    font-size: 12px;
    color: #5d4037;
    font-weight: 500;
    margin: 0 0 12px;
    line-height: 1.5;
}

.kumroh-transport-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #f9a825;
}

/* Input error border */
.kumroh-field input.kumroh-input-error,
.kumroh-field select.kumroh-input-error,
.kumroh-field-inner input.kumroh-input-error {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12) !important;
    background: #fff8f8 !important;
}

/* Inline field error message */
.kumroh-field-error {
    display: none;
    font-size: 12px;
    color: #d32f2f;
    margin-top: 5px;
    padding-left: 2px;
    font-weight: 500;
}

/* Error summary block */
.kumroh-error-summary {
    background: #fdecea;
    border: 1px solid #f5c6c4;
    border-left: 4px solid #d32f2f;
    border-radius: 9px;
    padding: 13px 16px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #b71c1c;
    line-height: 1.5;
}

/* Save status (ok / warn) */
.kumroh-save-status {
    font-size: 12px;
    margin-top: 10px;
    min-height: 18px;
}

.kumroh-save-ok   { color: #2e7d32; font-weight: 600; }
.kumroh-save-warn { color: #e65100; }

/* Custom transport checkbox accent */
.kumroh-checkbox-custom {
    border-style: dashed;
    border-color: #c8e6c9;
}

/* Badges */
.kumroh-badge-tetap {
    display: inline-block;
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 4px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.kumroh-badge-estimasi {
    display: inline-block;
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    background: #fff3e0;
    color: #e65100;
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 4px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* WhatsApp button */
.kumroh-btn-wa {
    background: #25d366;
    color: #fff;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
}

.kumroh-btn-wa:hover {
    background: #128c7e;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

/* ═══════════════════════════════════════════════
   v1.2.3 — Tombol Bersihkan Data
═══════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   v1.3.2 — Tombol Order Visa Umroh
═══════════════════════════════════════════════ */

.kumroh-btn-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-top: 14px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 60%, #388e3c 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(27, 94, 32, 0.38);
    letter-spacing: 0.3px;
}

.kumroh-btn-order:hover {
    background: linear-gradient(135deg, #1b5e20 0%, #1b5e20 100%);
    box-shadow: 0 6px 22px rgba(27, 94, 32, 0.50);
    transform: translateY(-1px);
}

.kumroh-btn-order:active {
    transform: scale(0.98);
}

@media print {
    .kumroh-btn-order { display: none !important; }
}

.kumroh-btn-bersih {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: 10px;
    padding: 11px 16px;
    background: #f5f5f5;
    color: #777;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    letter-spacing: 0.2px;
}

.kumroh-btn-bersih:hover {
    background: #fdecea;
    color: #b71c1c;
    border-color: #f5c6c4;
}

.kumroh-btn-bersih:active {
    transform: scale(0.98);
}
