/* Main Layout */
body{
   font-family: Arial,Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
body label{
   font-size: 16px; 
   color:hsl(200, 24%, 40%);
}
.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

/* Container fits perfectly in 375px mobile screen */
.container {
  width: 100%;
  max-width: 375px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-sizing: border-box;
}

/* Headings */
h2 {
  text-align: left;
  margin-bottom: 5px;
  font-size: 22px;
  color:hsl(200, 55%, 16%);
}

.typess{
  color: hsl(200, 26%, 54%);
}

/* Inputs + Prefix system */
.input-wrapper,
.input-wrapper2,
.input-wrapper3 {
  position: relative;
  width: 100%;
  margin-bottom: 18px;
}

.input-wrapper input,
.input-wrapper2 input,
.input-wrapper3 input {
  width: 100%;
  height: 45px;
  font-size: 16px;
  padding-left: 40px;
  padding-right: 40px;
  border: 1px solid hsl(200, 26%, 54%);
  border-radius: 5px;
  box-sizing: border-box;
}

.input-wrapper2 input,
.input-wrapper3 input{
    padding-left: 5px;
}

/* Left prefix (e.g. £) */
.prefix {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: hsl(200, 24%, 40%);
}

/* Right prefix (years, %) */
.prefix2,
.prefix3 {
  position: absolute;
  top: 50%;
  right:10px;
  transform: translateY(-50%);
  color: hsl(200, 24%, 40%);
}

/* Radio button styles */
.choice {
  width: 100%;
  border: 1px solid hsl(200, 26%, 54%);
  border-radius: 5px;
  padding: 12px;
  margin-bottom: 12px;
  margin-right: 10px;
}



/* Calculate button */
.calculateButton {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  border: none;
  background: hsl(61, 70%, 52%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-top:20px;
}

.calculateButton img {
  width: 18px;
}

.result-box {
  margin-top: 20px;
  padding: 15px;
  background: hsl(202, 55%, 16%);
  border-radius: 10px;
}
.placeholder {
  color: hsl(200, 24%, 40%);
  font-style: italic;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.js-result {
  display: none; /* hidden until we have results */
}
.placeholder img{
  height: 150px;
}
.result-box p{
  color: hsl(0, 0%, 100%);
  font-size: 15px;
}
.result-box .result-description{
  color:hsl(200, 24%, 40%);
}
.result-box .number{
  color:hsl(61, 70%, 52%);
}
.number{
  font-size: 30px;
}
.second-number{
  font-size: 19px;
}
.result-box .niw{
  color: hsl(200, 24%, 40%);
  text-align: center;
}
.answers{
  background-color:  hsl(203, 88%, 10%);
  padding: 20px;
  border-radius: 8px;
  border-top: 4px solid hsl(61, 70%, 52%);
  box-shadow: 0 -6px 12px rgba(255, 230, 0, 0.6);
}

.top{
  color: hsl(200, 24%, 40%);
  margin-bottom: 15px;
}

.clearButton {
  display: flex;
  justify-content: flex-start;
  margin-top:5px;
  margin-bottom: 20px;
  background: none;
  color: hsl(200, 24%, 40%);
  border: none;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}



/* ===============  DESKTOP VERSION (1440px)  =============== */
@media (min-width: 1024px) {

  body {
    background: hsl(202, 86%, 94%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
  }

  .main {
    flex-direction: row;
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.08);
    display: flex;
    gap: 60px;   /* Add spacing between left + right */
    padding: 40px;
  }

  /* LEFT SIDE (FORM) */
  .container {
    flex: 1;
    max-width: none;
    background: white;
    padding: 40px;
  }

  h2 {
    font-size: 26px;
    margin-bottom: 25px;
  }

  /* 2 inputs side-by-side: Term + Rate */
  .two-columns {
    display: flex;
    gap: 20px;
  }

  /* Increase input height */
  .input-wrapper input,
  .input-wrapper2 input,
  .input-wrapper3 input {
    height: 50px;
    font-size: 17px;
  }

  .choice {
    padding: 15px;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .calculateButton {
    height: 55px;
    font-size: 17px;
    margin-top: 10px;
  }

  /* RIGHT SIDE (RESULT PANEL) */
  .result-box {
    flex: 1;
    background: hsl(203, 88%, 10%);
    padding: 45px;
    color: white;
    border-radius: 0 20px 20px 70px;
  }

  .placeholder img {
    height: 250px;
  }

  .top {
    color: hsl(200, 24%, 85%);
    margin-bottom: 20px;
    font-size: 18px;
  }

  .answers {
    background: hsl(203, 75%, 8%);
    padding: 30px;
    border-radius: 12px;
    border-top: 4px solid hsl(61, 70%, 52%);
  }

  .number {
    font-size: 42px;
    font-weight: 700;
    color: hsl(61, 70%, 52%);
  }

  .second-number {
    font-size: 24px;
    color: white;
  }

  .clearButton {
    justify-content: flex-end;
    margin-bottom: 25px;
    font-size: 16px;
  }
}





