/*
Theme Name: The Median Flats Child
Theme URI: http://128nivelhills.filasiarealty.com.ph/themedianflats-child
Description: Child theme for the YourTheme theme.
Author: Your Name
Author URI: http://example.com
Template: astra
Version: 1.0
Text Domain: yourtheme-child
*/

.custom-box {
  border: 1px solid #ccc;
  border-radius: 10px; /* Adjust this value for more or less rounding */
  padding: 20px;
  background-color: #fff;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin: 20px 0;
}

.custom-box h2 {
  margin-top: 0;
  font-size: 24px;
}

.custom-box p {
  font-size: 16px;
  color: #333;
}

.custom-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #FAB416;
  color: #fff;
  text-decoration: none;
  border-radius: 15px; /* Rounded edge set to 15px */
  transition: background-color 0.3s ease;
}

.custom-button:hover {
  background-color: #e0a00f; /* A slightly darker shade for hover effect, adjust if needed */
}


.mortgage-calc-form {
    font-family: 'Arial', sans-serif;
    max-width: 500px;
    margin: 0 auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
}

.mortgage-calc-form h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 24px;
}

.calc-input-group {
    margin-bottom: 20px;
}

.calc-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 15px;
}

.input-with-peso,
.input-with-symbol {
    position: relative;
    display: flex;
    align-items: center;
}

.peso-sign {
    position: absolute;
    left: 10px;
    color: #666;
    font-weight: bold;
}

.percent-sign,
.year-sign {
    position: absolute;
    right: 10px;
    color: #666;
}

.mortgage-calc-form {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 420px;
    margin: 0 auto;
    padding: 28px 20px 20px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(44,62,80,0.07);
}

.mortgage-calc-form h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 28px;
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.calc-input-group {
    margin-bottom: 22px;
}

.calc-input-group label {
    display: block;
    margin-bottom: 7px;
    color: #34495e;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.2px;
}

.input-with-peso,
.input-with-symbol {
    position: relative;
    display: flex;
    align-items: center;
}

.peso-sign {
    position: absolute;
    left: 12px;
    color: #888;
    font-weight: bold;
    font-size: 1.1em;
    pointer-events: none;
}

.percent-sign,
.year-sign {
    position: absolute;
    right: 12px;
    color: #888;
    font-size: 1em;
    pointer-events: none;
}

.mortgage-calc-form input[type="number"] {
    width: 100%;
    padding: 11px 36px 11px 32px;
    border: 1.5px solid #dde1e7;
    border-radius: 6px;
    font-size: 1.08em;
    background: #f8fafc;
    color: #222;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.input-with-peso input[type="number"] {
    padding-left: 32px;
    padding-right: 12px;
}

.input-with-symbol input[type="number"] {
    padding-right: 38px;
    padding-left: 12px;
}

.mortgage-calc-form input[type="number"]:focus {
    outline: none;
    border-color: #4CAF50;
    background: #fff;
}

.calc-button {
    background: linear-gradient(90deg, #4CAF50 60%, #43a047 100%);
    color: white;
    padding: 13px 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 1.08em;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 5px;
    box-shadow: 0 2px 8px rgba(76,175,80,0.07);
    transition: background 0.2s;
}

.calc-button:hover {
    background: linear-gradient(90deg, #43a047 60%, #388e3c 100%);
}

.result-box {
    margin-top: 28px;
    padding: 18px 16px;
    border: 1.5px solid #e8f5e9;
    border-radius: 7px;
    background: #f8fdf9;
    display: none;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    font-size: 1.08em;
    border-bottom: 1px solid #e8f5e9;
    line-height: 2.2;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item strong {
    flex: 0 0 180px;
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.result-item .highlight {
    font-size: 1.13em;
    color: #2196F3;
    font-weight: bold;
    margin-left: 10px;
}

@media (max-width: 600px) {
    .mortgage-calc-form {
        padding: 14px 4vw 12px 4vw;
        max-width: 98vw;
    }
    .result-item strong {
        flex: 0 0 120px;
        font-size: 0.98em;
    }
    .result-item {
        font-size: 0.98em;
        padding: 10px 0;
    }
}