/* BASE STYLES */
#QBody {
    font-family: 'Poppins', sans-serif;
    background: #fdf6ec;
    color: #7a5c1e;
    padding-bottom: 60px;
    line-height: 1.6;
    margin: 0;
    scroll-behavior: smooth;
    padding: 0;
    box-sizing: border-box;
}

/* HEADER */
#Qheader {
    background: linear-gradient(120deg, #f7e9ce 0%, #e8d3a1 100%), repeating-linear-gradient(135deg, rgba(255,255,255,0.10) 0 2px, transparent 2px 40px), repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 4px, transparent 4px 48px);
    color: #7a5c1e;
    text-align: center;
    padding: 64px 20px 44px 20px;
    box-shadow: 0 8px 32px 0 rgba(180, 150, 60, 0.13), 0 1.5px 0 #e8d3a1 inset;
    border-radius: 0 0 36px 36px;
    position: relative;
    overflow: hidden;
}
    #Qheader::before {
        content: '';
        position: absolute;
        top: -60px;
        left: 50%;
        transform: translateX(-50%);
        width: 1200px;
        height: 300px;
        background: radial-gradient(circle at 60% 40%, #fff8e1 0%, transparent 70%), radial-gradient(circle at 30% 70%, #e8d3a155 0%, transparent 80%), radial-gradient(circle at 80% 80%, #f7e9ce55 0%, transparent 80%);
        z-index: 0;
        pointer-events: none;
    }
    #Qheader h1 {
        font-size: 2.8rem;
        margin-bottom: 10px;
        letter-spacing: 1.5px;
        font-weight: 800;
        position: relative;
        z-index: 1;
        text-shadow: 0 2px 16px #e8d3a188, 0 1px 0 #fff, 0 0 8px #f7e9ce66;
        filter: drop-shadow(0 2px 8px #e8d3a144);
        background: linear-gradient(90deg, #fff8e1 30%, #e8d3a1 70%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    #Qheader p {
        font-size: 1.18rem;
        opacity: 0.98;
        font-weight: 500;
        position: relative;
        z-index: 1;
        text-shadow: 0 1px 8px #f7e9ce44;
        color: #7a5c1e;
    }
    #Qheader .header-accent {
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 90%;
        height: 18px;
        background: linear-gradient(90deg, #e8d3a1 0%, #f7e9ce 100%);
        border-radius: 0 0 18px 18px;
        box-shadow: 0 4px 24px #e8d3a133;
        opacity: 0.7;
        z-index: 2;
    }

/* MAIN CONTAINER */
.Qcontainer {
    max-width: 600px;
    margin: 40px auto 0 auto;
    padding: 0 16px 32px 16px;
}

/* ACCORDION CARDS */
    .Qcontainer .accordion {
        width: 100%;
        background: #fffdf7;
        border: 1.5px solid #e8d3a1;
        border-radius: 16px;
        color: #7a5c1e;
        font-weight: 600;
        font-size: 1.1rem;
        padding: 22px 24px 22px 48px;
        margin-top: 24px;
        text-align: left;
        transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
        box-shadow: 0 2px 12px rgba(180, 150, 60, 0.06);
        position: relative;
        cursor: pointer;
        display: flex;
        align-items: center;
    }
        .Qcontainer .accordion:focus {
            outline: 2px solid #e8d3a1;
        }
        .Qcontainer .accordion::after {
            content: '➤';
            font-size: 1.3rem;
            margin-left: auto;
            transform: rotate(90deg);
            transition: transform 0.3s;
            color: #e8d3a1;
        }
        .Qcontainer .accordion.active::after {
            transform: rotate(270deg);
        }
        .Qcontainer .accordion:hover {
            border-color: #c2a25c;
            box-shadow: 0 4px 18px rgba(180, 150, 60, 0.10);
            background: #f7e9ce;
        }

/* Lock Icon and Code UI */
#QBody .lock-icon {
    font-size: 1.2rem;
    margin-right: 12px;
    color: #c2a25c;
    vertical-align: middle;
}
#QBody .code-input {
    font-size: 1rem;
    padding: 6px 10px;
    border: 1px solid #e8d3a1;
    border-radius: 8px;
    background: #f7e9ce;
    margin-left: 10px;
    transition: border-color 0.2s;
    color: #7a5c1e;
}
    #QBody .code-input:focus {
        border-color: #c2a25c;
        outline: none;
    }
#QBody .unlock-btn {
    font-size: 1rem;
    padding: 6px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #e8d3a1 0%, #f7e9ce 100%);
    color: #7a5c1e;
    margin-left: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
}
    #QBody .unlock-btn:hover {
        background: linear-gradient(90deg, #f7e9ce 0%, #e8d3a1 100%);
        color: #a88c3b;
    }

/* PANEL STYLES */
#QBody .panel {
    width: 100%;
    background: #fffdf7;
    border-radius: 16px;
    padding: 32px 28px 24px 28px;
    border: 1.5px solid #e8d3a1;
    margin-top: 0;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(180, 150, 60, 0.04);
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

/* INPUT FIELDS */
#QBody textarea,
#QBody input[type="text"],
#QBody input[type="date"],
#QBody input[type="number"] {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1.5px solid #e8d3a1;
    border-radius: 10px;
    background: #fff8e1;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 4px rgba(180, 150, 60, 0.03);
    color: #7a5c1e;
}
    #QBody input:focus,
    #QBody textarea:focus {
        border-color: #c2a25c;
        background-color: #f7e9ce;
        outline: none;
    }

/* LABELS */
#QBody label {
    font-weight: 500;
    margin-top: 18px;
    display: block;
    color: #a88c3b;
    font-size: 1.05rem;
}

/* SAVE BUTTON */
#QBody button.save {
    display: block;
    margin: 48px auto 0 auto;
    background: linear-gradient(90deg, #e8d3a1 0%, #f7e9ce 100%);
    border: none;
    padding: 20px 38px;
    color: #7a5c1e;
    font-size: 1.15rem;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(180, 150, 60, 0.10);
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}
    #QBody button.save:hover {
        background: linear-gradient(90deg, #f7e9ce 0%, #e8d3a1 100%);
        color: #a88c3b;
    }

/* FADE IN ANIMATION */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* PRINT STYLE */
@media print {
  body {
    background: white !important;
    color: black;
  }
  .accordion,
  .panel,
  button.save {
    box-shadow: none;
    background: none;
    border: 1px solid #e8d3a1;
  }
  .accordion::after,
  button.save {
    display: none;
  }
  textarea, input {
    border: none;
    background: none;
  }
}
