/* assets/css/admission-enquiry.css */
/* Admission Enquiry Page Styles - Updated with Logo */

:root {
  --enquiry-primary: #1e40af;
  --enquiry-secondary: #059669;
  --enquiry-accent: #dc2626;
  --enquiry-light: #f8fafc;
  --enquiry-dark: #1e293b;
  --enquiry-border: #e2e8f0;
  --enquiry-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --enquiry-success: #10b981;
}

/* Enquiry Page Layout */
.enquiry-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* School Header with Logo */
.school-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.school-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.school-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--enquiry-primary);
  margin: 0;
  line-height: 1.2;
}

.school-tagline {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.header-contact {
  text-align: right;
}

.contact-number {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--enquiry-primary);
  margin: 0;
}

.contact-hours {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
}

/* Hero Section - Simplified */
.enquiry-hero {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(5, 150, 105, 0.9));
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.enquiry-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.enquiry-hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.95;
}

/* Enquiry Form Section */
.enquiry-form-section {
  padding: 2rem 0;
}

.enquiry-container {
  max-width: 800px;
  margin: 0 auto;
  /*padding: 0 2rem;*/
}

.enquiry-form {
  background: white;
  /*border-radius: 20px;*/
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.form-header {
  background: linear-gradient(135deg, var(--enquiry-primary), #3730a3);
  color: white;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.form-logo {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.form-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  opacity: 0.9;
}

.form-body {
  padding: 2.5rem;
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: var(--enquiry-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group .required::after {
  content: " *";
  color: var(--enquiry-accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid var(--enquiry-border);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--enquiry-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Grade Selection */
.grade-selection {
  background: var(--enquiry-light);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.grade-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.grade-option {
  position: relative;
}

.grade-option input {
  position: absolute;
  opacity: 0;
}

.grade-label {
  display: block;
  padding: 0.75rem;
  background: white;
  border: 2px solid var(--enquiry-border);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.grade-option input:checked + .grade-label {
  background: var(--enquiry-primary);
  color: white;
  border-color: var(--enquiry-primary);
}

.grade-label:hover {
  border-color: var(--enquiry-primary);
}

/* Preferred Contact */
.contact-preferences {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-option input {
  margin: 0;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 150px;
}

.btn-primary {
  background: var(--enquiry-primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--enquiry-primary);
  border: 2px solid var(--enquiry-primary);
}

.btn-outline:hover {
  background: var(--enquiry-primary);
  color: white;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Response Time */
.response-time {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: 10px;
  margin-top: 1.5rem;
}

.response-time h4 {
  color: #92400e;
  margin-bottom: 0.5rem;
}

.response-time p {
  color: #92400e;
  margin: 0;
  font-size: 0.9rem;
}

/* Footer */
.page-footer {
  background: var(--enquiry-dark);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.footer-contact {
  text-align: center;
}

.footer-contact h4 {
  margin: 0 0 0.5rem 0;
  color: #f1f5f9;
}

.footer-contact p {
  margin: 0;
  color: #94a3b8;
}

.copyright {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #374151;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Success Modal */
.success-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.success-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.success-content {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  max-width: 500px;
  margin: 2rem;
  animation: scaleIn 0.3s ease;
}

.success-icon {
  font-size: 4rem;
  color: var(--enquiry-success);
  margin-bottom: 1rem;
}

.success-content h2 {
  color: var(--enquiry-dark);
  margin-bottom: 1rem;
}

.success-content p {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.reference-number {
  background: var(--enquiry-light);
  padding: 1rem;
  border-radius: 8px;
  font-weight: 700;
  color: var(--enquiry-primary);
  margin: 1.5rem 0;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .school-logo {
    justify-content: center;
  }
  
  .header-contact {
    text-align: center;
  }
  
  .enquiry-hero-title {
    font-size: 2rem;
  }
  
  .form-body {
    padding: 1.5rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .grade-options {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-preferences {
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer-info {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .school-name {
    font-size: 1.2rem;
  }
  
  .logo-image {
    height: 50px;
  }
  
  .enquiry-hero-title {
    font-size: 1.8rem;
  }
  
  .form-header {
    padding: 1.5rem;
  }
  
  .form-logo {
    height: 40px;
  }
  
  .grade-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .success-content {
    padding: 2rem;
    margin: 1rem;
  }
}

/* Add these styles to your existing CSS file */

/* Error Styling */
.error-message {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #dc2626;
}

.form-group input:invalid:focus,
.form-group select:invalid:focus,
.form-group textarea:invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Grade Selection Active State */
.grade-label.active {
    background: var(--enquiry-primary);
    color: white;
    border-color: var(--enquiry-primary);
}

/* Loading State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Modal Animation */
.success-modal.active {
    animation: fadeIn 0.3s ease;
}

.success-content {
    animation: scaleIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-form input,
    .filters-form select {
        min-width: auto;
        width: 100%;
    }
}