/* ===========================
   MODALS.CSS - Consolidated Modal Styles
   Combines: search-modal.css, about-modal.css, contact-modal.css
   =========================== */

/* ========================================
   BASE MODAL STYLES (Shared by All Modals)
   ======================================== */

/* Modal Base Structure */
.search-modal,
.about-modal,
.contact-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

/* Search modal has darker overlay */
.search-modal {
  background-color: rgba(0, 0, 0, 0.8);
  animation-name: fadeIn;
  animation-duration: 0.3s;
}

/* Modal Content Containers - Base Styles */
.search-modal-content,
.about-modal-content,
.contact-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 40px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Search modal has different styling */
.search-modal-content {
  background-color: #e8e8e8;
  padding: 20px;
  border-radius: 4px;
  max-width: 700px;
  width: 80%;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  animation-name: slideIn;
  animation-duration: 0.3s;
}

/* Close Buttons - Base Styles */
.search-close,
.about-close,
.contact-close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
}

/* Search close has different positioning */
.search-close {
  color: #0078C8;
  float: right;
  position: static;
  font-size: 28px;
}

/* Close Button Hover States */
.about-close:hover,
.contact-close:hover {
  color: #000;
}

.search-close:hover,
.search-close:focus {
  color: #004F86;
  text-decoration: none;
}

/* Modal Content Headers */
.about-container h2,
.contact-container h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 24px;
}

/* ========================================
   SEARCH MODAL SPECIFIC STYLES
   ======================================== */

/* Search Container */
.search-container {
  margin-top: 20px;
}

.modal-search-input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* Search Results */
#search-results {
  max-height: 60vh;
  overflow-y: auto;
}

#search-results ul {
  list-style: none;
  padding: 0;
}

#search-results li {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

#search-results li:last-child {
  border-bottom: none;
}

#search-results a {
  font-weight: bold;
  font-size: 18px;
  color: #666;
}

#search-results .snippet {
  margin-top: 5px;
  font-size: 14px;
  color: #666;
}

/* ========================================
   ABOUT MODAL SPECIFIC STYLES
   ======================================== */

.about-content {
  color: #333;
  line-height: 1.6;
}

/* ========================================
   CONTACT MODAL SPECIFIC STYLES
   ======================================== */

/* Form Styles */
.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: #4a90e2;
  outline: none;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

/* Submit Button */
.contact-submit {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

.contact-submit:hover {
  background-color: #3a7bc8;
}

.contact-submit:disabled {
  background-color: #91b9e9;
  cursor: not-allowed;
}

.thank-you-button-container {
  padding-top: 30px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    top: -300px; 
    opacity: 0; 
  }
  to { 
    top: 0; 
    opacity: 1; 
  }
}