/* Contact Page Specific Styles */
.medicare-contact-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('../images/contact-bg.jpg') center/cover no-repeat;
  color: white;
  padding: 100px 0;
  text-align: center;
}

.medicare-contact-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: fadeIn 1s ease-in;
}

.medicare-contact-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  animation: fadeIn 1.5s ease-in;
}

/* Contact Information Grid */
.modern-contact-section {
  padding: 4rem 0;
  background-color: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  color: #2c3e50;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: #7f8c8d;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-option-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  outline: none;
}

.contact-option-card:hover, .contact-option-card:focus {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  font-size: 1.2rem;
}

.map-card .icon-circle { background-color: #3498db; }
.call-card .icon-circle { background-color: #e74c3c; }
.email-card .icon-circle { background-color: #2ecc71; }
.hours-card .icon-circle { background-color: #f39c12; }

.contact-option-card h3 {
  color: #2c3e50;
  margin: 0;
  font-size: 1.3rem;
}

.card-content {
  color: #34495e;
}

.interactive-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0.5rem 0;
}

.interactive-btn i {
  margin-right: 8px;
}

.map-btn {
  background-color: #3498db;
  color: white;
}

.map-btn:hover {
  background-color: #2980b9;
}

.call-btn {
  background-color: #e74c3c;
  color: white;
  width: 100%;
  text-align: left;
}

.call-btn:hover {
  background-color: #c0392b;
}

.emergency-btn {
  background-color: #c0392b;
  color: white;
  width: 100%;
  text-align: left;
  margin-top: 0.5rem;
}

.emergency-btn:hover {
  background-color: #a5281b;
}

.email-btn {
  background-color: #2ecc71;
  color: white;
}

.email-btn:hover {
  background-color: #27ae60;
}

.additional-info {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-top: 1rem;
  display: flex;
  align-items: center;
}

.additional-info i {
  margin-right: 5px;
}

.hours-status {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-indicator.open {
  background-color: #2ecc71;
  box-shadow: 0 0 10px #2ecc71;
}

.status-indicator.closed {
  background-color: #e74c3c;
  box-shadow: 0 0 10px #e74c3c;
}

.status-text {
  font-weight: 500;
}

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.hours-list li {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.hours-list li span:first-child {
  font-weight: 600;
  color: #2c3e50;
}

.quick-action-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.quick-action-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.quick-action-btn i {
  margin-right: 8px;
}

.appointment-btn {
  background-color: #9b59b6;
  color: white;
}

.appointment-btn:hover {
  background-color: #8e44ad;
  transform: translateY(-2px);
}

.chat-btn {
  background-color: #34495e;
  color: white;
}

.chat-btn:hover {
  background-color: #2c3e50;
  transform: translateY(-2px);
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center; /* This centers vertically */
  justify-content: center; /* This centers horizontally */
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.contact-modal {
  background-color: white;
  border-radius: 10px;
  width: 90%;
  top: 5rem;
  max-width: 500px;
  padding: 2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  margin: auto; /* Additional centering */
}

.modal-overlay.active .contact-modal {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #7f8c8d;
}

.modal-title {
  margin-top: 0;
  color: #2c3e50;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  background-color: #2ecc71;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #27ae60;
}

@media (max-width: 768px) {
  .quick-action-buttons {
    flex-direction: column;
  }
  
  .quick-action-btn {
    width: 100%;
    justify-content: center;
  }
}
/* Contact Form Section */
.medicare-contact-form-section {
  background: #f9f9f9;
  padding: 4rem 0;
}

.medicare-contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .medicare-contact-content {
    grid-template-columns: 1fr;
  }
}

.medicare-contact-form-container {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.medicare-form-header {
  margin-bottom: 2rem;
}

.medicare-form-header h2 {
  color: #2a7fba;
  margin-bottom: 0.5rem;
}

.medicare-form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.medicare-form-group {
  flex: 1;
  margin-bottom: 1.5rem;
}

.medicare-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.medicare-form-group input,
.medicare-form-group select,
.medicare-form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
}

.medicare-form-group textarea {
  min-height: 150px;
}

.medicare-checkbox-group {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.medicare-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
}

.medicare-checkbox-label input {
  margin-right: 0.5rem;
}

.medicare-checkmark {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid #ddd;
  border-radius: 3px;
  margin-right: 0.5rem;
  position: relative;
}

.medicare-checkbox-label input:checked ~ .medicare-checkmark {
  background-color: #2a7fba;
  border-color: #2a7fba;
}

.medicare-checkbox-label input:checked ~ .medicare-checkmark::after {
  content: "✓";
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
}

.medicare-submit-btn {
  background: #2a7fba;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.medicare-submit-btn:hover {
  background: #1a6da3;
}

.medicare-error-message {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: block;
}

/* Map Section */
.medicare-map-container {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.medicare-map-container h3 {
  color: #2a7fba;
  margin-bottom: 1.5rem;
}

.medicare-map-placeholder {
  margin-bottom: 1.5rem;
  border-radius: 5px;
  overflow: hidden;
}

.medicare-map-info h4 {
  margin-bottom: 1rem;
  color: #333;
}

.medicare-map-info p {
  margin-bottom: 1.5rem;
  color: #666;
}

.medicare-transportation {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.medicare-transport-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

.medicare-transport-item i {
  color: #2a7fba;
}

/* Live Chat Section */
.medicare-chat-section {
  padding: 3rem 0;
}

.medicare-chat-banner {
  background: #2a7fba;
  color: white;
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.medicare-chat-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.medicare-chat-icon {
  font-size: 2.5rem;
}

.medicare-chat-text h3 {
  margin-bottom: 0.5rem;
}

.medicare-chat-text p {
  opacity: 0.9;
}

.medicare-chat-btn {
  background: white;
  color: #2a7fba;
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.medicare-chat-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Emergency Section */
.medicare-emergency-contact {
  padding: 3rem 0;
}

.medicare-emergency-banner {
  background: #e74c3c;
  color: white;
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.medicare-emergency-icon {
  font-size: 2.5rem;
  margin-right: 1.5rem;
}

.medicare-emergency-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.medicare-emergency-content p {
  opacity: 0.9;
}

.medicare-emergency-actions {
  display: flex;
  gap: 1rem;
}

.medicare-emergency-btn {
  background: white;
  color: #e74c3c;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.medicare-emergency-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.medicare-emergency-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Success Modal */
.medicare-contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.medicare-modal-content {
  background: white;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  animation: modalFadeIn 0.3s ease;
}

.medicare-modal-header {
  background: #2a7fba;
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.medicare-modal-header i {
  font-size: 2rem;
}

.medicare-modal-body {
  padding: 2rem;
}

.medicare-modal-body p {
  margin-bottom: 1rem;
}

.medicare-modal-footer {
  padding: 1rem 2rem;
  text-align: right;
  border-top: 1px solid #eee;
}

.medicare-modal-btn {
  background: #2a7fba;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.medicare-modal-btn:hover {
  background: #1a6da3;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}