﻿#default-first-section {
    background: url('../img/helpers/risksurvey_main.png') center center no-repeat;
}

.riskSurveySection {
    background-color: #ECE2D5;
}

#riskSurveyDescSection{
    padding:120px 0;
}
 
#riskSurveyDescSection .mx-w{
    min-width:30px !important;
    max-width:30px !important;
    max-height:30px !important;
    min-height:30px !important;
}

.desc-wrapper {
    max-width: 940px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.risk-cards{
    margin-bottom:40px;
}

.desc-wrapper h4,
.desc-wrapper p{
    color:var(--ahlp-2a2727);
    margin-bottom:20px;
    text-align:center;
}

.desc-wrapper h4 br {
    display: none
}

.desc-wrapper h2{
    color:var(--ahlp-a7804d);
    margin-bottom:40px;
}

.risk-card-item {
    border-radius: 16px;
    padding: 40px 70px;
    background-color: var(--ahlp-f9f5f1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.risk-survey-page {
    width: 100%;
    margin: auto;
    padding: 120px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.survey-title {
  margin-bottom: 70px;
}

.survey-card,
.result-card {
  background: #ffffff;
  padding: 60px;
  width: 100%;
  
  border-radius: 16px;
  box-shadow:  0 22px 50px rgba(0, 0, 0, 0.06);
}

.result-card{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.option-item {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 30px;
}

.survey-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}

/* Alt gri noktalı çizgi */
.survey-steps::before {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  top: 50%;
  height: 0;
  border-top: 2px dashed #e4ddd7;
  z-index: 1;
  transition: 0.25s ease all;
}

/* Üstte ilerleme (gold) çizgisi */
.survey-steps::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 50%;
  height: 3px;
  width: calc(var(--step-progress, 0) * (100% - 60px));
  background: #c79a63;
  z-index: 2;
  transform: translateY(-50%);
  transition: 0.25s ease all;
}

.step-item {
    position: relative;
    z-index: 3; /* çizgilerin üstünde dursun */
    cursor: pointer;
    transition: 0.25s ease all;
}

.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 7px solid var(--ahlp-a7804d);
    display: flex;
    font-size: 16px;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--ahlp-a7804d);
    position: relative;
    transition: 0.25s ease all;
}

/* Ortak psödo elementler (halka/halo için) */
.step-item::before,
.step-item::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
  transition: 0.25s ease all;
}

/* Geçilmiş adımlar (completed) */
.step-item.completed {
    background: #c79a63;
    border-color: #c79a63;
    color: #fff;
    border-radius: 50%;
    transition: 0.25s ease all;
}

.step-item.completed::before {
    inset: -2px;
    border: 2px solid var(--ahlp-a7804d);
    opacity: 1;
    transform: scale(1);
}

.step-item.future .step-circle {
    border-color: #B9B2B2;
    color: #B9B2B2;
    border-radius: 50%;
}
.step-item.future::before {
    inset: -3px;
    border: 2px solid #B9B2B2;
    opacity: 1;
    transform: scale(1);
}

/* Bulunulan adım (active) – çift halo */
.step-item.active {
  background: #c79a63;
  color: #fff;
  border-color: #c79a63;
}

/* İç beyaz halka */
.step-item.active::before {
      inset: -6px;
    border: 6px solid #C5A881;
    opacity: 1;
    transform: scale(1);
}

/* Dış soft gold halo */
.step-item.active::after {
    inset: -11px;
    border: 6px solid #ECE2D5;
    opacity: 1;
    transform: scale(1);
}

/* Henüz gelinmemiş standart adımlar (default hali zaten step-circle) */

/* Son adım için özel durum:
   Henüz gelinmediyse içi gri ama gold dış çember olsun */
.survey-steps .step-item:last-child:not(.completed):not(.active) {
  border-color: #c79a63;
}

.survey-steps .step-item:last-child:not(.completed):not(.active)::before {
    inset: -10px;
    border: 1px solid var(--ahlp-a7804d);
    opacity: 1;
    transform: scale(1);
}


