/* Contact Page Styles */
#contact-page {
  overflow-x: hidden;
}

/* Hero Section */
.contact-hero {
  position: relative;
  height: 80vh;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  z-index: 2;
}

.contact-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.contact-hero .hero-content {
  position: relative;
  z-index: 1;
}

.contact-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}

.contact-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

/* Navigation Tabs */
.contact-nav {
  margin-bottom: 40px;
}

.nav-tabs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 2px solid #e0e0e0;
  justify-content: center;
}

.nav-tabs li {
  margin: 0 5px;
}

.nav-tabs li a {
  display: block;
  padding: 15px 25px;
  color: #555;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.nav-tabs li a:hover {
  color: var(--primary-color);
}

.nav-tabs li.active a {
  color: var(--primary-color);
}

.nav-tabs li.active a:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

/* Tab Content */
.tab-content {
  margin-bottom: 50px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

/* Contact Content Grid */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

/* Contact Info */
.contact-info {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h2 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 2rem;
}

.contact-info p {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  margin-bottom: 25px;
}

.contact-item svg {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-right: 20px;
  width: 30px;
  text-align: center;
}

.contact-item h3 {
  color: var(--secondary-color);
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.contact-item p {
  margin-bottom: 0;
  color: #666;
}

/* Social Connect with more specific selectors */
.contact-info .social-connect {
  margin-top: 30px;
}

.contact-info .social-connect h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.contact-info .social-icons {
  display: flex;
  gap: 5px;
}

.contact-info .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--primary-color);
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 2.0rem;
}

/* More specific hover selector */
.contact-info .social-icon:hover {
  color: white !important;
  transform: translateY(-5px) scale(1.1) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
  background-color: var(--primary-color) !important; /* Force the same background */
}

/* Contact Form */
.contact-form {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h2 {
  color: var(--secondary-color);
  margin-bottom: 30px;
  font-size: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--secondary-color);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: #888;
  font-size: 0.85rem;
}

/* Checkbox styling */
.form-checkbox {
  display: flex;
  align-items: flex-start;
}

.form-checkbox input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.form-checkbox label {
  font-weight: normal;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Button styling */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Map Section Styling */
.map-section {
    padding: 0 0 60px;
    position: relative;
}

.map-section .section-header {
    margin-bottom: 30px;
    padding-top: 60px;
}

.map-section .section-header h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.map-section .section-header p {
    color: #666;
    font-size: 1.1rem;
}

.map-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Make sure the iframe is responsive */
@media (max-width: 768px) {
    .map-container {
        height: 350px;
    }
    
    .map-section .section-header {
        padding-top: 40px;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 300px;
    }
}

/* Warranty and Land Acquisition specific styles */
.warranty-info,
.land-acquisition-info {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.warranty-info h3,
.land-acquisition-info h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.land-acquisition-info ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.land-acquisition-info li {
  margin-bottom: 8px;
  color: #666;
}

/* Captcha styling */
.captcha-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.captcha-code {
  display: inline-block;
  padding: 8px 15px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  letter-spacing: 3px;
  color: #333;
  font-weight: bold;
  min-width: 150px;
  text-align: center;
  user-select: none;
}

.refresh-captcha {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 1rem;
  margin-left: 10px;
  padding: 5px;
  transition: transform 0.3s ease;
}

.refresh-captcha:hover {
  transform: rotate(180deg);
}

/* Warranty Policy Modal - Improved Styling */
.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);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* Style for the warranty policy content */
.warranty-policy-content {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
    margin: 0 15px;
}

.warranty-policy-content h3 {
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    padding-left: 15px;
}

.warranty-policy-content h3:first-child {
    margin-top: 0;
}

.warranty-policy-content h4 {
    color: #444;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    padding-left: 15px;
}

.warranty-policy-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
    padding-left: 15px;
    padding-right: 15px;
}

.warranty-policy-content ul, 
.warranty-policy-content ol {
    padding-left: 40px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.warranty-policy-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #555;
}

.warranty-note {
    font-style: italic;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 25px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Responsive styles */
@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .nav-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-tabs li {
    margin: 5px 0;
    width: 100%;
    text-align: center;
  }
  
  .contact-hero h1 {
    font-size: 2.2rem;
  }
  
  .contact-hero p {
    font-size: 1rem;
  }
  
  .contact-info,
  .contact-form {
    padding: 25px;
  }
}

@media (max-width: 576px) {
  .contact-section {
    padding: 50px 0;
  }
  
  .contact-hero {
    min-height: 250px;
  }
}
