* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #e0f0f8;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    display: flex;
    width: 800px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.left-section {
    width: 50%;
    padding: 30px;
    background-color: #f9faff;
}

.right-section {
    width: 50%;
    background-color: #0e2d3a;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 60px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h2 {
    font-size: 24px;
}

.clear-all {
    color: #999;
    text-decoration: none;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    font-size: 16px;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.input-container {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

input[type="text"] {
    width: 100%;
    padding: 10px 10px 10px 30px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    border-color: #00c876;
}

.two-columns {
    display: flex;
    justify-content: space-between;
}

.two-columns div {
    width: 48%;
    position: relative;
}

.unit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    display: none;
}

.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.custom-radio::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: transparent;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input[type="radio"]:checked + .custom-radio {
    border-color: #ffd700;
}

input[type="radio"]:checked + .custom-radio::after {
    background-color: #ffd700;
}

.calculate-btn {
    background-color: #ffd700;
    color: #333;
    font-size: 16px;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s;
}

.calculate-btn:hover {
    background-color: #ffcc00;
}

.results-placeholder {
    text-align: center;
    display: block;
}

.results-placeholder p {
    margin-bottom: 10px;
}

.results-placeholder p:first-child {
    font-size: 20px;
    font-weight: bolder;
}

.results-placeholder p:last-child {
    font-size: 14px;
    color: #b3c3c8;
}
.right-result{
    display: none;
}
.right-result #r-heading{
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: start;
}

.amount-result{
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    background-color: #071b24;
    border-top:5px solid hsl(88, 78%, 49%);
    border-radius: 10px;
    padding: 10px;
}

.amount-result #r-payment{
    font-weight: bold;
    margin-bottom: 10px;
}
.amount-result h1{
    color: hsl(88, 78%, 49%);
    font-size: 58px;
    font-weight: bolder;
    margin-bottom: 20px;
}

.amount-result hr{
    margin-bottom: 20px;
}

.amount-result #r-payment{
    font-size: 20px;
    margin-top: 10px;
    font-weight: bold;
}

/* Mobile styles */
@media only screen and (max-width: 480px) {
    body {
      font-size: 14px;
    }
    .container {
        flex-direction: column;
        width: 100%;
    }
    .right-section, .left-section{
        width: 100%;
    }
    .header {
      height: 50px;
    }
  }
  
  /* Tablet styles */
  @media only screen and (min-width: 481px) and (max-width: 768px) {
    body {
      font-size: 16px;
    }
    .container {
      width: 80%;
      margin: 0 auto;
    }
    .header {
      height: 70px;
    }
  }
  
  /* Laptop styles */
  @media only screen and (min-width: 769px) {
    body {
      font-size: 18px;
    }
    .container {
      width: 70%;
      margin: 0 auto;
    }
    .header {
      height: 90px;
    }
  }