/* ===========================
   Variables CSS
=========================== */
:root {
  --primary: #C54C5A;
  --primary-hover: #b03d4c;
  --dark: #2d3748;
  --gray: #4a5568;
  --light-gray: #718096;
  --bg: #fafafa;
  --bg-alt: #f7fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #10b981;
  --error: #ef4444;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);

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

/* ===========================
   Base
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--dark);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ===========================
   Header
=========================== */
.header {
  text-align: center;
  margin-bottom: 50px;
  padding: 60px 30px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 10;
}

.logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  display: block;
  border-radius: 50%;
}

.header h1 {
  color: var(--dark);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header p {
  color: var(--gray);
  font-size: 1.2em;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* ===========================
   Progress Container
=========================== */
.progress-container {
  position: relative;
  margin: 40px 0;
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 12px;
  margin: 25px 0;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  width: 20%;
  border-radius: 12px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.step {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 5;
}

.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--border);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-gray);
  font-weight: 700;
  font-size: 18px;
  transition: var(--transition);
  border: 3px solid transparent;
}

.step.active .step-circle {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.15);
  box-shadow: var(--shadow-md);
}

.step.completed .step-circle {
  background: var(--success);
  color: var(--white);
  transform: scale(1.05);
}

.step-label {
  font-size: 0.95em;
  color: var(--light-gray);
  font-weight: 600;
  transition: color 0.3s ease;
}

.step.active .step-label {
  color: var(--primary);
  font-weight: 700;
}

/* ===========================
   Form Sections
=========================== */
.form-section {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
  display: none;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary);
}

.form-section.active {
  display: block;
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.section-title {
  color: var(--primary);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 30px;
  font-weight: 800;
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
}

.section-icon {
  margin-right: 15px;
  font-size: 1.3em;
  color: var(--primary);
}

/* ===========================
   Form Elements
=========================== */
.form-group {
  margin-bottom: 30px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--dark);
  font-size: 1.05em;
}

.required {
  color: var(--primary);
  font-weight: 700;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=url],
input[type=number],
input[type=date],
input[type=file],
textarea,
select {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  transition: var(--transition);
  background: var(--white);
  font-weight: 400;
  color: var(--dark);
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 76, 90, 0.1);
  transform: translateY(-1px);
}

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

/* ===========================
   Checkbox & Radio Groups
=========================== */
.checkbox-group,
.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  padding: 18px 22px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  position: relative;
}

.checkbox-item:hover,
.radio-item:hover {
  border-color: var(--primary);
  background: var(--bg-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.checkbox-item input,
.radio-item input {
  margin-right: 15px;
  width: auto;
  transform: scale(1.2);
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-item label,
.radio-item label {
  cursor: pointer;
  font-weight: 500;
  color: var(--dark);
}

.checkbox-item input:checked + label,
.radio-item input:checked + label {
  color: var(--primary);
  font-weight: 700;
}

.help-text {
  font-size: 0.9em;
  color: var(--light-gray);
  margin-top: 8px;
  font-style: italic;
}

/* ===========================
   Budget Cards
=========================== */
.budget-ranges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.budget-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  position: relative;
}

.budget-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary);
  border-radius: 12px 12px 0 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.budget-card:hover::before,
.budget-card.selected::before {
  transform: scaleX(1);
}

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

.budget-card.selected {
  border-color: var(--primary);
  background: var(--bg-alt);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.budget-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2em;
  margin-bottom: 8px;
}

.budget-range {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark);
}

.budget-features {
  font-size: 0.95em;
  color: var(--gray);
  line-height: 1.6;
}

/* ===========================
   Project Type Cards
=========================== */
.project-type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary);
  border-radius: 12px 12px 0 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover::before,
.project-card.selected::before {
  transform: scaleX(1);
}

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

.project-card.selected {
  border-color: var(--primary);
  background: var(--bg-alt);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.project-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
}

/* ===========================
   Captcha
=========================== */
.captcha-container {
  margin: 25px 0;
  padding: 20px;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.captcha-container h4 {
  color: var(--dark);
  margin-bottom: 15px;
  font-weight: 700;
  font-size: 1.1em;
}

/* ===========================
   Buttons
=========================== */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding: 30px 0;
  position: relative;
  z-index: 10;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  min-height: 44px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--gray);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
  transform: translateX(3px);
}

.btn-secondary:hover .btn-icon {
  transform: translateX(-3px);
}

/* ===========================
   Validation & Messages
=========================== */
.validation-message {
  color: var(--error);
  font-size: 0.9em;
  margin-top: 8px;
  display: none;
  font-weight: 600;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border-left: 4px solid var(--error);
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.field-error {
  border-color: var(--error) !important;
  background: rgba(239, 68, 68, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.field-error:focus {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2) !important;
}

/* ===========================
   Summary
=========================== */
.summary {
  background: var(--bg-alt);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 30px;
  margin-top: 25px;
  box-shadow: var(--shadow-sm);
}

.summary h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.5em;
  font-weight: 700;
}

.summary-item {
  margin-bottom: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.summary-label {
  font-weight: 700;
  color: var(--dark);
  font-size: 1.05em;
}

.summary-value {
  color: var(--gray);
  margin-top: 5px;
  font-weight: 400;
}

/* ===========================
   Privacy Notice
=========================== */
.privacy-notice {
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 25px;
  font-size: 0.95em;
  color: var(--gray);
}

.privacy-notice h4 {
  color: var(--dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.privacy-notice a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.privacy-notice a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ===========================
   Footer Navigation
=========================== */
.site-footer {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 30px;
  margin-top: 60px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: 8px;
}

.footer-nav a:hover {
  color: var(--primary);
  background: var(--bg-alt);
  transform: translateY(-2px);
}

.footer-info {
  color: var(--light-gray);
  font-size: 0.9em;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ===========================
   Utility Classes
=========================== */
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .header {
    padding: 40px 20px;
    margin-bottom: 30px;
  }

  .header h1 {
    font-size: 2em;
  }

  .form-section {
    padding: 25px;
  }

  .checkbox-group,
  .radio-group {
    grid-template-columns: 1fr;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .progress-steps {
    font-size: 0.85em;
  }

  .two-cols {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.6em;
  }

  .step-circle {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .budget-ranges,
  .project-type-cards {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-direction: column;
    gap: 15px;
  }
}

/* ===========================
   SEO Intro Box
=========================== */
.seo-intro {
  max-width: 800px;
  margin: 0 auto 30px;
  padding: 25px;
  background: var(--white);
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.seo-intro p {
  color: var(--dark);
  font-size: 1.05em;
  line-height: 1.8;
  margin: 0;
}

.seo-intro strong {
  color: var(--primary);
  font-weight: 600;
}

/* ===========================
   Animation - Success Pulse
=========================== */
@keyframes pulse-success {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.2);
  }
}
