/* --------------------
   Global Styles
--------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", sans-serif;
  }
  
  @font-face {
    font-family: "Plus Jakarta Sans";
    src: url("/fonts/static/PlusJakartaSans-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
  }
  
  body {
    background-color: #e2f2fa;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* --------------------
     Main Container
  --------------------- */
  
  .container {
    display: flex;
    background: white;
    width: 820px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  }
  
  /* --------------------
     Left Form Section
  --------------------- */
  
  .form_box {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
  }
  
  .form_head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }
  
  .form_head h1 {
    font-size: 22px;
    font-weight: 700;
    color: #113240;
  }
  
  .form_head a {
    font-size: 14px;
    color: #113240;
    text-decoration: underline;
    cursor: pointer;
  }
  
  /* Labels */
  label {
    font-size: 14px;
    font-weight: 500;
    color: #113240;
  }
  
  /* --------------------
     Input Groups
  --------------------- */
  
  .input_wrap {
    display: flex;
    width: 100%;
    margin-top: 8px;
    min-width: 0;
    height: 44px;
  }

  .input_wrap:hover input{
    border-color: #b9c7cc;
    cursor: pointer;
  }
  
  /* Prefix (€) */
  .input_prefix {
    background: #e3eff3;
    padding: 12px 16px;
    border: 1px solid #b9c7cc;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-weight: 600;
    color: #113240;
    height: 100%;
    flex-shrink: 0;
  }
  
  /* Suffix (years, %) */
  .input_suffix {
    background: #e3eff3;
    padding: 12px 16px;
    border: 1px solid #b9c7cc;
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    color: #113240;
    flex-shrink: 0;
    font-size: 13px;
    height: 100%;
  }
  
  /* Input */
  .input_wrap input {
    height: 44px;
    flex: 1;
    border: 1px solid #b9c7cc;
    border-radius: 8px;
    font-size: 14px;
    padding: 12px;
    outline: none;
    min-width: 0;
  }
  
  /* Prefix logic */
  .prefix input {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
  
  /* Suffix logic */
  .suffix input {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  
  /* Focus behavior /Active State*/
  .input_wrap input:focus {
    border-color: #D7DB65;
  }
  
  .input_wrap:focus-within .input_prefix,
  .input_wrap:focus-within .input_suffix {
    background-color: #D7DB65;
    border-color: #D7DB65;
  }

  /* Remove arrows from number inputs (Chrome, Safari, Edge) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

  
  /* --------------------
     Two-column layout
  --------------------- */
  
  .mterm_rate {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
  }
  
  .mortgage_term,
  .mortgage_rate {
    flex: 1;
    min-width: 0;
  }
  
  /* --------------------
     Mortgage Type
  --------------------- */
  
  .mtype {
    margin-top: 24px;
  }
  
  .mtype_box {
    border: 1px solid #b9c7cc;
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mtype_box:hover {
    border-color: #D7DB65; 
    cursor: pointer;
  }

  .mtype_box.active {
    background-color: #FFFDE7;
    border-color: #D7DB65;
  }
  
 
  .mtype_box label {
    font-size: 15px;
    font-weight: 700;
    color: #113240;
  }
  
  input[type="radio"] {
    cursor: pointer;
  }
  
  /* --------------------
     Submit Button
  --------------------- */
  
  .form_submit {
    margin-top: 26px;
  }
  
  .form_submit button {
    background: #cdd054;
    border: none;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    color: #113240;
    cursor: pointer;
  
    /* FIX √: not full width — natural size */
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  .form_submit button i {
    font-size: 18px;
  }
  
  /* --------------------
     Right Panel
  --------------------- */
  
  .empty_result {
    width: 50%;
    background: #113240;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0px 24px 24px 70px ;
  }
  
  .empty_result img {
    width: 150px;
    margin-bottom: 20px;
  }
  
  .empty_result h2 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
  }
  
  .empty_result p {
    color: #b9c7cc;
    font-size: 14px;
    line-height: 1.5;
  }

  @media  screen and (max-width: 600px) {

    body {
      background-color: #e2f2fa;
      height: fit-content;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .container {
      display: flex;
      flex-direction: column;
      background: white;
      width: 100%;
      border-radius: 0px;
    }

    /* --------------------
     Left Form Section
  --------------------- */
  .form_box {
    width: 100%;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
  }


  .form_head {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .form_head h1 {
    margin-bottom: 8px;
  }

  .mterm_rate {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
  }

  .form_submit button {
    background: #cdd054;
    border: none;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    color: #113240;
    cursor: pointer;
    width: 100%;
  
    /* FIX √: not full width — natural size */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  
    /* --------------------
     Right Panel
  --------------------- */

    .empty_result {
      width: 100%;
      background: #113240;
      padding: 40px 30px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      border-radius: 0px;
  }



}
  