/* ===================================================================
   Jip Yajman Booking Engine PRO — Frontend Styles v2.3.0
   Full redesign — spiritual premium theme
   =================================================================== */

.jip-booking-wrap *,
.jip-booking-wrap *::before,
.jip-booking-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.jip-booking-wrap {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #2d1a0e;
    max-width: 1140px;
    margin: 0 auto 48px;
}

/* ── WooCommerce missing notice ─────────────────────────────────── */
.jip-wc-notice {
    background: #fef9c3;
    border: 1px solid #fde047;
    color: #854d0e;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
}

/* ── Event Hero Banner ──────────────────────────────────────────── */
.jip-event-hero {
    background: linear-gradient(135deg, #4a0e00 0%, #7b2d00 40%, #c8510a 100%);
    border-radius: 16px;
    padding: 36px 40px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.jip-event-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.jip-event-om {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.9;
    display: block;
}

.jip-event-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.jip-event-subtitle {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 22px;
    font-style: italic;
}

.jip-event-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.jip-event-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

/* ── Urgency Banner ─────────────────────────────────────────────── */
.jip-urgency-banner {
    background: linear-gradient(90deg, #7b2d00 0%, #c8510a 100%);
    color: #fff;
    text-align: center;
    padding: 11px 20px;
    border-radius: 0 0 10px 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 28px;
    animation: jip-pulse 3s ease-in-out infinite;
}

@keyframes jip-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.85; }
}

/* ── Step Progress Bar ──────────────────────────────────────────── */
.jip-steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}

.jip-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 160px;
    position: relative;
}

.jip-step-item::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 2px;
    background: #e0d5cc;
}

.jip-step-item:last-child::after {
    display: none;
}

.jip-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8e2da;
    color: #aaa;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: background 0.3s, color 0.3s;
}

.jip-step-item.active .jip-step-circle {
    background: linear-gradient(135deg, #c8510a, #e67e22);
    color: #fff;
    box-shadow: 0 4px 14px rgba(200,81,10,0.4);
}

.jip-step-item.done .jip-step-circle {
    background: #c8510a;
    color: #fff;
}

.jip-step-label {
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jip-step-item.active .jip-step-label,
.jip-step-item.done .jip-step-label {
    color: #c8510a;
}

/* ── Section wrapper ────────────────────────────────────────────── */
.jip-section {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.07);
    margin-bottom: 0;
}

.jip-step-hidden {
    display: none !important;
}

.jip-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #2d1a0e;
    text-align: center;
    margin-bottom: 28px;
}

.jip-section-subtitle {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-top: -18px;
    margin-bottom: 28px;
}

/* ── Package Cards Grid ─────────────────────────────────────────── */
.jip-packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
}

.jip-pkg-card {
    position: relative;
    background: #fff;
    border: 2px solid #ede7df;
    border-radius: 14px;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.jip-pkg-card::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg, #e0d5cc, #c8a882);
    transition: background 0.2s;
}

.jip-pkg-card:hover {
    border-color: #c8510a;
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(200, 81, 10, 0.15);
}

