@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding-top: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* HEADER */
header {
    background: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.header-left { display: flex; align-items: center; gap: 10px; }
#profileBtn {
    background: none; border: none; font-size: 28px; color: #333; cursor: pointer;
}
.wallet-box {
    background: #f8f9fa; padding: 8px 16px; border-radius: 30px;
    display: flex; align-items: center; gap: 8px; font-weight: 600; color: #333;
    border: 1px solid #eee;
}
.coin-icon { color: #ffc107; }

/* SURVEY CARD */
.survey-container {
    background: white; width: 90%; max-width: 600px; height: 80vh;
    display: flex; flex-direction: column; border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); overflow: hidden;
}

.survey-header { padding: 25px; border-bottom: 1px solid #f0f0f0; }
#qCount { margin: 0; color: #444; font-weight: 600; }

.progress-track {
    height: 8px; background: #e9ecef; border-radius: 4px; overflow: hidden; margin-top: 15px;
}
.progress-fill {
    height: 100%; background: linear-gradient(90deg, #007bff, #0056b3);
    width: 0%; transition: width 0.4s ease;
}

.survey-body {
    flex-grow: 1; padding: 30px; overflow-y: auto; background: #fff;
}

/* QUESTIONS */
.question-card { display: none; animation: fadeUp 0.4s ease-out; }
.question-card.active { display: block; }
@keyframes fadeUp { from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }

.question-text { font-size: 18px; font-weight: 500; margin-bottom: 20px; color: #222; }

.options-list { list-style: none; padding: 0; margin: 0; }
.options-list li { margin-bottom: 12px; }

.options-list label {
    display: flex; align-items: center; cursor: pointer; padding: 15px;
    background: #f8f9fa; border: 1px solid #eee; border-radius: 12px;
    transition: all 0.2s; font-size: 15px; color: #555;
}
.options-list label:hover { background: #eef2ff; border-color: #007bff; color: #007bff; }
.options-list input { margin-right: 15px; width: 18px; height: 18px; accent-color: #007bff; }

/* INPUTS */
input[type="text"] {
    width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 12px;
    font-size: 16px; box-sizing: border-box; outline: none; transition: 0.3s;
}
input[type="text"]:focus { border-color: #007bff; box-shadow: 0 0 0 3px rgba(0,123,255,0.1); }

/* FOOTER */
.survey-footer { padding: 20px 30px; border-top: 1px solid #f0f0f0; display: flex; justify-content: space-between; }

button { padding: 12px 30px; border: none; border-radius: 50px; font-size: 16px; cursor: pointer; font-weight: 500; transition: 0.3s; }
.btn-pri { background: #007bff; color: white; box-shadow: 0 4px 15px rgba(0,123,255,0.3); }
.btn-pri:hover { background: #0056b3; transform: translateY(-2px); }
.btn-sec { background: #f1f3f5; color: #333; }
.btn-sec:hover { background: #e9ecef; }

/* MODAL */
.modal {
    display: none; position: fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.6); justify-content:center; align-items:center; z-index:2000;
    backdrop-filter: blur(5px);
}
.modal-content {
    background: white; padding: 40px; border-radius: 20px; width: 90%; max-width: 350px;
    text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.2); position: relative;
}
.close { position: absolute; right: 20px; top: 15px; font-size: 24px; cursor: pointer; color: #aaa; }

.inp { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; }
.btn-full { width: 100%; padding: 12px; background: #007bff; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 16px; margin-top: 10px; }
.btn-danger { width: 100%; padding: 12px; background: #dc3545; color: white; border: none; border-radius: 8px; cursor: pointer; margin-top: 10px; }
.toggle-link { color: #007bff; cursor: pointer; margin-top: 20px; font-size: 14px; }
