:root {
    /* Branding Colors */
    --bg-color: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --primary-color: #000000;
    --secondary-color: #f3f4f6;
    --border-color: #e5e7eb;
    --accent-color: #3b82f6;
    --error-color: #ef4444;
    --success-color: #10b981;

    /* Paper Journal Configs */
    --j-body-color: #0955a0;
    /* default biru tua */
    --j-flap-color: #e94630;
    /* default orange */
    --j-strap-color: #f05e37;
    /* default orange */
}

/* User Provided Color Palette */
/* Cover/Flap: Putih Tulang #e6e3da, Beige Krem #bbb6ad, Coklat Muda #c1a88a, Kuning Muda #e7dd5e, Kuning #dccf43,
   Orange #e94630, Merah #d7181e, Pink Muda #e4b9c8, Pink Tua #d9417e, Ungu Muda #827cba, Ungu Tua #7e4da5,
   Biru Pastel #7dc9f0, Biru Tua #0955a0, Mint #8ebc9f, Hijau Pastel #aecdbb, Hijau Tua #0c5c3c,
   Coklat #764432, Hitam #2f2f31
   Tali: Putih #ebe5e5, Cream #cfac8c, Kuning #fde355, Stabilo #9dde6d, Orange #f05e37, Merah #b71c2c,
   Pink #f3c3b9, Pink Magenta #b65179, Ungu #692f4a, Hijau #97ab52, Tosca #77b59b, Biru Muda #5cd0ea,
   Biru Tua #171635, Abu Abu #6c6f79, Coklat #633114, Hitam #110d0c
*/

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.brand {
    margin-bottom: 2rem;
}

.brand-logo {
    height: 80px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.brand p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.25rem;
}

.hero-content h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.workshop-details {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: white;
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
}

.urgency-badge {
    position: absolute;
    top: -14px;
    right: 16px;
    background: var(--error-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.urgency-badge.show {
    opacity: 1;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.urgency-badge i {
    width: 14px;
    height: 14px;
    color: #fef08a;
}

.session-item {
    align-items: flex-start;
    /* Ubah agar icon sejajar dengan label atas */
    padding-top: 4px;
    /* Slight offset untuk icon calendar */
}

.session-item .input-wrapper select {
    padding: 0.5rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 2px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
}

.session-item .input-wrapper select:focus {
    border-color: var(--accent-color);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.detail-item i {
    color: var(--text-secondary);
    width: 20px;
    height: 20px;
}

.detail-item.price {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
}

.price-box {
    display: flex;
    flex-direction: column;
}

.discount-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--error-color);
}

.new-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--success-color);
    animation: heartbeat 1.5s infinite;
    transform-origin: left center;
}

/* Early Bird Info Badge */
.early-bird-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #92400e;
}

.early-bird-info i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #f59e0b;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.1);
        color: #059669;
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.1);
        color: #059669;
    }

    60% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

.location-link {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--border-color);
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.location-link:hover {
    color: var(--accent-color);
    text-decoration-color: var(--accent-color);
}

.detail-item.price i {
    color: var(--success-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.social-btn:active,
.social-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.social-btn i {
    width: 16px;
    height: 16px;
}

/* --- Main Container --- */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Visualizer --- */
.visualizer-section {
    margin-bottom: 3rem;
}

.color-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: #1e40af;
    line-height: 1.45;
}

.color-disclaimer i {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #3b82f6;
}

.journal-preview-container {
    background: #e9ecef;
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    /* Soft checkerboard background representation if wanted */
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Journal CSS Art */
.journal-model {
    position: relative;
    width: 260px;
    height: 160px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.journal-body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--j-body-color);
    border-radius: 8px;
    transition: background-color 0.4s ease;
    z-index: 1;
    overflow: hidden;
}

/* Adding texture or pattern to body based on photo */
.body-pattern {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 60px;
    /* Simulating the pattern shown in user pic implicitly with borders */
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.journal-flap {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 70%;
    background-color: var(--j-flap-color);
    border-radius: 0 0 16px 16px;
    z-index: 2;
    transition: background-color 0.4s ease;
    /* Simulate the zig-zag top edge */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 15px;
}

.flap-stitch {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 0 0 12px 12px;
    pointer-events: none;
}

.flap-strap {
    position: absolute;
    top: -20px;
    bottom: -60px;
    /* extends down to hold body */
    width: 4px;
    background-color: var(--j-strap-color);
    /* strap color */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    transition: background-color 0.4s ease;
}

.charm-badge {
    position: relative;
    z-index: 4;
    background: #1e3a8a;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid gold;
    transform: translateY(20px);
}

.charm-icon {
    color: gold;
    width: 20px;
    height: 20px;
}

.color-indicator {
    position: absolute;
    bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 99px;
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Color Pickers */
.picker-group {
    margin-bottom: 1.5rem;
}

.picker-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
}

.color-btn {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: var(--primary-color);
    transform: scale(1.15);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-color);
}

/* Disabled / Sold Out Colors */
.color-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.color-btn.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -2px;
    right: -2px;
    height: 2px;
    background: rgba(0, 0, 0, 0.55);
    transform: rotate(-45deg);
    border-radius: 2px;
}

