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

* {
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, sans-serif;
}

body {
    background: radial-gradient(circle at 20% 20%, #e60026 0%, #4a000b 50%, #1a0004 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2b2b2b;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Ambient Glow FX */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 77, 77, 0.3) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 760px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(230, 0, 38, 0.2);
}

.header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.5);
}

.header h2 {
    color: #8b0010;
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 0;
    line-height: 1.4;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #b30012 0%, #e60026 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
    font-weight: 500;
}

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

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

.col {
    flex: 1;
}

label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #333;
    letter-spacing: 0.2px;
}

input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="number"], 
input[type="file"],
select.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e1e1e1;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fdfdfd;
    color: #2b2b2b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="tel"]:focus, 
input[type="number"]:focus,
select.form-control:focus {
    border-color: #e60026;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(230, 0, 38, 0.15);
}

input[readonly] {
    background: #f1f3f5;
    color: #777;
    border-color: #e5e5e5;
    cursor: not-allowed;
}

/* Styling Checkbox Group Futuristik */
.checkbox-group {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.checkbox-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    cursor: pointer;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.checkbox-item:hover {
    background: #fff5f5;
}

.checkbox-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #e60026;
    cursor: pointer;
}

.item-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
}

.item-price {
    font-weight: 700;
    font-size: 0.92rem;
    color: #b30012;
    background: #ffe6e6;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Total Display Box Mewah */
.total-box {
    background: linear-gradient(135deg, #1e0005 0%, #4a000b 100%);
    border-radius: 14px;
    padding: 22px 28px;
    text-align: right;
    margin: 30px 0;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(74, 0, 11, 0.4);
    position: relative;
    overflow: hidden;
}

.total-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(230, 0, 38, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.total-box h3 {
    margin: 0;
    font-size: 0.9rem;
    color: #ffcccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.total-box h2 {
    margin: 6px 0 0;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(255, 77, 77, 0.5);
}

/* Tombol Submit Neon Gradient */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e60026 0%, #8b0010 100%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(230, 0, 38, 0.35);
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(230, 0, 38, 0.5);
    background: linear-gradient(135deg, #ff1a3c 0%, #a30013 100%);
}

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

/* Custom Scrollbar untuk Checkbox Group */
.checkbox-group::-webkit-scrollbar {
    width: 6px;
}
.checkbox-group::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.checkbox-group::-webkit-scrollbar-thumb {
    background: #e60026;
    border-radius: 10px;
}

/* Styling Modal Pop-up Konfirmasi Instan */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 0, 3, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #ffffff;
    padding: 32px;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(230, 0, 38, 0.3);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header h3 {
    color: #8b0010;
    margin-top: 0;
    font-size: 1.4rem;
    font-weight: 800;
}

.access-key-box {
    background: #fff0f2;
    border: 2px dashed #e60026;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#modalAccessKey {
    font-size: 1.3rem;
    font-weight: 800;
    color: #b30012;
    letter-spacing: 1.5px;
}

#copyKeyBtn {
    background: #e60026;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background 0.2s;
}

#copyKeyBtn:hover {
    background: #8b0010;
}

.email-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 15px;
    line-height: 1.4;
}

.btn-close {
    background: #1e293b;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-close:hover {
    background: #334155;
}

/* Responsive Grid untuk Layar HP */
@media (max-width: 600px) {
    .row {
        flex-direction: column;
        gap: 0;
    }
    .container {
        padding: 24px;
    }
    .total-box h2 {
        font-size: 1.7rem;
    }
}
