/* ==========================================================================
   iPAD REPAIRS PAGE - SPECIFIC STYLES
   (File: css/ipadrepairs.css)
   ========================================================================== */

/* iPad Repair Section (Intro) */
.ipad-repair-section {
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}
.ipad-repair-section h2 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 1rem 0;
  padding: 0.5rem;
  text-align: center;
  color: #333;
}
.ipad-repair-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* iPad Models Grid */
.ipad-models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}
.ipad-model {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ipad-model:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.ipad-model img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 1rem;
}
.ipad-model h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}
.ipad-model p {
  color: #666;
  margin-bottom: 1rem;
}
.ipad-model a {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #0077cc;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.ipad-model a:hover {
  background-color: #005fa3;
}

/* Detailed Info: Common iPad Repairs */
.ipad-repair-details {
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}
.ipad-repair-details h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #333;
}
.ipad-repair-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}
.ipad-repair-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.repair-icon {
  font-size: 2rem;
  color: #0077cc;
  margin-bottom: 1rem;
}

/* Warranty & Customer Service Section */
.warranty-section {
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}
.warranty-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #333;
}
.warranty-features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}
.warranty-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  flex: 1 1 45%;
  max-width: 300px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.warranty-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.warranty-item i.warranty-icon {
  font-size: 2rem;
  color: #00aaff;
  margin-bottom: 10px;
}
.warranty-item h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}
.warranty-item p {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

/* FAQ Section */
.faq-section {
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}
.faq-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #333;
}
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}
.faq-item {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.faq-item h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}
.faq-item p {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

/* iPad Model Form Section */
.model-form {
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}
.model-form h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: #333;
}
.model-form form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.model-form .form-group {
  margin-bottom: 20px;
}
.model-form .form-group label {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
  color: #333;
}
.model-form .form-group input,
.model-form .form-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.model-form .form-group button {
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
  color: #fff;
  background-color: #00aaff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.model-form .form-group button:hover {
  background-color: #0077cc;
  transform: translateY(-3px);
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 768px) {
  .ipad-repair-section h2 {
    font-size: 1.8rem;
    padding: 0.3rem;
  }

  .ipad-models {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .ipad-model {
    padding: 1rem;
  }

  .ipad-model h3 {
    font-size: 1.3rem;
  }

  .ipad-repair-services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .ipad-repair-section h2 {
    font-size: 1.5rem;
    padding: 0.25rem;
  }

  .ipad-model img {
    max-width: 150px;
  }
}

/* Bottom Navigation Bar for Mobile */
.mobile-only {
  display: none;
}

@media screen and (max-width: 768px) {
  .mobile-only {
    display: block;
  }

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .bottom-nav-item {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
  }

  .bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }

  /* Add padding to prevent content from being hidden behind bottom nav */
  body {
    padding-bottom: 70px;
  }
}
