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

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }
body { font-family: 'Montserrat', sans-serif; background-color: #fcfcfc; color: #1a1a1a; margin: 0; display: flex; justify-content: center; align-items: center; min-height: 100vh; }

.royal-container { width: 100%; max-width: 500px; padding: 20px; animation: fadeIn 0.8s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.royal-card { background: #ffffff; border-radius: 30px; padding: 30px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); border: 1px solid #f0f0f0; }
.card-header { text-align: center; margin-bottom: 25px; }

.icon-circle { width: 70px; height: 70px; background: #fff5f5; border: 2px solid #e63946; color: #e63946; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 32px; margin: 0 auto 15px; box-shadow: 0 10px 20px rgba(230, 57, 70, 0.15); }

h1 { font-size: 24px; font-weight: 800; margin: 0; }
.subtitle { font-size: 13px; color: #888; margin-top: 5px; }
.warning-text { font-size: 11px; color: #e63946; font-weight: 700; margin-top: 10px; background: #fff5f5; padding: 8px; border-radius: 8px; }

.input-group { margin-bottom: 18px; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.req { color: #e63946; }

input, textarea, select { width: 100%; padding: 14px; border: 2px solid #f0f0f0; border-radius: 12px; font-family: 'Montserrat', sans-serif; font-size: 14px; background: #fafafa; transition: 0.3s; }
input:focus, textarea:focus, select:focus { border-color: #e63946; background: #fff; box-shadow: 0 5px 15px rgba(230, 57, 70, 0.1); }

.math { background: #1a1a1a; color: #fff; padding: 2px 8px; border-radius: 5px; }

#submitBtn { width: 100%; background: #e63946; color: #fff; border: none; padding: 16px; border-radius: 15px; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 25px rgba(230, 57, 70, 0.3); transition: 0.3s; margin-top: 10px; }
#submitBtn:disabled { background: #ccc; box-shadow: none; cursor: not-allowed; }

#resultMsg { text-align: center; margin-top: 20px; font-size: 14px; font-weight: 600; }
footer { text-align: center; margin-top: 30px; }
.footer-link { color: #e63946; text-decoration: none; font-weight: 700; font-size: 15px; }
.footer-text { font-size: 12px; color: #999; margin-top: 6px; }

@media (max-width: 480px) { .royal-card { padding: 20px; } }