:root {
    --bg: linear-gradient(135deg, #667eea, #764ba2);
    --glass: rgba(255,255,255,0.12);
    --border: rgba(255,255,255,0.2);
    --text: #fff;
}

/* BASE */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

/* HEADER */
header {
    text-align: center;
    padding: 30px;
}

/* LAYOUT */
.container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
}

/* CARD */
section {
    background: var(--glass);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: 0.3s;
}

section:hover {
    transform: translateY(-8px);
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
}

input, select, textarea {
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
}

textarea {
    resize: none;
    height: 80px;
}

/* BUTTON */
button {
    background: linear-gradient(45deg, #ff6ec7, #00d4ff);
    border: none;
    padding: 10px;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

button:disabled {
    background: gray;
}

/* PREVIEW */
.preview-box {
    background: rgba(255,255,255,0.15);
    padding: 10px;
    border-radius: 10px;
}

/* TABLE */
.responses {
    padding: 20px;
}

.response-card {
    background: rgba(255,255,255,0.12);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

th {
    background: rgba(0,0,0,0.3);
}

/* =========================
   BACK BUTTON (3D GLASS)
========================= */
.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;
    border-radius: 12px;

    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);

    color: white;
    font-size: 14px;
    cursor: pointer;

    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: 0.3s ease;

    z-index: 999;
}

.back-btn:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.back-btn:active {
    transform: scale(0.98);
}