/* ============================================
   ELITE AYURVEDA CONTACT FORMS
   Interactive Version with Searchable Country Code
   Fixed Font Sizes & Consistency
   ============================================ */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

/* ============================================
   CONTACT PAGE LAYOUT (60/40 Split)
   ============================================ */

.elite-contact-page {
  display: grid;
  grid-template-columns: 60% 40%;
  min-height: 100vh;
  gap: 0;
}

/* Left Section: Form Area */
.elite-contact-form-section {
  background: #ffffff;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.form-header {
  margin-bottom: 40px;
}

.form-header h1 {
  font-size: 2.5rem;
  color: #2d3748;
  margin-bottom: 10px;
  font-weight: 700;
}

.form-header p {
  font-size: 1.1rem;
  color: #718096;
}

/* Right Section: Company Info */
.elite-company-info-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.company-info-card {
  background: white;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  width: 100%;
}

.awards-banner {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #7ab144 0%, #5a8e2f 100%);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.awards-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-details {
  padding: 30px;
}

.company-details h2 {
  font-size: 1.6rem;
  color: #2d3748;
  margin-bottom: 15px;
  font-weight: 700;
}

.company-description {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 20px;
}

.read-more-link {
  display: inline-block;
  color: #7ab144;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 30px;
  transition: color 0.3s ease;
}

.read-more-link:hover {
  color: #5a8e2f;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  width: 24px;
  height: 24px;
  stroke: #7ab144;
  stroke-width: 2;
  flex-shrink: 0;
}

