/* Reset */ * { margin: 0; padding: 0; box-sizing: border-box; } html { font-size: 16px; } body { font-family: 'Inter', sans-serif; background-color: #f5f7fa; color: #333; line-height: 1.6; padding: 2rem; display: flex; justify-content: center; align-items: flex-start; min-height: 100vh; } /* Form Container */ form { background-color: #ffffff; padding: 2rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); max-width: 600px; width: 100%; } /* Fieldsets */ fieldset { border: none; margin-bottom: 2rem; padding: 0; } legend { font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem; color: #1a1a1a; } /* Labels & Inputs */ label { display: block; margin-bottom: 0.4rem; font-weight: 500; margin-top: 1.2rem; } input[type="text"], input[type="password"], input[type="email"], input[type="date"], input[type="number"], input[type="tel"], textarea, select, input[type="file"] { width: 100%; padding: 0.7rem 1rem; border: 1px solid #ccc; border-radius: 8px; background: #fafafa; transition: border-color 0.2s ease, box-shadow 0.2s ease; font-size: 1rem; } input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="date"]:focus, input[type="number"]:focus, input[type="tel"]:focus, textarea:focus, select:focus { border-color: #4a90e2; box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2); outline: none; } /* Radio & Checkbox */ input[type="radio"], input[type="checkbox"] { margin-right: 0.5rem; transform: scale(1.2); accent-color: #4a90e2; } /* Submit Button */ #btnSubmit { margin-top: 2rem; width: 100%; padding: 0.9rem; font-size: 1rem; background-color: #4a90e2; color: white; border: none; border-radius: 8px; cursor: pointer; transition: background-color 0.3s ease; } #btnSubmit:hover { background-color: #3a78c2; } /* Shadow class */ .shadow { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05); } /* Responsive tweaks */ @media (max-width: 600px) { form { padding: 1.5rem; } }