.color-btn.disabled:hover {
    transform: none;
}

/* Special borders for white/light colors */
.color-btn[data-color="#e6e3da"],
.color-btn[data-color="#bbb6ad"],
.color-btn[data-color="#ebe5e5"],
.color-btn[data-color="#f3c3b9"],
.color-btn[data-color="#e4b9c8"],
.color-btn[data-color="#fde355"],
.color-btn[data-color="#7dc9f0"],
.color-btn[data-color="#aecdbb"] {
    border: 1px solid #d1d5db;
}

/* --- Forms --- */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Diperkecil dari 1rem agar ikon & tulisan dekat */
}

.input-wrapper i {
    color: var(--text-primary);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 1rem 1rem;
    /* Hilangkan padding berlebihan di sisi default kiri */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: white;
    /* Konsisten semua kotak input putih */
    color: var(--text-primary);
    /* Untuk menormalkan select panah OS */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Kustomisasi khusus select agar berpanah */
.input-wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.help-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    background: white;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 140px;
}

.upload-area:hover {
    border-color: var(--text-primary);
    background: var(--secondary-color);
}

.upload-area i {
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
}

.upload-area span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.preview-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
    background: white;
    display: none;
}

.upload-area.has-image .preview-img {
    display: block;
}

.upload-area.has-image i,
.upload-area.has-image span {
    display: none;
}

/* Payment Info Box */
.payment-info {
    background: #fdfae6;
    /* soft yellow warning */
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #fef08a;
    margin-bottom: 0.5rem;
}

.non-refund-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    color: #7f1d1d;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.non-refund-notice i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #ef4444;
    margin-top: 1px;
}

.non-refund-notice strong {
    color: #dc2626;
}


.payment-info h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.payment-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.bank-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.bank-name {
    font-weight: 700;
    color: #0066AE;
    /* bca blue */
    font-size: 1.1rem;
}

.bank-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
}

.bank-account span {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.copy-btn:active {
    background: #eff6ff;
}

.bank-owner {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--text-primary);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s, background-color 0.2s;
    margin-top: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

.submit-btn:disabled {
    background-color: #a1a1aa;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn i {
    width: 20px;
    height: 20px;
}

/* Status Message */
.status-message {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.status-message.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
}

.status-message.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
}

/* --- Toast Alert --- */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    background: #111827;
    color: white;
    padding: 12px 24px;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    animation: fadeUp 0.3s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Full Page Blocker Loader --- */
#blockerLoader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#blockerLoader.visible {
    opacity: 1;
    pointer-events: all;
}

.blocker-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding: 2rem;
}

.blocker-content p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    max-width: 280px;
}

.blocker-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
}

@keyframes spinLoader {
    to {
        transform: rotate(360deg);
    }
}

.lucide-spin {
    animation: spinLoader 0.8s linear infinite;
}

.blocker-error {
    gap: 0.75rem;
}

.blocker-error p {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    max-width: 260px;
}

.blocker-retry-btn {
    margin-top: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 99px;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, opacity 0.2s;
}

.blocker-retry-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
/* ============================================================
   DARK MODE — remap token + darken chrome (ilustrasi jurnal --j-* dibiarkan)
   Aktif kalau <html data-theme="dark"> (di-set theme.js dari localStorage)
   ============================================================ */
:root[data-theme="dark"] {
    --bg-color: #0d1526;
    --text-primary: #eaeffc;
    --text-secondary: #9fabc9;
    --secondary-color: #202c47;
    --border-color: #2a3550;
    --primary-color: #5b8cff;
}
:root[data-theme="dark"] .hero {
    background: linear-gradient(to bottom, #172035, #0d1526);
}
:root[data-theme="dark"] .workshop-details,
:root[data-theme="dark"] .bank-card,
:root[data-theme="dark"] .social-btn,
:root[data-theme="dark"] .preview-img,
:root[data-theme="dark"] .upload-area {
    background: #172035;
    color: var(--text-primary);
}
:root[data-theme="dark"] .input-wrapper input,
:root[data-theme="dark"] .input-wrapper select {
    background-color: #172035;
    color: var(--text-primary);
}
:root[data-theme="dark"] .social-btn:hover,
:root[data-theme="dark"] .upload-area:hover {
    background: #202c47;
}
