/* Investing Calculator Styles */
.container-large {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    font-family: 'Montserrat', sans-serif;
}

.padding-section-large-2 {
    padding: 80px 0;
}

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

.margin-xxlarge {
    margin-bottom: 60px;
}

.text-align-left {
    text-align: left;
}

.max-width-large {
    max-width: 700px;
}

.align-left {
    margin-right: auto;
    margin-left: 0;
}

.heading-medium {
    font-size: 30px;
    line-height: 120%;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: #183D5D;
    font-family: 'Montserrat', sans-serif;
}

.text-size-medium-2 {
    font-size: 18px;
    line-height: 120%;
    font-weight: 500;
    color: #183D5D;
    font-family: 'Montserrat', sans-serif;
}

.calculator-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.formgroup {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 33.33%;
    padding-left: 0;
    padding-right: 40px;
}

.field-label-3 {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #183D5D;
    font-size: 16px;
    margin-top: 30px;
}

.field-label-4 {
    display: block;
    margin-bottom: 30px;
    font-weight: 500;
    color: #183D5D;
    font-size: 16px;
    margin-top: 10px;
}

.form-input-2.input-borderbottom {
    width: 100%;
    height: 45px;
    padding: 8px 15px;
    border: none;
    border-bottom: 1px solid #d1d8df;
    background-color: transparent;
    font-size: 18px;
    transition: border-color 0.3s;
}

.form-input-2.input-borderbottom:focus {
    outline: none;
}

::placeholder {
    color: #d1d8df;
}

.results-wrapper {
    text-align: center;
    margin: 40px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

.text-size-medium-7 {
    font-size: 18px;
    font-weight: 600;
}

.text-results {
    margin-left: 20px;
    font-size: 32px;
    color: #e98902;
    font-weight: 700;
    transition: all 0.3s ease;
    min-height: 50px;
}

.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #e98902;
    width: 30px;
    height: 30px;
    margin-left: 15px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.calc-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta-content {
    padding: 10px 20px;
    border-radius: 10px;
    background-color: #d1d8df;
}

.button-group {
    display: flex;
    align-items: center;
    justify-self: center;
    margin-top: 30px;
}

.button {
    text-transform: uppercase;
    background-color: #ffc000;
    color: #183D5D;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px;
    font-family: 'Montserrat', sans-serif;
}

.btn-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.calculate-btn {
    min-width: 180px;
}

.button:hover {
    background-color: #183D5D;
    color: #fff;
}

/* Responsive styles */
@media (max-width: 768px) {
    .padding-section-large-2 {
        padding: 50px 0;
    }
    
    .heading-medium {
        font-size: 28px;
    }

    .calculator-form {
        flex-direction: column;
        align-items: center;
    }

    .formgroup {
        max-width: 100%;
        padding: 0 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .heading-medium {
        font-size: 24px;
    }
    
    .padding-section-large-2 {
        padding: 30px 0;
    }
}