.question-text{
    margin-bottom:35px;
    font-weight:600;
    font-size:20px;
    line-height:30px;
}



.option-label{
    font-weight:600;
}

.survey-footer {
    margin-top: 100px;
}

/* SONUÇ EKRANI */
.result-risk-type {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

#riskDescription{
    margin-bottom:40px;
    text-align:start;
}

#riskFunds li {
    line-height: 30px;
    font-weight: 600;
    margin-bottom: 20px;
}

@media (max-width:991px) {
    #default-first-section {
        background-position: 55% center !important;
    }
}
@media (max-width:767px){


    #riskSurveyDescSection {
        padding: 100px 0;
    }
    .desc-wrapper {
        text-align: start;
        margin-bottom: 30px;
    }

    .risk-cards{
        margin-bottom:30px;
    }

    .desc-wrapper h4,
    .desc-wrapper p{
        margin-bottom:10px;
    }
    
    .desc-wrapper h2{
        margin-bottom:30px;
    }

    .risk-card-item {
        padding: 20px 40px;
    }

    .risk-survey-page{
        padding:100px 0;
    }
    .survey-title{
        margin-bottom:40px
    }

    .survey-card, .result-card {
        padding: 40px;
    }

    .question-text {
        font-size: 15px;
        line-height: 20px;
    }
    .option-item {
        font-size: 15px;
        line-height: 20px;
    }
    .survey-steps::before {
        left: 20px
    }
    .survey-steps::after {
        width: calc(var(--step-progress, 0) * (100% - 20px));
        left: 20px;
    }
    .step-item.future::before{
        inset:-2px;
    }
    .step-circle {
        width: 20px;
        height: 20px;
        font-size: 12px;
        border-top-width: 3px;
        border-right-width: 3px;
        border-bottom-width: 3px;
        border-left-width: 3px;
    }
    .survey-steps .step-item:last-child:not(.completed):not(.active)::before{
        inset:-6px;
    }
    .step-item.active::before {
        inset: -4px;
        border: 4px solid #C5A881;
    }
    .step-item.active::after {
        inset: -9px;
        border: 5px solid #ECE2D5;
    }

    .result-risk-type {
        margin-bottom: 20px;
    }
}
@media (max-width:576px){
    .desc-wrapper{
        text-align:start;
    }
    .desc-wrapper h4 br {
        display: block
    }

    .survey-card, .result-card {
        max-width: 100%;
    }

    .question-text {
        text-align: justify;
    }

    .result-risk-type .default-header-2 {
        font-size: 24px;
        line-height: 26px;
    }
    .result-risk-type .result-risk-icon svg{
        width: 52px;
        height: 52px;
    }
    .result-risk-type .default-text-6 {
        font-size:16px;
        line-height: 20px;
    }

    #riskFunds li {
        font-size: 16px;
        line-height: 30px;
        margin-bottom: 10px;
    }
}


.result-section {
    width: 100%;
    max-width: 1100px;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.result-card,
.contact-card {
    background: #fff;
    border-radius: 22px;
    padding: 36px 40px;
    height:100%;
    box-shadow: 0 22px 50px rgba(0,0,0,0.06);
}

.risk-form-container::before {
    content: "⇆";
    position: absolute;
    width: 100px;
    height: 100px;
    color: #fff;
    font-size: 50px;
    top: 50%;
    left: -33px;
    background-color: var(--ahlp-a7804d);
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    justify-content: center;
    border-radius: 50%;
    transform: translate(-20px, -50%);
}

.risk-form-container:has(#contactForm.d-none)::before {
    display: none !important;
}

.contact-title {
    text-align: center;
    margin-bottom: 45px;
}

/* Mobil */
@media (max-width: 1200px) {
    .risk-form-container::before {
        width: 90px;
        height: 90px;
        font-size: 40px;
        top: -20px;
        left: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
    }
}
@media (max-width: 992px) {
    .result-grid {
        grid-template-columns: 1fr;
    } 
}

@media (max-width: 576px) {
    .risk-form-container::before {
        width: 70px;
        height: 70px;
        font-size: 40px;
        top: -10px;
        left: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
    }
}

