/* ==========================================================================
   1. VARIABLES & GLOBAL STYLES (Sinkron dengan home.css)
   ========================================================================== */
:root {
    --bg-krem: #FDFBF4;
    --cokelat-tua: #5C3200;
    --cokelat-muda: #A05C07;
    --emas-lembut: #D4AF37;
    --bg-input: #F6F1E5; /* Variabel penentu warna kotak input yang sempat hilang */
    --teks-gelap: #2D2D2D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 15px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-krem);
    color: var(--teks-gelap);
    overflow-x: hidden;
    line-height: 1.6; /* Disesuaikan agar teks form tidak terlalu renggang */
}

/* ==========================================================================
   2. STRUKTUR UTAMA & NAVBAR
   ========================================================================== */
.order-section {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

/* Mengikuti font & layout asli dari header.css */
body .custom-navbar {
    background-color: rgba(253, 251, 244, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ==========================================================================
   3. TYPOGRAPHY KONTEN (Sesuai Skala Halus Halaman Home)
   ========================================================================== */
.order-section h2 {
    font-size: 1.25rem; 
    font-weight: 700;
    margin-bottom: 8px;
}

.order-section p.text-muted {
    font-size: 0.82rem; 
    line-height: 1.6;
}

/* ==========================================================================
   4. KOMPONEN FORMULIR (Kotak Kembali Muncul & Super Slim)
   ========================================================================== */
.form-container-box {
    background-color: white;
    border-radius: 16px;
    padding: 20px 22px; 
    box-shadow: 0 10px 35px rgba(92, 50, 0, 0.02);
}

.form-container-box .form-label {
    font-size: 0.75rem;  
    margin-bottom: 4px;
    color: var(--teks-gelap);
    font-weight: 500;
}

/* Kotak input form (Nama, Tanggal, dll) */
.form-container-box .form-control {
    background-color: var(--bg-input); 
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem; 
    height: 36px;       
    color: var(--teks-gelap);
}

.form-container-box .form-control:focus {
    box-shadow: 0 0 0 2px var(--cokelat-muda);
    background-color: var(--bg-input);
}

.form-container-box textarea.form-control {
    height: auto;
    min-height: 70px;
}

/* Kotak Khusus WhatsApp Group (+62) */
.form-container-box .input-group {
    border-radius: 8px;
    overflow: hidden;
}

.form-container-box .input-group-text {
    background-color: #EFE9DB;
    border: none;
    font-size: 0.8rem;
    padding-left: 12px;
    padding-right: 12px;
    color: #7c7567;
}

/* ==========================================================================
   5. TOMBOL KUANTITAS JUMLAH PESANAN (+ / -)
   ========================================================================== */
.form-container-box .quantity-wrapper {
    height: 36px; 
    border-radius: 8px;
}

.form-container-box .quantity-btn {
    width: 36px;
    background-color: #FAF6ED;
    border: none;
    color: var(--cokelat-tua);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.form-container-box .quantity-input.bg-input-custom {
    background-color: #FAF6ED;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--cokelat-tua);
    padding: 0;
    height: 100%;
}

.form-container-box .quantity-btn:hover { background-color: #EFEAE0; }
.form-container-box .quantity-btn:active { background-color: #E5DEC9; }

/* ==========================================================================
   6. BOX RINGKASAN & BUTTON SUBMIT
   ========================================================================== */
.form-container-box .summary-box {
    background-color: #F6F2E8;
    border-radius: 12px;
    padding: 12px;
}

.form-container-box .tracking-wide {
    font-size: 0.68rem;
    letter-spacing: 0.5px;
}

.form-container-box .summary-box .d-flex span {
    font-size: 0.78rem;
}

.form-container-box .summary-box h5 {
    font-size: 0.78rem;
}

.form-container-box .summary-box h4 {
    font-size: 1.05rem;
}

.form-container-box .btn-submit-order {
    background-color: var(--cokelat-tua);
    color: white;
    border-radius: 40px; 
    padding: 9px 18px;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    transition: all 0.3s ease;
}

.form-container-box .btn-submit-order:hover {
    background-color: var(--cokelat-muda);
    transform: translateY(-2px);
}

/* ==========================================================================
   7. MEDIA QUERIES RESPONSIVE (Mengikuti Standar Skala home.css)
   ========================================================================== */
@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    .order-section .container {
        padding-left: 18px;
        padding-right: 18px;
    }
    .order-section img {
        width: 100%;
        height: auto !important;
        object-fit: cover;
    }
    .form-container-box {
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .form-container-box .row.g-3 {
        gap: 1rem !important;
    }
    .form-container-box .quantity-wrapper {
        max-width: 100%;
    }
    .form-container-box .d-flex.justify-content-between {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .summary-box .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 13px;
    }
    .order-section {
        padding-top: 45px;
        padding-bottom: 45px;
    }
    .form-container-box {
        padding: 16px;
    }
    .form-container-box .form-label {
        font-size: 0.72rem;
    }
    .form-container-box .form-control,
    .form-container-box .input-group-text {
        font-size: 0.82rem;
    }
    .btn-submit-order {
        font-size: 0.86rem;
        padding: 10px 16px;
    }
}
