/* ========================================
   QUOTE PAGE STYLES - UNIQUE PREFIX: qp-
   ======================================== */

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

/* Premium Quote Hero Section */
.qp-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e392f 0%, #2a4a3f 50%, #1e392f 100%);
  overflow: hidden;
  padding: 8rem 2rem 4rem;
  margin-top: -80px;
}

.qp-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 50%, rgba(218, 165, 32, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(218, 165, 32, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.qp-hero-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23daa520' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.qp-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  animation: qpHeroFadeIn 1s ease-out;
}

.qp-hero-label {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(218, 165, 32, 0.15);
  border: 1px solid rgba(218, 165, 32, 0.3);
  border-radius: 50px;
  color: #daa520;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.qp-hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fdfdf5;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.qp-hero-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(253, 253, 245, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

@keyframes qpHeroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Quote Form Section */
.qp-form-section {
  padding: 2.5rem 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #fdfdf5 100%);
  position: relative;
}

.qp-form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.3), transparent);
}

.qp-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.qp-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

/* Form Wrapper */
.qp-form-wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(42, 74, 63, 0.08);
  position: relative;
  overflow: hidden;
}

.qp-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #daa520, #e6b800, #daa520);
}

.qp-form-header {
  margin-bottom: 1.5rem;
}

.qp-form-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e392f;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.qp-form-desc {
  font-size: 0.9375rem;
  color: #6c757d;
  line-height: 1.5;
}

/* Form Sections */
.qp-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(42, 74, 63, 0.1);
}

.qp-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.qp-section-title {
  font-family: "Inter", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e392f;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qp-section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #daa520, #e6b800);
  border-radius: 2px;
}

/* Form Rows */
.qp-row {
  margin-bottom: 1rem;
}

.qp-row:last-child {
  margin-bottom: 0;
}

.qp-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Form Groups */
.qp-group {
  display: flex;
  flex-direction: column;
}

.qp-label {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e392f;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
  display: block;
}

/* Form Inputs */
.qp-input,
.qp-select,
.qp-textarea {
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  color: #1e392f;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  width: 100%;
}

.qp-input:hover,
.qp-select:hover,
.qp-textarea:hover {
  border-color: #d0d0d0;
  background: #ffffff;
}

.qp-input:focus,
.qp-select:focus,
.qp-textarea:focus {
  border-color: #daa520;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(218, 165, 32, 0.12);
  transform: translateY(-1px);
}

.qp-input::placeholder,
.qp-textarea::placeholder {
  color: #adb5bd;
}

.qp-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%231e392f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.qp-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

/* Checkbox Group */
.qp-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.qp-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(42, 74, 63, 0.3);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #daa520;
}

.qp-checkbox-label {
  font-size: 0.875rem;
  color: #6c757d;
  line-height: 1.6;
  cursor: pointer;
}

/* Submit Button */
.qp-submit {
  margin-top: 1.5rem;
  text-align: center;
}

.qp-submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 2.5rem;
  background: linear-gradient(135deg, #daa520 0%, #e6b800 100%);
  color: #1e392f;
  border: none;
  border-radius: 50px;
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 
    0 6px 20px rgba(218, 165, 32, 0.35),
    0 2px 6px rgba(218, 165, 32, 0.2);
}

.qp-submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.qp-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 32px rgba(218, 165, 32, 0.45),
    0 4px 12px rgba(218, 165, 32, 0.25);
}

.qp-submit-btn:hover::before {
  left: 100%;
}

.qp-submit-btn:active {
  transform: translateY(0);
}

.qp-btn-text {
  position: relative;
  z-index: 1;
}

.qp-btn-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.qp-submit-btn:hover .qp-btn-icon {
  transform: translateX(4px);
}

.qp-submit-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #6c757d;
}

/* Sidebar */
.qp-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.qp-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(42, 74, 63, 0.08);
  transition: all 0.3s ease;
}

.qp-card:hover {
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.qp-card-title {
  font-family: "Inter", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e392f;
  margin-bottom: 1rem;
}

/* Benefits List */
.qp-benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qp-benefit {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.qp-benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.15), rgba(218, 165, 32, 0.08));
  border-radius: 10px;
  color: #daa520;
  transition: all 0.3s ease;
}

.qp-benefit:hover .qp-benefit-icon {
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.25), rgba(218, 165, 32, 0.15));
  transform: scale(1.05);
}

.qp-benefit-icon svg {
  width: 20px;
  height: 20px;
}

.qp-benefit-content {
  flex: 1;
}

.qp-benefit-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e392f;
  margin-bottom: 0.125rem;
}

.qp-benefit-text {
  font-size: 0.8125rem;
  color: #6c757d;
  line-height: 1.4;
}

/* Process Steps */
.qp-steps {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.qp-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.qp-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #daa520, #e6b800);
  color: #1e392f;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8125rem;
}

.qp-step-content {
  flex: 1;
  padding-top: 0.125rem;
}

.qp-step-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e392f;
  margin-bottom: 0.125rem;
}

.qp-step-text {
  font-size: 0.8125rem;
  color: #6c757d;
  line-height: 1.4;
}

