/* Contact Page Styles */

.contact-page {
  margin-top: 80px; /* Offset for navbar */
  min-height: calc(100vh - 80px);
}

.contact-split {
  display: flex;
  min-height: 700px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 40px auto;
  max-width: 1100px;
}

/* Left Panel */
.contact-info-panel {
  flex: 1;
  background-color: var(--color-primary);
  color: white;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-panel h1 {
  font-size: 40px;
  margin-bottom: 40px;
}

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

.contact-details h3 {
  color: var(--color-text-light-green);
  font-size: 20px;
  margin-bottom: 20px;
}

.contact-item-large {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 18px;
}

.contact-item-large i {
  font-size: 24px;
  width: 30px;
}

.contact-item-large.phone i {
  color: var(--color-cta);
}

.contact-item-large.whatsapp i {
  color: #25D366;
}

.contact-item-large a {
  color: white;
  transition: color 0.3s ease;
}

.contact-item-large a:hover {
  color: var(--color-text-faint-green);
}

.address-block {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
}

.address-block h4 {
  color: var(--color-text-light-green);
  margin-bottom: 15px;
}

.address-block p {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 16px;
  color: var(--color-text-faint-green);
}

.address-block .icon-top {
  margin-top: 5px;
}

/* Right Panel Form */
.contact-form-panel {
  flex: 1.2;
  background-color: white;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-panel h2 {
  color: var(--color-primary);
  font-size: 32px;
  margin-bottom: 10px;
}

.contact-form-panel p {
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.form-group {
  position: relative;
  margin-bottom: 30px;
}

.form-control {
  width: 100%;
  padding: 15px 0 10px;
  border: none;
  border-bottom: 2px solid #E0E0E0;
  background: transparent;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--color-text-dark);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-bottom-color: var(--color-primary);
}

.floating-label {
  position: absolute;
  top: 15px;
  left: 0;
  color: var(--color-text-muted);
  font-family: var(--font-telugu);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus ~ .floating-label,
.form-control:not(:placeholder-shown) ~ .floating-label {
  top: -10px;
  font-size: 13px;
  color: var(--color-primary);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  border-radius: 8px;
  margin-top: 10px;
}

/* Map Section */
.map-section {
  height: 400px;
  width: 100%;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 992px) {
  .contact-split {
    flex-direction: column;
  }
  .contact-info-panel, .contact-form-panel {
    padding: 60px 30px;
  }
}

/* Submit button loading state */
.btn-submit.loading {
  opacity: 0.75;
  pointer-events: none;
  position: relative;
}

.btn-submit.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.5);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form hint for phone validation */
.phone-hint {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
  font-family: var(--font-body);
}

.form-control:invalid:not(:placeholder-shown) {
  border-bottom-color: #d32f2f;
}

