/* CSS Variables for consistent colors */
:root {
  --primary-color: #d97706;
  --accent-color: #f59e0b;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --border-color: #e5e7eb;
  --success: #10b981;
  --error: #ef4444;
  --warning: #ea580c;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
  }
  
  /* Contact Section */
  .contact-section {
    padding: 2rem 0 5rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
  }
  
  /* Background decoration */
  .bg-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  
  .bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='10' height='10' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 10 0 L 0 0 0 10' fill='none' stroke='%23e5e7eb' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E");
    opacity: 0.05;
  }
  
  .bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
  }
  
  .bg-circle-1 {
    top: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: rgba(239, 182, 68, 0.1);
  }
  
  .bg-circle-2 {
    bottom: 0;
    left: 0;
    width: 24rem;
    height: 24rem;
    background: rgba(249, 166, 22, 0.1);
  }
  
  /* Container */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
  }
  
  /* Section Header */
  .section-header {
    text-align: center;
    margin-bottom: 4rem;
  }
  
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    color: #1f2937;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(217, 119, 6, 0.2);
  }
  
  .pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #f59e0b;
    border-radius: 50%;
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.5;
    }
  }
  
  .main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
  }
  
  .title-accent {
    display: block;
    background: linear-gradient(135deg, var(--primary-color) 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
  }
  
  .title-underline {
    width: 6rem;
    height: 0.25rem;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    margin: 0 auto;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  
  /* Content Grid */
  .content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  @media (min-width: 1024px) {
    .content-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  /* Contact Info */
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .info-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
  }
  
  .info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .info-description {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
  }
  
  .contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.3s ease;
  }
  
  .contact-item:hover {
    transform: translateX(0.25rem);
  }
  
  .contact-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }
  
  .contact-icon-red {
    background: linear-gradient(135deg, #fef2f2 0%, #fef0ca 100%);
  }
  
  .contact-icon-red:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fef0ca 100%);
  }
  
  .contact-icon-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  }
  
  .contact-icon-green:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  }
  
  .contact-icon-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  }
  
  .contact-icon-purple:hover {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  }
  
  .contact-icon-orange {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
  }
  
  .contact-icon-orange:hover {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  }
  
  .contact-item h4 {
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
  }
  
  .contact-item p {
    color: #6b7280;
    line-height: 1.6;
  }
  
  .contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .contact-item a:hover {
    color: #f59e0b;
  }
  
  /* Trust Indicators */
  .trust-indicators {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .guarantee-badge {
    padding: 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 1rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #15803d;
    font-weight: 600;
    font-size: 0.875rem;
  }
  
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0.75rem;
  }
  
  .stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }
  
  .stat-item p {
    font-size: 0.875rem;
    color: #6b7280;
  }
  
  /* Form Container */
  .form-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 1.5rem;
    overflow: hidden;
    border: none;
  }
  
  /* Contact Type Selector */
  .contact-type-selector {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .contact-type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--accent-color);
    background: var(--accent-color);
    color: var(--white);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
  }
  
  .contact-type-btn .fas,
  .contact-type-btn .far {
    color: var(--white);
  }
  
  .contact-type-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .contact-type-btn.active,
  .contact-type-btn:active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
  }
  
  .contact-type-btn.active .fas,
  .contact-type-btn.active .far {
    color: var(--white);
  }
  
  .contact-type-btn.active:hover {
    background: var(--primary-color);
  }
  
  /* Form Header */
  .form-header {
    background: linear-gradient(135deg, #f59e0b 0%, #f59e0b 100%);
    color: white;
    padding: 2rem;
  }
  
  .form-header .fas,
  .form-header .far {
    color: white;
  }
  
  .form-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  .form-description {
    color: rgba(254, 242, 242, 0.9);
  }
  
  /* Form Content */
  .form-content {
    padding: 2rem;
  }
  
  /* Success Message */
  .success-message {
    text-align: center;
    padding: 2rem 0;
  }
  
  .success-icon {
    width: 4rem;
    height: 4rem;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
  }
  
  .success-icon .fas {
    font-size: 2rem;
    color: #16a34a;
  }
  
  .success-message h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
  }
  
  .success-message p {
    color: #6b7280;
  }
  
  /* Error Messages */
  .error-messages {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .error-messages p {
    color: #f59e0b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }
  
  .error-messages p:last-child {
    margin-bottom: 0;
  }
  
  /* Form Styles */
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  @media (min-width: 768px) {
    .form-row {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  .form-group label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.75rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
  }
  
  .form-group input {
    height: 3rem;
  }
  
  .form-group textarea {
    resize: none;
    min-height: 8rem;
  }
  
  /* Quote Fields */
  .quote-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
  }
  
  /* Checkbox Group */
  .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.125rem;
  }
  
  .checkbox-group label {
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
  }
  
  /* Submit Button */
  .submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #f59e0b 100%);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }
  
  .submit-btn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #f59e0b 100%);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  }
  
  .submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  /* Loading Spinner */
  .loading-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  /* Form Footer */
  .form-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
  }
  
  .footer-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
  }
  
  .indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  .indicator .icon {
    width: 1rem;
    height: 1rem;
  }
  
  /* Icons */
  .icon,
  .fas,
  .far {
    width: 1.5rem;
    text-align: center;
  }
  
  /* Confirmation Modal */
  .lmv-modal {
    position: fixed;
    inset: 0;
    display: none; /* toggled to flex by JS on success */
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
  }

  .lmv-modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: min(520px, 92%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 24px;
    animation: modalFade 0.2s ease-out;
  }

  @keyframes modalFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .lmv-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    color: #6b7280;
  }

  .lmv-modal-close:hover {
    color: #111827;
  }

  .modal-success {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #10b981;
    margin-bottom: 8px;
    font-weight: 600;
  }

  .lmv-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    gap: 8px;
  }

  /* Use primary button look but not full width inside modal */
  .lmv-modal .submit-btn {
    width: auto;
    padding: 0.625rem 1rem;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .contact-section {
      padding: 3rem 0;
    }
  
    .container {
      padding: 0 1rem;
    }
  
    .section-header {
      margin-bottom: 2rem;
    }
  
    .content-grid {
      gap: 2rem;
    }
  
    .info-card,
    .form-content {
      padding: 1.5rem;
    }
  
    .contact-type-selector {
      padding: 1rem;
    }
  
    .contact-type-btn {
      font-size: 0.875rem;
      padding: 0.5rem 0.75rem;
    }
  
    .form-header {
      padding: 1.5rem;
    }
  
    .footer-indicators {
      gap: 1rem;
      font-size: 0.75rem;
    }
  }
  