@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
    --primary-color: #0F2027; /* Deep Navy */
    --secondary-color: #203A43;
    --accent-color: #d4af37; /* Gold Luxury */
    --accent-hover: #b4932a;
    --bg-gradient: linear-gradient(135deg, #0F2027, #203A43, #2C5364);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.glass-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    overflow: hidden;
    max-width: 1000px; 
    width: 100%;
    margin: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.left-panel {
    background-color: #1e3c72; 
    min-height: 500px;
    position: relative;
    border-right: 1px solid #eee;
}

.left-panel::after, 
.left-panel::before {
    display: none !important;
    content: none !important;
}

.left-content {
    position: relative;
    z-index: 10;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); 
}

h1.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.form-control, .form-select {
    border-radius: 12px;
    padding: 12px 15px;
    border: 2px solid #eef2f6;
    background-color: #f8faff;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    background-color: #fff;
    outline: none;
}

.btn-generate {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 15px;
    border-radius: 12px;
    border: none;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    font-size: 1rem;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.4);
    color: white;
}

.btn-generate:disabled {
    background: #ccc;
    transform: none;
    cursor: not-allowed;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-card {
    position: relative;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #eef2f6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-label:hover {
    border-color: #ddd;
    background-color: #fcfcfc;
}

.option-card input[type="radio"]:checked + .option-label {
    border-color: var(--accent-color);
    background-color: #fffcf2; /* Warna emas sangat muda */
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.icon-box {
    width: 42px;
    height: 42px;
    background: #eef2f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--secondary-color);
    transition: 0.3s;
    flex-shrink: 0;
}

.option-card input[type="radio"]:checked + .option-label .icon-box {
    background: var(--accent-color);
    color: white;
}

#voucherResult {
    animation: fadeIn 0.5s ease;
}

.ticket-wrapper {
    background: white;
    border-radius: 16px;
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.ticket-header {
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 20px;
    text-align: center;
    border-bottom: 2px dashed rgba(255,255,255,0.3);
    position: relative;
}

.ticket-header h2 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.ticket-header::after, .ticket-header::before {
    content: '';
    position: absolute;
    bottom: -12px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    box-shadow: inset 0 0 0 10px #fff; 
    z-index: 2;
}
.ticket-header::after { right: -14px; }
.ticket-header::before { left: -14px; }

.ticket-body {
    padding: 25px 20px;
    text-align: center;
}

.benefit-badge {
    background: #fffcf2;
    color: #c0392b;
    border: 1px dashed var(--accent-color);
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 1rem;
    font-weight: 700;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .glass-container {
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
    }
    body {
        padding: 0;
        background: #fff;
    }
    .left-panel {
        min-height: 200px;
        border-radius: 0 0 20px 20px;
    }
    .left-content {
        padding: 20px;
    }
    h1.brand-title {
        font-size: 1.8rem;
    }
}

@media print {
    body * { visibility: hidden; }
    #voucherResult, #voucherResult * { visibility: visible; }
    #voucherResult {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .btn-action-group, .navbar, .left-panel { display: none !important; }
    .glass-container { border: none; box-shadow: none; }
}