* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    font-family: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #fff7e6 0%, #ffe8cc 100%);
    color: #2c2c2c;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}
.wrap { max-width: 520px; margin: 0 auto; padding: 16px; }
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(184, 89, 0, 0.12);
    padding: 20px;
    margin-bottom: 16px;
}
.header { text-align: center; padding: 24px 16px 18px; }
.header .om { font-size: 38px; }
.header h1 { font-size: 22px; color: #b85900; margin: 8px 0 4px; line-height: 1.3; }
.header h2 { font-size: 15px; color: #555; font-weight: 500; }

.field { margin-bottom: 14px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: #333; }
label .req { color: #d63031; margin-left: 2px; }

input[type=text], input[type=tel], input[type=email], input[type=number],
input[type=password], textarea, select {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1.5px solid #e4d4b8;
    border-radius: 10px;
    background: #fffdf8;
    font-family: inherit;
    transition: border .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230,126,34,.15);
}
textarea { min-height: 72px; resize: vertical; }
textarea.tall { min-height: 220px; font-family: monospace; font-size: 13px; }

.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-group label {
    flex: 1 1 45%;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1.5px solid #e4d4b8;
    border-radius: 10px;
    background: #fffdf8;
    cursor: pointer;
    font-weight: 500;
}
.radio-group input[type=radio] { accent-color: #e67e22; width: 18px; height: 18px; }
.radio-group label:has(input:checked) {
    border-color: #e67e22;
    background: #fff3e0;
    color: #b85900;
    font-weight: 700;
}

.btn {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(135deg, #e67e22, #b85900);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    letter-spacing: .3px;
    box-shadow: 0 6px 14px rgba(230,126,34,.35);
    transition: transform .1s, box-shadow .15s;
    text-decoration: none;
    text-align: center;
}
.btn:hover { box-shadow: 0 8px 20px rgba(230,126,34,.5); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: #fff; color: #b85900; border: 2px solid #e67e22; box-shadow: none; }

.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.alert.error { background: #ffe0e0; color: #a00; border: 1px solid #f5b3b3; }
.alert.success { background: #e6f9ed; color: #0a6b3c; border: 1px solid #a9e0bf; }
.hint { font-size: 12px; color: #888; margin-top: 4px; }

.top-link {
    display: inline-block;
    padding: 10px 14px;
    background: #fff;
    color: #b85900;
    border: 2px solid #e67e22;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 14px;
}

/* Thank you */
.thankyou { text-align: center; padding: 30px 20px; }
.thankyou .check {
    width: 72px; height: 72px; margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #0a6b3c);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 38px;
}
.thankyou h1 { color: #b85900; margin-bottom: 10px; }
.thankyou p { color: #555; line-height: 1.6; margin-bottom: 14px; }
.wa-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #25d366; color: #fff;
    padding: 14px 22px; border-radius: 12px;
    text-decoration: none; font-weight: 700; font-size: 16px;
    box-shadow: 0 6px 14px rgba(37,211,102,.35);
}

/* Admin */
.admin-wrap { max-width: 100%; padding: 16px; }
.admin-top {
    display: flex; gap: 10px; flex-wrap: wrap;
    align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.admin-top h1 { font-size: 20px; color: #b85900; }
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-nav a {
    padding: 8px 14px;
    background: #fff;
    border: 1.5px solid #e4d4b8;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}
.admin-nav a.active, .admin-nav a:hover {
    background: #e67e22; color: #fff; border-color: #e67e22;
}
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.stat {
    background: #fff; padding: 14px;
    border-radius: 10px;
    border-left: 4px solid #e67e22;
}
.stat .v { font-size: 22px; font-weight: 800; color: #b85900; }
.stat .l { font-size: 12px; color: #777; }

.table-wrap {
    background: #fff; border-radius: 10px;
    padding: 10px; overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px; border-bottom: 1px solid #f0e6d0; text-align: left; }
th { background: #fff3e0; color: #b85900; font-weight: 700; font-size: 13px; white-space: nowrap; }
td { vertical-align: top; }

.badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.badge.ok { background: #d4f5e1; color: #0a6b3c; }
.badge.pend { background: #ffe5d0; color: #b85900; }
.badge.no { background: #f0f0f0; color: #666; }

.search {
    padding: 10px 14px;
    border: 1.5px solid #e4d4b8;
    border-radius: 10px;
    font-size: 15px;
    width: 260px;
    max-width: 100%;
}

pre.log {
    background: #fffdf8;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #eee;
    white-space: pre-wrap;
    font-size: 13px;
}

@media (max-width: 600px) {
    body { font-size: 15px; }
    .header h1 { font-size: 19px; }
    th, td { padding: 8px 6px; font-size: 12px; }
}