.jip-pkg-card:hover::before,
.jip-pkg-card.jip-pkg-selected::before {
    background: linear-gradient(90deg, #c8510a, #e67e22);
}

.jip-pkg-featured::before {
    background: linear-gradient(90deg, #7b2d00, #c8510a, #f59e0b) !important;
}

.jip-pkg-card.jip-pkg-selected {
    border-color: #c8510a;
    box-shadow: 0 0 0 3px rgba(200, 81, 10, 0.2), 0 8px 28px rgba(200,81,10,0.12);
}

.jip-pkg-inner {
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.jip-pkg-badge {
    position: absolute;
    top: 14px;
    right: -1px;
    background: linear-gradient(90deg, #7b2d00, #c8510a);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px 4px 10px;
    border-radius: 3px 0 0 3px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.2);
}

.jip-pkg-type {
    font-size: 11px;
    font-weight: 700;
    color: #c8510a;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}

.jip-pkg-name {
    font-size: 16px;
    font-weight: 800;
    color: #2d1a0e;
    margin-bottom: 14px;
    line-height: 1.35;
}

.jip-pkg-price-wrap {
    background: linear-gradient(135deg, #fef8f3, #fef0e5);
    border-radius: 10px;
    padding: 14px 10px;
    margin-bottom: 18px;
}

.jip-pkg-price {
    font-size: 34px;
    font-weight: 900;
    color: #c8510a;
    letter-spacing: -1px;
    line-height: 1;
}

.jip-pkg-price-label {
    font-size: 11px;
    color: #aaa;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jip-pkg-includes {
    list-style: none;
    text-align: left;
    flex: 1;
    margin-bottom: 20px;
}

.jip-pkg-includes li {
    font-size: 12.5px;
    color: #555;
    padding: 5px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 1px solid #f5f0eb;
    line-height: 1.5;
}

.jip-pkg-includes li:last-child {
    border-bottom: none;
}

.jip-pkg-includes li::before {
    content: '✦';
    color: #c8510a;
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 3px;
}

.jip-pkg-duration-tag {
    display: inline-block;
    background: #f5f0eb;
    color: #7b2d00;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.jip-select-pkg-btn {
    width: 100%;
    background: #fff;
    color: #c8510a;
    border: 2px solid #c8510a;
    border-radius: 8px;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.jip-select-pkg-btn:hover {
    background: linear-gradient(135deg, #c8510a, #e67e22);
    color: #fff;
    border-color: transparent;
    transform: scale(1.02);
}

.jip-pkg-card.jip-pkg-selected .jip-select-pkg-btn {
    background: linear-gradient(135deg, #c8510a, #e67e22);
    color: #fff;
    border-color: transparent;
}

.jip-pkg-featured .jip-select-pkg-btn {
    background: linear-gradient(135deg, #7b2d00, #c8510a);
    color: #fff;
    border-color: transparent;
}

/* ── Step nav (after packages) ──────────────────────────────────── */
.jip-pkg-cta-row {
    text-align: center;
    margin-top: 28px;
}

/* ── Add-on card ────────────────────────────────────────────────── */
.jip-addon-card {
    background: linear-gradient(135deg, #fffbf5, #fff8ee);
    border: 2px dashed #e6b07e;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 28px;
}

.jip-addon-label {
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
}

.jip-addon-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #c8510a;
    cursor: pointer;
    flex-shrink: 0;
}

.jip-addon-info {
    flex: 1;
}

.jip-addon-info strong {
    display: block;
    font-size: 16px;
    color: #2d1a0e;
    margin-bottom: 4px;
}

.jip-addon-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

.jip-addon-price {
    font-size: 22px;
    font-weight: 900;
    color: #c8510a;
    white-space: nowrap;
}

/* ── Order Summary ──────────────────────────────────────────────── */
.jip-summary-card {
    background: linear-gradient(135deg, #fef8f3, #fff5eb);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
    border: 1px solid #f0e6d8;
}

.jip-summary-card-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c8510a;
    margin-bottom: 14px;
}

.jip-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #ede6dc;
}

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

.jip-summary-total {
    margin-top: 4px;
    padding-top: 12px;
    font-size: 16px;
    font-weight: 800;
    color: #2d1a0e;
}

.jip-summary-total strong {
    color: #c8510a;
    font-size: 22px;
}

/* ── Booking Form ───────────────────────────────────────────────── */
.jip-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 0;
}

.jip-form-row {
    margin-bottom: 0;
}

.jip-form-row.full {
    grid-column: 1 / -1;
}

.jip-form-row label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #5a3c28;
    margin-bottom: 7px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.jip-req { color: #c8510a; }

.jip-optional {
    font-weight: 400;
    color: #bbb;
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
}

.jip-form-row input[type="text"],
.jip-form-row input[type="tel"],
.jip-form-row input[type="email"] {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e8ddd5;
    border-radius: 10px;
    font-size: 15px;
    color: #2d1a0e;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.jip-form-row input:focus {
    outline: none;
    border-color: #c8510a;
    box-shadow: 0 0 0 3px rgba(200, 81, 10, 0.1);
}

/* ── Form messages ──────────────────────────────────────────────── */
.jip-form-message {
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 18px;
    margin-bottom: 0;
}

.jip-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.jip-success-msg {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #15803d;
}

/* ── Payment CTA row ────────────────────────────────────────────── */
.jip-payment-cta-note {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 14px;
}

/* ── Navigation buttons ─────────────────────────────────────────── */
.jip-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.jip-btn {
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.3px;
}

.jip-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.jip-btn-back {
    background: #f3ede8;
    color: #7b2d00;
}

.jip-btn-back:hover { background: #ebe2da; }

.jip-btn-next {
    background: linear-gradient(135deg, #c8510a, #e67e22);
    color: #fff;
    margin-left: auto;
    box-shadow: 0 4px 16px rgba(200,81,10,0.35);
}

.jip-btn-next:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,81,10,0.4);
}

.jip-btn-submit {
    background: linear-gradient(135deg, #1a6b37, #22a85a);
    color: #fff;
    min-width: 220px;
    font-size: 16px;
    box-shadow: 0 4px 18px rgba(22, 101, 52, 0.32);
}

.jip-btn-submit:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(22, 101, 52, 0.4);
}

/* ── Spinner ────────────────────────────────────────────────────── */
.jip-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: jip-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}

@keyframes jip-spin { to { transform: rotate(360deg); } }

/* ── Success Screen ─────────────────────────────────────────────── */
.jip-success-wrap {
    text-align: center;
    padding: 20px 20px 10px;
}

.jip-success-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 18px;
    animation: jip-bounce 0.6s ease;
}

@keyframes jip-bounce {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

.jip-success-wrap h2 {
    font-size: 28px;
    font-weight: 900;
    color: #2d1a0e;
    margin-bottom: 12px;
}

.jip-success-wrap > p {
    font-size: 15px;
    color: #666;
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.jip-success-detail {
    background: linear-gradient(135deg, #fef8f3, #fff5eb);
    border: 1px solid #f0e6d8;
    border-radius: 12px;
    padding: 20px 28px;
    text-align: left;
    font-size: 14px;
    line-height: 2;
    max-width: 420px;
    margin: 0 auto;
    color: #444;
}

/* ── No packages ────────────────────────────────────────────────── */
.jip-no-packages {
    text-align: center;
    color: #888;
    padding: 60px 20px;
    font-size: 15px;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .jip-packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .jip-event-title { font-size: 20px; }
}

@media (max-width: 600px) {
    .jip-event-hero { padding: 28px 20px; }
    .jip-event-title { font-size: 17px; }
    .jip-section { padding: 24px 16px; }
    .jip-packages-grid { grid-template-columns: 1fr; gap: 14px; }
    .jip-form-grid { grid-template-columns: 1fr; }
    .jip-step-nav { flex-direction: column; }
    .jip-btn { width: 100%; text-align: center; }
    .jip-btn-next, .jip-btn-submit { margin-left: 0; }
    .jip-addon-label { flex-wrap: wrap; }
    .jip-addon-price { width: 100%; text-align: right; }
    .jip-steps-bar { gap: 0; }
    .jip-step-label { display: none; }
}
