/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@import "https://cdn.jsdelivr.net/npm/bulma@1.0.2/css/bulma.min.css";

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
	background-image: url("bg-img.png") ;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center center;
	background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
	
}

/* Header Styles */
header {
    background-color: #004080;
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    max-height: 40px;
    margin: 0 auto;
}

.pad-cnc{
    padding-left: 50px;
}

.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.title-container {
    flex: 2;
    display: flex;
    justify-content: center;
}

.logo {
    height: 40px;
    width: auto;
}

.calc-title {
    height: 50px;
    width: auto;
}

.logo {
    height: 40px; /* Default height */
    width: auto;
}

/* Show/hide logos based on screen size */
.desktop-logo {
    display: block;
}
.mobile-logo {
    display: none;
}

h1 {
    font-size: 1.5rem;
    text-align: center;
    margin: 0 1rem;
}

/* Main Content Styles */
main {
    flex: 1;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.calculator-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin: 1rem auto;
}

.calculator-container h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #34495e;
}

input[type="number"],
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

input[readonly] {
    background-color: #f9f9f9;
    color: #555;
    cursor: not-allowed;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.75rem;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
}

button:hover {
    background-color: #2980b9;
}

/* Results Styles */
.results-container {
    margin-top: 1.0rem;
    margin-bottom: 2.0rem;
    padding: 1.0rem;
    padding-bottom: 30px;
    background-color: #f8fafc;
    border-radius: 8px;
    display: none;
	text-align: center
}

.results-container h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 1.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.caution-icon {
    width: 24px;
    height: 24px;
    margin: 0 0.5rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    color: #2c3e50;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Updated Modal Footer Styles */
.modal-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

#continue-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #00008b;
    color: white;
    border: 2px solid transparent; /* Reserve space for border */
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box; /* This is crucial */
}

#continue-btn:hover {
    background-color: #ffffff;
    color: #00008b;
    border: 2px solid #00008b; /* Full border declaration needed */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}



#continue-btn:disabled {
    background-color: #95a5a6;
    border: 2px solid transparent; /* Maintain same sizing */
    cursor: not-allowed;
}

/* Footer Styles */
footer {
    background-color: #004080;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Utility Classes */
.amount-info {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 0.25rem;
    font-style: italic;
}

#amount-display {
    display: inline-block;
    margin-left: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.error-input {
    border: 2px solid #e74c3c !important;
    background-color: #fef0ef;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

@media (max-width: 768px) {
    .desktop-logo {
        display: none;
        height: 40px;
    }
    .mobile-logo {
        display: block;
    }
    
    /* Optional: Adjust mobile logo size */
    .mobile-logo {
        height: 30px; /* Smaller size for mobile */
        gap: 2rem;
    }
    
    .header-container {
        flex-direction: row;
        padding: 0.5rem;
    }
    
    .logo {
        height: 30px;
    }
    
    .calc-title {
        height: 40px;
        margin: 0 10px;
    }
}
    h1 {   
        width: 70%;
        margin-bottom: 0.5rem;
    }

    
    .calculator-container {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 1rem auto;
        padding: 1rem;
    }
    
    table {
        min-width: 100%;
    }
    
    /* Enhanced mobile modal footer */
    .modal-footer {
        gap: 0.75rem;
    }
    
    .checkbox-container {
        flex-direction: row;
        flex-wrap: wrap;
        text-align: center;
    }
    
    #continue-btn {
        padding: 0.65rem;
    }

    @media (max-width: 480px) {
        .logo {
            height: 25px;
        }
        
        .calc-title {
            height: 30px;
        }
    }

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    input[type="number"],
    select,
    button {
        padding: 0.65rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .caution-icon {
        width: 20px;
        height: 20px;
    }
    
    th, td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    /* More compact mobile footer */
    .modal-footer {
        margin-top: 1rem;
    }
    
    
    .checkbox-container label {
        font-size: 0.9rem;
    }
}

.p-amort {
    font-size: larger;
}

.results-content {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.results-disclaimer {
    margin-top: 20px;
    padding: 10px;
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    font-size: 0.9em;
    color: #555;
}

.results-disclaimer strong {
    color: #d32f2f;
}

.result-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.apply-now-btn {
    background-color: #004080;
    color: white;
    padding: 1.0rem 2rem;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
    width: 400px;
    max-width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: inline-block;
	
}

.apply-now-btn:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
	color:#004080;
	border-style: solid;
	border-color: #004080;
    padding: 1rem 1rem;
}



.details-link {
    font-size: 0.95rem;
    color: #004080;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
	
}

.details-link::after {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.details-link:hover {
    color: #1c5980;
    text-shadow: 1px 1px 2px rgb(49, 41, 58), 0 0 25px blue, 0 0 5px darkblue;

	
}

.details-link:hover::after {
    transform: translateX(3px);
	
}

#calculate-btn {
    background-color: #004080;
    color: white;
    border: 2px solid transparent;
    border-radius: 5px;
    padding: 1rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
    width: 400px;
    max-width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: inline-block;
    margin: 0 auto;
    margin-top: 0.5rem;
    
}

#calculate-btn:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
	color:#004080;
	border-style: solid;
	border-color: #004080;
}

.calculate-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.monthly-payment {
  transition: all 0.3s ease; /* Smooth transition */
  display: inline-block; /* Required for padding to work properly */
  padding: 2px 5px; /* Add some space around the text */
  border-radius: 4px; /* Optional rounded corners */
}

.monthly-payment:hover {
  background-color: #005dbb; /* Yellow highlight */
  color: #ffffff; /* Black text for better contrast */
  box-shadow: 0 0 8px #000000; /* Optional glow effect */
  transform: scale(1.05); /* Optional slight enlargement */
}