:root{
    --colorRed: #e4002b;
    --colorGray: #e0e0e0;
}


* {
    font-family: poppins, sans-serif;
    color: #000;
    box-sizing: border-box;
}


body{
    background-color: white;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

}

.container {
    width: 100%;
    padding: 0 25px;
}



header {
    padding-top: 14px;
    padding-bottom: 5px;
    background-color: var(--colorGray);

}

#imglogo {
    max-width: 16ch;
}

nav {
    padding-top: 10px;
}

main {
  flex: 1;
  padding-bottom: 12px;
}

.info {
    font-family: poppins, sans-serif;
    font-size: 2ch;
}

.button-wrapper {
  padding-top: 24px;
  padding-bottom: 16px;
  display: flex;
  justify-content: center;
}

.start-btn {
    background-color: var(--colorRed);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 2.5ch;
    font-family: poppins, sans-serif;
    font-weight: 550;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.start-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

footer {
    background-color: var(--colorGray);
}

/*/-------------------------------Styling frågor-----------------------------*/

.question {
  margin-top: 20px;
  background: #fafafa;
  border-radius: 12px;
  padding: 10px 12px 16px 12px;
  border-left: 3px solid #d0d0d0;
}


.question h2 {
  font-size: 2.6ch;
  font-weight: 600;
  margin-top: 6px;
  margin-bottom: 6px;
}

.option {
  display: block;
  border: 2px solid var(--colorGray);
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: white;
}

/* Dölj själva radio-knappen */
.option input {
  display: none;
}

/* När vald → röd ram */
.option input:checked + span {
  display: block;
  border: 2px solid var(--colorRed);
  border-radius: 8px;
  padding: 15px;
  margin: -15px;
  background-color: white;
}

/* Lite hover-effekt */
.option:hover {
  border-color: var(--colorRed);
}

.hidden {
  display: none;
}

/*/-------------------------------Progressbar------------------------------*/

.progress-wrapper {
  padding: 2px 0 0 0;
}

.progress-top {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 1.7ch;
  line-height: 1.2;
}

.progress-step {
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: var(--colorGray);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background-color: var(--colorRed);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/*/-------------------------------Income-----------------------------------*/

.text-input {
  width: 100%;
  border: 2px solid var(--colorGray);
  border-radius: 10px;
  padding: 12px;
  font-size: 2ch;
  font-family: poppins, sans-serif;
  margin-top: 6px;
  background-color: white;
}

.text-input:focus {
  outline: none;
  border-color: var(--colorRed);
}

.field-label {
  display: block;
  font-size: 1.8ch;
  margin-top: 4px;
}

.income-layout {
  display: block;
}

.person-column.hidden {
  display: none;
}

/* Chrome, Safari, Edge */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


@media (min-width: 768px) {
  .income-layout.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}


/*/-------------------------------Result-----------------------------------*/


.result-section {
  margin-top: 70px;
}

.result-header h2 {
  font-size: 2.6ch;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}

.result-amount {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

#resultAmount {
  font-size: 5ch;
  font-weight: 700;
  color: var(--colorRed);
  line-height: 1;
}

.result-currency {
  font-size: 5ch;
  font-weight: 700;
  color: var(--colorRed);
  line-height: 1;
}

.result-period {
  text-align: center;
  font-size: 2.6ch;
  font-weight: 600;
  margin: 0 0 24px 0;
}

.brochure-btn {
  display: inline-block;
  background-color: var(--colorRed);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 2.2ch;
  font-weight: 550;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.brochure-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/*/-------------------------------Responsivitet----------------------------*/

@media (min-width: 768px) {
  .container {
    max-width: 720px;
    margin: 0 auto; /* centrerar innehållet */
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1140px;
  }
}

