/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Skema Warna Ladanya: Gold & Dark Premium */
    --primary: #B8860B;
    /* Dark Goldenrod / Gold */
    --primary-dark: #8B6508;
    --primary-light: #FFF8E1;
    /* Gold muda banget untuk background */
    --accent: #212529;
    /* Dark Black/Grey */

    --bg: #f4f4f4;
    --white: #ffffff;
    --text: #333333;
    --text-muted: #666666;
    --border: #e0e0e0;

    --radius: 12px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
.kategori-title,
.opt-title {
    font-family: 'Playfair Display', serif;
    /* Font Serif untuk kesan Premium */
}

body {
    background-color: var(--bg);
    color: var(--text);
    padding: 20px 15px;
    line-height: 1.5;
    font-size: 14px;
    background-image: 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='%23d4a373' fill-opacity='0.05'%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");
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 100px;
}

/* =========================================
   2. HEADER
   ========================================= */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 200px;
    /* Ukuran logo disesuaikan */
    width: 100%;
    height: auto;
    margin: 0 auto 10px auto;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.header h1 {
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.header p {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   3. CARDS & FORM ELEMENTS
   ========================================= */
.card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent);
    font-weight: 700;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    display: inline-block;
}

.form-group {
    margin-bottom: 18px;
}

.row {
    display: flex;
    gap: 12px;
}

.col {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="file"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.2);
}

/* =========================================
   4. MENU STYLES
   ========================================= */
.info-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--primary-light);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ffeeba;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-group {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.menu-group.active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.menu-header {
    background: var(--accent);
    /* Header Menu Hitam */
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.kategori-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #eebb4d;
    /* Teks Gold di atas Hitam */
    letter-spacing: 0.5px;
}

.toggle-icon {
    color: #eebb4d;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.menu-group.active .toggle-icon {
    transform: rotate(180deg);
}

.menu-content {
    display: none;
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid var(--border);
}

.menu-group.active .menu-content {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

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

.promo-poster {
    margin-bottom: 20px;
    text-align: center;
}

.promo-poster img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--primary);
}

.menu-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 550px) {
    .menu-list {
        grid-template-columns: 1fr 1fr;
    }
}

.menu-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.menu-wrapper:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.menu-item-qty {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: #fff;
}

.menu-desc {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}

.menu-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
    font-style: italic;
}

.menu-price {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 700;
    margin-top: 5px;
}

.qty-input {
    width: 55px !important;
    height: 40px !important;
    padding: 0 !important;
    text-align: center;
    border: 1px solid #ced4da !important;
    background-color: #fcfcfc !important;
    font-weight: bold;
    color: var(--accent);
    border-radius: 8px !important;
    font-size: 1.1rem !important;
}

.qty-input:focus {
    background-color: #fff !important;
    border-color: var(--primary) !important;
}

.menu-note {
    width: 100%;
    border: none !important;
    border-top: 1px solid #f1f1f1 !important;
    border-radius: 0 !important;
    padding: 10px 15px !important;
    font-size: 0.8rem !important;
    background: #fdfdfd !important;
    color: #555;
    font-style: italic;
}

.menu-note:focus {
    background: #fff !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02) !important;
    color: #000;
}

/* =========================================
   5. PAYMENT SELECTION
   ========================================= */
.payment-selection-container {
    margin-bottom: 20px;
}

.payment-label-title {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    position: relative;
}

.payment-option:hover {
    border-color: #bbb;
}

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

.payment-option:has(input:checked) {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
}

.payment-option input:checked+.custom-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.payment-option input:checked+.custom-radio {
    border-color: var(--primary);
}

.option-text {
    display: flex;
    flex-direction: column;
}

.opt-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent);
}

.opt-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =========================================
   6. SUMMARY & BUTTONS
   ========================================= */
.summary-card {
    background-color: #fff;
    border: 2px solid var(--primary);
    /* Border Gold */
    position: relative;
    overflow: hidden;
}

.qris-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: var(--radius);
    border: 2px dashed #ccc;
}

.qris-label {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}

.qris-img {
    width: 100%;
    max-width: 250px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--text);
}

.highlight-row {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.25rem;
    border-top: 2px dashed #dee2e6;
    padding-top: 15px;
    margin-top: 15px;
}

.bank-info {
    background: var(--primary-light);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    color: var(--primary-dark);
    border: 1px solid rgba(184, 134, 11, 0.3);
}

.bank-info strong {
    display: block;
    font-size: 1.1rem;
    margin-top: 4px;
    color: var(--accent);
}

.btn-primary {
    width: 100%;
    padding: 18px;
    background-color: var(--primary);
    /* Tombol Gold */
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.3);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
}

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

/* =========================================
   7. UTILITIES & FOOTER
   ========================================= */
.status-text {
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    font-weight: 600;
}

.text-danger {
    color: #dc3545;
}

.text-success {
    color: #198754;
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

input.flatpickr-input {
    background-color: #fff;
    cursor: pointer;
    background-image: url('https://cdn-icons-png.flaticon.com/512/2693/2693507.png');
    background-size: 16px;
    background-position: right 15px center;
    background-repeat: no-repeat;
}

/* Sticky Footer Elegant */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.95);
    /* Footer Hitam */
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-top: 2px solid var(--primary);
}

.sticky-info {
    display: flex;
    flex-direction: column;
}

.sticky-info small {
    color: #ccc;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.sticky-info span {
    color: var(--primary);
    /* Angka Gold */
    font-weight: 800;
    font-size: 1.3rem;
    font-family: 'Playfair Display', serif;
}

.btn-sticky {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.1s, background-color 0.2s;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.4);
}

.btn-sticky:hover {
    background-color: var(--primary-dark);
}

.btn-sticky:active {
    transform: scale(0.95);
}