/* Contact Card */
.qp-contact-card {
  background: linear-gradient(135deg, #1e392f 0%, #2a4a3f 50%, #1e392f 100%);
  position: relative;
  overflow: hidden;
}

.qp-contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(218, 165, 32, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.qp-contact-card .qp-card-title {
  color: #fdfdf5;
}

.qp-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qp-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.qp-contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(218, 165, 32, 0.2);
  border-radius: 10px;
  color: #daa520;
  position: relative;
  z-index: 1;
}

.qp-contact-icon svg {
  width: 18px;
  height: 18px;
}

.qp-contact-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.qp-contact-label {
  font-size: 0.6875rem;
  color: rgba(253, 253, 245, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.qp-contact-link {
  font-size: 0.9375rem;
  color: #fdfdf5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.qp-contact-link:hover {
  color: #daa520;
}

/* Trust Section */
.qp-trust-section {
  padding: 2.5rem 0;
  background: #ffffff;
  border-top: 1px solid rgba(42, 74, 63, 0.1);
}

.qp-trust-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.qp-trust-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e392f;
  margin-bottom: 2rem;
}

.qp-trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.qp-trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.qp-stat-number {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #daa520;
  line-height: 1;
}

.qp-stat-label {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
  .qp-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .qp-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .qp-contact-card {
    grid-column: 1 / -1;
  }

  .qp-trust-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .qp-hero {
    min-height: 45vh;
    padding: 7rem 1.75rem 3.5rem;
  }

  .qp-hero-title {
    font-size: 2.25rem;
  }

  .qp-form-section {
    padding: 2rem 0;
  }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
  .qp-hero {
    min-height: 40vh;
    padding: 6rem 1.5rem 2.5rem;
    margin-top: -60px;
  }

  .qp-hero-title {
    font-size: 2rem;
    margin-bottom: 0.875rem;
  }

  .qp-hero-subtitle {
    font-size: 0.9375rem;
  }
  
  .qp-hero-label {
    margin-bottom: 1rem;
  }

  .qp-form-section {
    padding: 1.5rem 0;
  }

  .qp-container {
    padding: 0 1rem;
  }

  .qp-form-wrapper {
    padding: 1.5rem 1.25rem;
  }

  .qp-form-title {
    font-size: 1.5rem;
  }

  .qp-row {
    margin-bottom: 0.875rem;
  }

  .qp-row-2 {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .qp-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .qp-sidebar {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .qp-card {
    padding: 1.25rem;
  }

  .qp-trust-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .qp-stat-number {
    font-size: 2rem;
  }

  .qp-input,
  .qp-select,
  .qp-textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.625rem 0.875rem;
  }

  .qp-submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }

  .qp-grid {
    gap: 1.5rem;
  }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
  .qp-hero {
    min-height: 38vh;
    padding: 5.5rem 1.25rem 2rem;
  }

  .qp-hero-title {
    font-size: 1.875rem;
    margin-bottom: 0.75rem;
  }

  .qp-hero-subtitle {
    font-size: 0.9375rem;
  }

  .qp-hero-label {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    margin-bottom: 0.875rem;
  }

  .qp-form-wrapper {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }

  .qp-form-header {
    margin-bottom: 1rem;
  }

  .qp-form-title {
    font-size: 1.375rem;
  }

  .qp-form-desc {
    font-size: 0.875rem;
  }

  .qp-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  .qp-section-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .qp-label {
    font-size: 0.8125rem;
    margin-bottom: 0.3rem;
  }

  .qp-row {
    margin-bottom: 0.75rem;
  }

  .qp-card {
    padding: 1rem;
  }

  .qp-card-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .qp-submit {
    margin-top: 1rem;
  }

  .qp-submit-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
  }

  .qp-submit-note {
    font-size: 0.8125rem;
    margin-top: 0.75rem;
  }

  .qp-trust-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .qp-stat-number {
    font-size: 1.75rem;
  }

  .qp-stat-label {
    font-size: 0.8125rem;
  }

  .qp-benefit-icon,
  .qp-contact-icon {
    width: 36px;
    height: 36px;
  }

  .qp-benefit-icon svg,
  .qp-contact-icon svg {
    width: 18px;
    height: 18px;
  }

  .qp-step-num {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}

/* Form Error States */
.qp-input.qp-error,
.qp-select.qp-error,
.qp-textarea.qp-error {
  border-color: #dc3545 !important;
  background: #fff5f5;
}

.qp-error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  animation: qpErrorSlide 0.3s ease-out;
}

@keyframes qpErrorSlide {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading State */
.qp-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.qp-submit-btn.loading {
  position: relative;
}

.qp-submit-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(30, 57, 47, 0.3);
  border-top-color: #1e392f;
  border-radius: 50%;
  animation: qpSpin 0.8s linear infinite;
}

@keyframes qpSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Focus Visible for Accessibility */
.qp-input:focus-visible,
.qp-select:focus-visible,
.qp-textarea:focus-visible,
.qp-checkbox:focus-visible {
  outline: 3px solid rgba(218, 165, 32, 0.5);
  outline-offset: 2px;
}

/* Smooth Transitions */
.qp-benefit,
.qp-step,
.qp-contact-item {
  transition: all 0.3s ease;
}

.qp-benefit:hover,
.qp-step:hover {
  transform: translateX(4px);
}

/* Enhanced Select Dropdown */
.qp-select option {
  padding: 0.75rem;
  background: #ffffff;
  color: #1e392f;
}

/* Checkbox Enhancement */
.qp-checkbox:checked {
  background: #daa520;
  border-color: #daa520;
}

/* Trust Stats Animation */
.qp-trust-stat {
  transition: all 0.3s ease;
}

.qp-trust-stat:hover {
  transform: translateY(-4px);
}

.qp-trust-stat:hover .qp-stat-number {
  color: #e6b800;
  transform: scale(1.05);
}

/* Print Styles */
@media print {
  .qp-hero,
  .qp-sidebar,
  .qp-trust-section {
    display: none;
  }

  .qp-form-wrapper {
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .qp-input,
  .qp-select,
  .qp-textarea {
    border-width: 3px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
