/* Main container */
.hsi-calculator-container {
    max-width: 1000px;
    margin: 30px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

/* Form layout */
.hsi-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.hsi-form-col {
    flex: 1;
    min-width: 300px;
    padding: 0 15px;
}

/* Form elements */
.hsi-form-group {
    margin-bottom: 20px;
}

.hsi-form-control {
    width: 100%;
    padding: 12px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s;
}

.hsi-form-control:focus {
    border-color: #007bff;
    box-shadow: 0px 0px 8px rgba(0, 123, 255, 0.3);
    outline: none;
}

/* Labels */
.hsi-form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    font-size: 15px;
    color: #333;
}

.hsi-note {
    font-weight: normal;
    font-size: 0.9em;
    color: #666;
}

/* Radio and checkbox styles */
.hsi-radio-label,
.hsi-checkbox-label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    cursor: pointer;
}

.hsi-radio-label input[type="radio"],
.hsi-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

/* Button styles */
.hsi-submit-btn {
    width: 100%;
    /*background: linear-gradient(to right, #007bff, #0056b3);*/
    background: #222e69;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    font-family: 'Ragtime', sans-serif !important;
    font-weight: normal;
    cursor: pointer;
    transition: 0.3s ease;
}

.hsi-submit-btn:hover {
    background: #E81d2d;
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Error styles */
.hsi-error {
    color: #dc3545;
    font-size: 0.8em;
    display: block;
    margin-top: 5px;
}

.hsi-error-message {
    color: #dc3545;
    padding: 10px;
    background-color: #f8d7da;
    border-radius: 4px;
    margin-top: 15px;
    display: block; /* Ensure it behaves as a block element */
    box-sizing: border-box; /* Ensure padding doesn’t break layout */
}

/* Loader styles */
.hsi-loader {
    text-align: center;
    margin: 20px 0;
}

.hsi-loader img {
    max-width: 100%;
    height: auto;
}

/* Results styles */
.hsi-results-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.hsi-results-container h3 {
    margin-top: 0;
    color: #222e69;
}

/* Currency symbol */
.hsi-currency {
    margin-right: 5px;
    font-weight: bold;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hsi-form-col {
        flex: 100%;
    }
}

/* Import Google Fonts with HTTPS */
@import url('https://fonts.googleapis.com/css?family=Ubuntu:regular,bold&subset=latin');