/* VARIABLES CSS */
:root {
  --primary: #2A5C82;
  --primary-light: #3A7CA5;
  --primary-dark: #1A445F;
  --secondary: #2E8B57;
  --accent: #FF7F50;
  --accent-light: #FFA07A;
  --dark: #2C3E50;
  --light: #F8F9FA;
  --gray: #6C757D;
  --gray-light: #E9ECEF;
  --border: #DEE2E6;
  --success: #2E8B57;
  --warning: #FF7F50;
  --info: #3A7CA5;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 50px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
.title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* HERO SECTION */
.quote-hero {
  min-height: 85vh;
  background: linear-gradient(135deg, rgba(42, 92, 130, 0.95) 0%, rgba(46, 139, 87, 0.95) 100%),
  url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  color: white;
}

.quote-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 127, 80, 0.15) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
  padding: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  opacity: 0.9;
  max-width: 700px;
  margin: 0 0 40px;
  line-height: 1.6;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 50px 0;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-feature i {
  font-size: 1.5rem;
  color: var(--accent);
}

.hero-feature span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* QUOTE CALCULATOR */
.quote-calculator {
  padding: 100px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 20px auto 0;
}

.calculator-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.calculator-steps {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.calculator-step {
  flex: 1;
  padding: 25px 20px;
  text-align: center;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  border-bottom: 3px solid transparent;
}

.calculator-step.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(42, 92, 130, 0.05);
}

.calculator-step.completed {
  color: var(--secondary);
}

.step-number {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  background: var(--gray-light);
  border-radius: 50%;
  margin-right: 10px;
  font-size: 0.9rem;
}

.calculator-step.active .step-number {
  background: var(--primary);
  color: white;
}

.calculator-step.completed .step-number {
  background: var(--secondary);
  color: white;
}

.calculator-content {
  padding: 50px;
}

.step-content {
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.service-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
}

.service-option:hover {
  border-color: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-option.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(42, 92, 130, 0.05), rgba(46, 139, 87, 0.05));
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(42, 92, 130, 0.1), rgba(46, 139, 87, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--primary);
  transition: var(--transition);
}

.service-option.selected .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}

.service-option h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.service-option p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* FORM STYLES */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.form-label .required {
  color: var(--accent);
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 92, 130, 0.1);
}

.form-control::placeholder {
  color: var(--gray);
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A5C82'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 20px;
  padding-right: 50px;
}

.checkbox-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: var(--gray-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.checkbox-option:hover {
  background: #e2e6ea;
}

.checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-option label {
  color: var(--dark);
  font-size: 0.95rem;
  cursor: pointer;
  flex: 1;
  user-select: none;
}

.range-slider {
  width: 100%;
  margin: 20px 0;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.slider-value {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  background: linear-gradient(to right, #2563eb 0%, #2563eb var(--range-percent, 10%), #e5e7eb var(--range-percent, 10%), #e5e7eb 100%);
  border-radius: 4px;
  outline: none;
  transition: background 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: #2563eb;
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #1d4ed8;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.6);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #2563eb;
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  background: #1d4ed8;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.6);
}

input[type="range"]::-moz-range-track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
}

input[type="range"]::-moz-range-progress {
  height: 8px;
  background: #2563eb;
  border-radius: 4px;
}

.calculator-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

/* ESTIMATION RESULT */
.estimation-result {
  background: linear-gradient(135deg, rgba(42, 92, 130, 0.05), rgba(46, 139, 87, 0.05));
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin: 30px 0;
}

.estimation-title {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 20px;
}

.estimation-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.estimation-note {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 20px;
}

.price-breakdown {
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 30px 0;
  box-shadow: var(--shadow-md);
}

.price-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.price-item:last-child {
  border-bottom: none;
  font-weight: 700;
  color: var(--dark);
}

/* CONTACT INFO */
.contact-info-section {
  padding: 100px 0;
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.contact-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: white;
  font-size: 1.8rem;
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.contact-card p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 10px;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-card a:hover {
  color: var(--primary-dark);
}

/* FAQ SECTION */
.faq-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--light) 0%, var(--gray-200) 100%);
}

.faq-grid {
  max-width: 900px;
  margin: 40px auto 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
  transition: var(--transition);
  background: white;
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 25px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--primary-light);
  font-size: 1rem;
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  padding: 0 25px 25px;
  max-height: 1000px;
}

.faq-answer p {
  color: var(--gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* FINAL CTA */
.final-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.final-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

/* NOTIFICATIONS */
.notification-toast {
  position: fixed;
  top: 100px;
  right: 20px;
  background: var(--success);
  color: white;
  padding: 20px 25px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  transform: translateX(400px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s;
  max-width: 350px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-toast.error {
  background: var(--accent);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.notification-content i {
  font-size: 1.3rem;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .calculator-steps {
    flex-direction: column;
  }

  .calculator-step {
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
  }

  .calculator-step.active {
    border-left-color: var(--primary);
    border-bottom-color: var(--border);
  }
}

@media (max-width: 768px) {
  .quote-hero {
    min-height: 70vh;
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .calculator-content {
    padding: 30px 20px;
  }

  .service-options {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .checkbox-options {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .notification-toast {
    top: 20px;
    right: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .calculator-step {
    padding: 15px 10px;
    font-size: 0.9rem;
  }

  .estimation-price {
    font-size: 2.5rem;
  }

  .contact-card {
    padding: 30px 20px;
  }
}

/* ACCESSIBILITY */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

*:focus:not(.focus-visible) {
  outline: none;
}