/* =========================
   Main Content Wrapper
========================= */
.main {
    display: flex;
    flex-direction: column;
    align-items: center; /* centers heading, paragraph, form */
    padding: 15px; /* padding around content */
    min-height: calc(100vh - 50px); /* adjust for fixed header if exists */
}

/* Heading */
.main h1 {
    font-size: 22px;
    margin-bottom: 5px;
    text-align: center;
    color: #333;
}

/* Paragraph / description */
.main p {
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
    color: #555;
}

/* =========================
   Patient Registration Form
========================= */
.patient-form {
    max-width: 1000px;
    width: 100%;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 13px;
    margin-bottom: 20px;
}

/* Section Headings inside Form */
.patient-form h3 {
    width: 100%;
    font-size: 15px;
    margin-bottom: 8px; /* small gap between sections */
    color: #333;
}

/* Form Sections */
.form-section {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* gap between fields */
    margin-bottom: 12px; /* gap between categories */
}

/* Each input + label */
.form-group {
    display: flex;
    flex-direction: column;
    width: 24%; /* 4 inputs per row */
}

.form-group label {
    margin-bottom: 3px;
    color: #555;
    font-size: 12px;
}

.form-group input,
.form-group select {
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
}

/* =========================
   Submit Button
========================= */
.patient-form button {
    margin-top: 8px;
    padding: 7px 15px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.patient-form button:hover {
    background: #388E3C;
}

/* =========================
   Responsive Layout
========================= */

/* Medium screens: 2 columns */
@media (max-width:1000px){
    .form-group{
        width:48%;
    }
}

/* Small screens: 1 column */
@media (max-width:600px){
    .form-group{
        width:100%;
    }
}