.contact-item > div {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 1rem;
  color: #2d3748;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

a.contact-value:hover {
  color: #7ab144;
}

/* ============================================
   INTERACTIVE FORM CONTAINER
   ============================================ */

.interactive-form-container {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* Progress Bar */
.progress-container {
  margin-bottom: 40px;
}

.progress-bar {
  width: 0%;
  height: 6px;
  background: linear-gradient(90deg, #7ab144 0%, #5a8e2f 100%);
  border-radius: 10px;
  transition: width 0.4s ease;
  margin-bottom: 10px;
}

.progress-text {
  font-size: 0.9rem;
  color: #718096;
  text-align: center;
}

/* Question Container */
.question-container {
  min-height: 300px;
  margin-bottom: 30px;
}

.question-slide {
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* FIXED: Question Label and Hint Sizes */
.question-label {
  font-size: 1.35rem;
  color: #2d3748;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  line-height: 1.4;
}

.question-hint {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 20px;
  display: block;
  line-height: 1.5;
  font-weight: 400;
}

/* Form Inputs - FIXED: Consistent Sizing */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
  line-height: 1.5;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #7ab144;
  box-shadow: 0 0 0 3px rgba(122, 177, 68, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
  padding-right: 50px;
}

/* ============================================
   SEARCHABLE COUNTRY CODE SELECTOR
   ============================================ */

/* Country Code Wrapper */
.country-code-wrapper {
  position: relative;
  width: 120px;
  flex-shrink: 0;
}

.country-code-input {
  width: 100%;
  padding: 12px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.875rem;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  color: #333;
  box-sizing: border-box;
  line-height: 1.4;
}

.country-code-input:focus {
  outline: none;
  border-color: #7ab144;
  box-shadow: 0 0 0 2px rgba(122, 177, 68, 0.1);
  cursor: text;
}

.country-code-input.has-value {
  font-weight: 600;
  color: #2d3748;
}

/* Country Code Dropdown */
.country-code-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 280px;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 2px solid #7ab144;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
}

.country-code-dropdown.active {
  display: block;
}

.country-code-option {
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.country-code-option:last-child {
  border-bottom: none;
}

.country-code-option:hover {
  background: #f0f7ed;
}

.country-code-option.selected {
  background: #e8f5e0;
  font-weight: 600;
  color: #7ab144;
}

.country-code-option .flag {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.country-code-option .code {
  font-weight: 600;
  color: #7ab144;
  min-width: 50px;
  font-size: 0.875rem;
}

.country-code-option .name {
  color: #4a5568;
  flex: 1;
  font-size: 0.875rem;
}

.country-code-dropdown .no-results {
  padding: 20px;
  text-align: center;
  color: #718096;
  font-size: 0.875rem;
}

/* Scrollbar styling */
.country-code-dropdown::-webkit-scrollbar {
  width: 6px;
}

.country-code-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.country-code-dropdown::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

.country-code-dropdown::-webkit-scrollbar-thumb:hover {
  background: #7ab144;
}

/* ============================================
   INTERACTIVE FORM - PHONE INPUT
   ============================================ */

.phone-input-group {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.phone-input-group .country-code-wrapper {
  width: 140px;
}

.phone-input-group .country-code-input {
  width: 100%;
  padding: 14px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.phone-input-group .country-code-input:focus {
  outline: none;
  border-color: #7ab144;
  box-shadow: 0 0 0 3px rgba(122, 177, 68, 0.1);
}

.phone-input-group .form-input {
  flex: 1;
}

.phone-input-group .country-code-dropdown {
  width: 320px;
  max-height: 280px;
}

.phone-input-group .country-code-option {
  padding: 12px 18px;
  font-size: 0.95rem;
}

/* ============================================
   COUNTRY SELECT DROPDOWN
   ============================================ */

.country-select-wrapper {
  position: relative;
}

.country-search-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
}

.country-search-input:focus {
  outline: none;
  border-color: #7ab144;
  box-shadow: 0 0 0 3px rgba(122, 177, 68, 0.1);
}

.country-options-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 250px;
  overflow-y: auto;
  background: white;
  border: 2px solid #7ab144;
  border-radius: 10px;
  margin-top: 5px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
}

.country-options-list.active {
  display: block;
}

.country-option {
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.95rem;
}

.country-option:hover {
  background: #f0f7ed;
}

.country-option.selected {
  background: #e8f5e0;
  font-weight: 600;
  color: #7ab144;
}

/* Radio Button Options */
.radio-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.radio-option {
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.radio-option label {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  background: white;
}

.radio-option label:hover {
  border-color: #7ab144;
  background: #f7fafc;
}

.radio-option input[type="radio"]:checked + label {
  border-color: #7ab144;
  background: #f0f7ed;
  font-weight: 600;
}

.radio-option label::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e0;
  border-radius: 50%;
  margin-right: 12px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + label::before {
  border-color: #7ab144;
  background: #7ab144;
  box-shadow: inset 0 0 0 4px white;
}

/* Navigation Buttons */
.form-navigation {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  margin-top: 30px;
}

.nav-btn {
  padding: 14px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.prev-btn {
  background: #e2e8f0;
  color: #4a5568;
  flex: 0 0 auto;
}

.prev-btn:hover {
  background: #cbd5e0;
}

.next-btn,
.submit-btn {
  background: linear-gradient(135deg, #7ab144 0%, #5a8e2f 100%);
  color: white;
  flex: 1;
  box-shadow: 0 4px 15px rgba(122, 177, 68, 0.3);
}

.next-btn:hover,
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 177, 68, 0.4);
}

.nav-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Form Messages */
.elite-form-message {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.95rem;
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.elite-form-message.success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
  display: block;
}

.elite-form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
  display: block;
}

/* ============================================
   FOOTER FORM - FIXED LAYOUT
   ============================================ */

.elite-footer-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.elite-footer-form h4 {
  margin-bottom: 20px;
  color: #2d3748;
  font-size: 1.5rem;
}

.elite-footer-form form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.elite-footer-form .form-group {
  flex: 1 1 200px;
  min-width: 200px;
}

/* Phone Group with Country Code */
.elite-footer-form .phone-group {
  display: flex;
  gap: 8px;
  flex: 1 1 300px;
  min-width: 300px;
  align-items: stretch;
}

.elite-footer-form .phone-group input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
}

/* Input Styling */
.elite-footer-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.875rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  line-height: 1.4;
}

.elite-footer-form input:focus {
  outline: none;
  border-color: #7ab144;
}

/* Submit Button */
.elite-footer-form button {
  padding: 12px 30px;
  background: #7ab144;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
  flex: 0 0 auto;
  align-self: flex-start;
  height: 44px;
}

.elite-footer-form button:hover {
  background: #6a9e3a;
}

.elite-footer-form button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .elite-contact-page {
    grid-template-columns: 1fr;
  }
  
  .elite-company-info-section {
    position: relative;
    height: auto;
    padding: 40px 20px;
  }
  
  .elite-contact-form-section {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .form-header h1 {
    font-size: 2rem;
  }
  
  .elite-contact-form-section {
    padding: 30px 20px;
  }
  
  .question-label {
    font-size: 1.2rem;
  }
  
  .question-hint {
    font-size: 0.8rem;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 0.95rem;
    padding: 12px 16px;
  }
  
  .radio-option label {
    font-size: 0.95rem;
    padding: 12px 16px;
  }
  
  .nav-btn {
    font-size: 0.95rem;
  }
  
  .form-navigation {
    flex-direction: column;
  }
  
  .prev-btn {
    order: 2;
  }
  
  .next-btn,
  .submit-btn {
    order: 1;
  }
  
  /* Footer Form Responsive */
  .elite-footer-form form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .elite-footer-form .form-group {
    min-width: 100%;
    flex: 1 1 100%;
  }
  
  .elite-footer-form .phone-group {
    min-width: 100%;
    width: 100%;
    flex: 1 1 100%;
  }
  
  .elite-footer-form button {
    width: 100%;
    flex: 1 1 auto;
  }
  
  .country-code-wrapper {
    width: 110px;
  }
  
  .country-code-dropdown {
    width: 260px;
  }
  
  /* Contact Form Phone Input Responsive */
  .phone-input-group {
    flex-direction: row;
  }
  
  .phone-input-group .country-code-wrapper {
    width: 120px;
  }
}

@media (max-width: 480px) {
  .elite-footer-form {
    padding: 30px 15px;
  }
  
  .elite-footer-form h4 {
    font-size: 1.3rem;
  }
  
  .question-label {
    font-size: 1.1rem;
  }
  
  .question-hint {
    font-size: 0.75rem;
  }
  
  .form-input,
  .form-textarea {
    font-size: 0.9rem;
    padding: 12px 15px;
  }
  
  .radio-option label {
    font-size: 0.9rem;
  }
  
  .nav-btn {
    font-size: 0.9rem;
    padding: 12px 25px;
  }
  
  .country-code-wrapper {
    width: 100px;
  }
  
  .country-code-input {
    font-size: 0.8rem;
    padding: 12px 8px;
  }
  
  .country-code-dropdown {
    width: 100%;
    left: 0;
    right: 0;
  }
  
  .phone-input-group .country-code-wrapper {
    width: 110px;
  }
  
  .phone-input-group .country-code-dropdown {
    width: 100%;
  }
  
  .phone-input-group .country-code-input {
    font-size: 0.9rem;
  }
}
