/* ===================================
   DESIGN PROCESS SECTION
   =================================== */

/* CSS Variables for Design Process */
:root {
  --design-process-section-bg: #e9ebef;
  --design-process-bg: #ffffff;
  --design-process-text-primary: #213361;
  --design-process-text-secondary: #213361;
  --design-process-button-bg: #e9ebef;
  --design-process-button-text: #213361;
  --design-process-step-bg: #046cb5;
  --design-process-container-max-width: 1456px;
  --design-process-border-radius: 24px;
  --design-process-tab-bg: #046cb5;
  --design-process-tab-active: #046cb5;
  --design-process-tab-inactive: #ffffff;
}

/* Main section with background */
.design-process-section {
  background: var(--design-process-section-bg);
  padding: 60px 0;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

.design-process-container {
  max-width: var(--design-process-container-max-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  box-sizing: border-box;
}

/* Inner container with white background */
.design-process-inner {
  background: var(--design-process-bg);
  border-radius: var(--design-process-border-radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  width: 100%;
  box-sizing: border-box;
}

/* ===================================
   TABS SECTION
   =================================== */

.design-process-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.design-process-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--design-process-tab-inactive);
  color: #6a7694;
  border-radius: 50px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  border: 1px solid #6a769480;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active.design-process-tab {
  color: #fff;
}

.design-process-tab.active {
  background: var(--tab-color, #046cb5);
}

.design-process-tab:hover {
  background: var(--tab-color, #046cb5);
  opacity: 0.8;
  color: #fff;
}

.design-process-tab-icon {
  width: 16px;
  height: 16px;
  fill: var(--tab-color, #046cb5);
  border: 1px solid white;
  border-radius: 50%;
}

/* ===================================
   HEADER SECTION
   =================================== */

.design-process-header {
  margin-bottom: 30px;
  padding-left: 0;
}

.design-process-header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.design-process-icon {
  flex-shrink: 0;
}

.design-process-icon img {
  width: 40px;
  height: 40px;
  display: block;
}

.design-process-icon-placeholder {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.design-process-title {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: var(--design-process-text-primary);
  margin: 0;
}

/* ===================================
   STEPS GRID
   =================================== */

.design-process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 40px;
  align-items: start;
}

.design-process-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  min-height: auto;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.design-process-step:hover {
  background: #f8f9fa;
}

/* ===================================
   STEP NUMBER CIRCLE
   =================================== */

.step-number {
  flex-shrink: 0;
  position: relative;
}

.step-number-circle {
  width: 40px;
  height: 40px;
  background: var(--current-color, var(--design-process-step-bg));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.step-number-circle span {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.5px;
}

/* All step numbers centered */

/* ===================================
   STEP CONTENT
   =================================== */

.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: auto;
}

.step-title {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--design-process-text-primary);
  margin: 0;
  white-space: normal;
  word-wrap: break-word;
}

.step-description {
  flex: 1;
}

.step-description p {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--design-process-text-secondary);
  margin: 0;
}

/* ===================================
   STEP BUTTON
   =================================== */

.step-button-wrapper {
  margin-top: auto;
  padding-top: 12px;
}

.step-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  min-width: 140px;
  height: auto;
  background: var(--design-process-button-bg);
  border-radius: 20px;
  text-decoration: none;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(12px, 1.3vw, 14px);
  font-weight: 500;
  letter-spacing: 0.02px;
  color: var(--design-process-button-text);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.step-button:hover {
  background: #dde1e7;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  color: var(--design-process-button-text);
}

.step-button:focus {
  outline: 2px solid var(--design-process-text-primary);
  outline-offset: 2px;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
  .design-process-container {
    padding: 0 40px;
  }

  .design-process-header {
    padding-left: 40px;
  }

  .design-process-step {
    padding: 0 40px 60px;
  }

  .design-process-steps {
    gap: 40px 60px;
  }
}

/* Tablets */
@media (max-width: 968px) {
  .design-process-section {
    padding: 60px 0 80px;
    border-radius: 32px;
  }

  .design-process-container {
    padding: 0 30px;
  }

  .design-process-header {
    padding-left: 30px;
    margin-bottom: 40px;
  }

  .design-process-header-content {
    gap: 24px;
  }

  .design-process-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .design-process-step {
    padding: 0 30px 40px;
    min-height: auto;
    gap: 24px;
  }

  .step-content {
    gap: 24px;
    min-height: auto;
  }

  .step-button {
    min-width: 280px;
    padding: 24px 32px;
    height: 80px;
  }
}

/* Mobile devices */
@media (max-width: 640px) {
  .design-process-section {
    padding: 40px 0 60px;
    margin: 20px 0;
    border-radius: 24px;
  }

  .design-process-container {
    padding: 0 16px;
  }

  .design-process-inner {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .design-process-tabs {
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 4px;
  }

  .design-process-tab {
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
  }

  .design-process-header {
    padding-left: 0;
    margin-bottom: 24px;
  }

  .design-process-header-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .design-process-step {
    padding: 0 0 24px;
    gap: 16px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step-content {
    gap: 16px;
    align-items: center;
  }

  .step-title {
    text-align: center;
    font-size: 18px;
    line-height: 1.3;
  }

  .step-description {
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
  }

  .step-button {
    min-width: 200px;
    padding: 16px 24px;
    height: 60px;
    font-size: 14px;
  }
}

/* Very small devices */
@media (max-width: 480px) {
  .design-process-section {
    padding: 30px 0 40px;
    margin: 16px 0;
    border-radius: 16px;
  }

  .design-process-container {
    padding: 0 12px;
  }

  .design-process-inner {
    padding: 20px 12px;
    border-radius: 12px;
  }

  .design-process-tabs {
    gap: 6px;
    margin-bottom: 16px;
    padding: 0 2px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .design-process-tab {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 20px;
    min-width: auto;
    flex: 0 0 auto;
  }

  .design-process-tab-icon {
    width: 12px;
    height: 12px;
  }

  .design-process-header {
    margin-bottom: 20px;
  }

  .design-process-title {
    font-size: 24px;
    line-height: 1.2;
  }

  .design-process-step {
    padding: 0 0 20px;
    gap: 12px;
  }

  .step-number-circle {
    width: 48px;
    height: 48px;
  }

  .step-number-circle span {
    font-size: 20px;
    font-weight: 600;
  }

  .step-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .step-description {
    font-size: 13px;
    line-height: 1.4;
  }

  .step-button {
    min-width: 180px;
    padding: 14px 20px;
    height: 56px;
    font-size: 13px;
    border-radius: 8px;
  }
}

/* Ultra small devices (phones in landscape or very small screens) */
@media (max-width: 360px) {
  .design-process-section {
    padding: 24px 0 32px;
    margin: 12px 0;
  }

  .design-process-container {
    padding: 0 8px;
  }

  .design-process-inner {
    padding: 16px 8px;
    border-radius: 8px;
  }

  .design-process-tabs {
    gap: 4px;
    margin-bottom: 12px;
    padding: 0;
  }

  .design-process-tab {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 16px;
  }

  .design-process-tab-icon {
    width: 10px;
    height: 10px;
  }

  .design-process-title {
    font-size: 20px;
    line-height: 1.1;
  }

  .design-process-step {
    padding: 0 0 16px;
    gap: 10px;
  }

  .step-number-circle {
    width: 40px;
    height: 40px;
  }

  .step-number-circle span {
    font-size: 18px;
  }

  .step-title {
    font-size: 15px;
    line-height: 1.2;
  }

  .step-description {
    font-size: 12px;
    line-height: 1.3;
  }

  .step-button {
    min-width: 160px;
    padding: 12px 16px;
    height: 48px;
    font-size: 12px;
    border-radius: 6px;
  }
}

/* ===================================
   ACCESSIBILITY & MOTION
   =================================== */

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .step-button {
    transition: none;
  }

  .step-button:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .design-process-section {
    border: 2px solid var(--design-process-text-primary);
  }

  .step-number-circle {
    border: 2px solid #ffffff;
  }

  .step-button {
    border: 2px solid var(--design-process-button-text);
  }
}
