@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* Reset & base */
* {
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #f7f9fc;
  margin: 0;
  padding: 0 20px 40px;
  color: #333;
  padding-top: 70px; /* For fixed header */
  line-height: 1.6;
}
/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  background-color: #ecf5ff;
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-circle {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo-circle img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}
.clinic-info h1 {
  font-size: 15px;
  text-align: left;
  color: #333;
  margin: 0 0 5px 0;
}
.clinic-info p {
  font-size: 10px;
  color: #555;
  margin: 0;
}
.main-nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  gap: 50px;
}
.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 700;
  font-size: 12px;
  transition: color 0.3s;
}
.main-nav a:hover {
  color: #0066cc;
}
.header-right {
  display: flex;
  gap: 20px;
  margin-right: 10px;
  align-items: center;
}
.auth-link {
  text-decoration: none;
  color: #0066cc;
  font-weight: 600;
  font-size: 12px;
  transition: color 0.3s;
}
.auth-link:hover {
  color: #003d80;
}
.header-right span {
  color: black;
  font-size: 10px;
}
/* Layout */
.page-wrapper {
  max-width: 850px;
  margin: 40px auto 80px;
}
/* Form section */
section.form-section {
  margin-bottom: 50px;
}
section.form-section h1 {
  color: #1565c0;
  font-weight: 600;
  font-size: 2.2rem;
  text-align: center;
}
form {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
form label {
  display: block;
  margin-top: 18px;
  font-weight: 600;
  color: #444;
}
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
textarea,
select {
  width: 100%;
  max-width: 600px;
  padding: 10px 14px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  background: #fff;
}

#contact {
  width: 100%;
  height: 10vh;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}



input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  border-color: #1976d2;
  outline: none;
  background: #fff;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
.radio-group,
.checkbox-group {
  margin-top: 6px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.radio-group label,
.checkbox-group label {
  font-weight: 500;
  color: #222;
}
.section-title {
  margin-top: 36px;
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 2px solid #1976d2;
  padding-bottom: 6px;
  color: #0d47a1;
}
.submit-btn {
  margin-top: 36px;
  width: 100%;
  max-width: 600px;
  padding: 14px 0;
  background-color: #1976d2;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.submit-btn:hover {
  background-color: #0d47a1;
}
.note {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #555;
}

/* Individual info containers */
.info-container {
  max-width: 600px;
  margin: 0 auto 30px;
  background: #e1f0ff;
  border-radius: 12px;
  padding: 22px 28px;
  color: #0d3a72;
  box-shadow: 0 4px 18px rgba(13, 58, 114, 0.15);
  font-size: 1rem;
  line-height: 1.6;
}
.info-container h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  border-bottom: 2px solid #1976d2;
  padding-bottom: 6px;
  color: #0b3467;
}
.info-container p {
  margin-top: 0;
  margin-bottom: 15px;
}
.info-container ul {
  padding-left: 22px;
  margin-top: 0;
  margin-bottom: 20px;
}
.info-container ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 18px;
}
.info-container ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  color: #1976d2;
  font-weight: 700;
}
.info-container a {
  color: #1565c0;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.info-container a:hover,
.info-container a:focus {
  border-color: #1565c0;
  outline: none;
}

/* Responsive */
@media (max-width: 650px) {
  form, .info-container {
    max-width: 100%;
    padding: 0 10px;
  }
}

#pregnancyDetails {
  display: none;
}

form:has(input[name="sex"][value="Female"]:checked)
     :has(input[name="pregnant"][value="Yes"]:checked)
     #pregnancyDetails {
  display: block;
}


/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    border-left: 5px solid;
}

.success-notification {
    border-left-color: #4CAF50;
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
}

.error-notification {
    border-left-color: #f44336;
    background: linear-gradient(135deg, #ffebee 0%, #ffffff 100%);
}

.notification-icon {
    font-size: 28px;
    margin-top: 5px;
}

.success-notification .notification-icon {
    color: #4CAF50;
}

.error-notification .notification-icon {
    color: #f44336;
}

.notification-content {
    flex: 1;
}

.notification-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.success-notification h3 {
    color: #2e7d32;
}

.error-notification h3 {
    color: #c62828;
}

.notification-content p {
    margin: 0 0 5px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
}

.notification-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* Animation for success icon */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-notification .notification-icon i {
    animation: pulse 2s infinite;
}