/* Reset & base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /*background: linear-gradient(120deg, #cce7f7, #dffbf4);*/
    font-family: 'Poppins', sans-serif;
    color: #0b1c2c;
}

/* Main wrapper to center content */
main {
    display: flex;
    justify-content: center;
}

.form-heading {
  /*background: #f0fbff;*/
  border-radius: 8px;
  padding: 1.5rem 1rem;
}

.form-title {
  font-size: 40px;
  font-weight: 700;
  color: #075fb8;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-title i {
  font-size: 36px; /* precise control over icon size */
}


.form-icon {
  width: 50px;
  height: 50px;
}

.form-subtext {
  font-size: 1rem;
  color: #333;
  margin-top: 0.5rem;
}


.new-admission-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-size: 14px;
    
    max-width: 1200px; /* increase this value for wider form */
    width: 100%;       /* allow form to shrink on small screens */
    margin: 40px auto; /* centers the form horizontally with vertical margin */
    padding: 0 20px;   /* optional, adds some horizontal padding */
    
    /* Add box shadow for subtle depth */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border-radius: 15px; /* smooth rounded corners */
    background: #ffffff;  /* white background so shadow is visible */
}


/* Fieldsets styled like cards */
.new-admission-form fieldset {
    border: 1px solid #d1e6f9;
    border-radius: 15px;
    padding: 25px 30px;
    background: #ffffff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

.new-admission-form legend {
    font-weight: 900;
    color: #0e64b0;
    font-size: 20px;
    padding: 0 10px;
}

/* Form Rows */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.form-row.double,
.form-row.triple {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.form-row.double > div,
.form-row.triple > div {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.form-row label {
    font-weight: 500;
    color: #0b1c2c;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    padding: 10px 12px;
    border: 1px solid #b8d1e6;
    border-radius: 8px;
    font-size: 14px;
    background: #f7faff;
    color: #0b1c2c;
    resize: vertical;
}

/* Form Button */
.form-actions {
    text-align: center;
}

.submit-btn {
    background: linear-gradient(135deg, #0e64b0, #00c2cb);
    color: #fff;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0b5390, #00aebf);
    transform: translateY(-2px);
}