/* Custom styles for Insurance Calculator */

:root {
    --primary-blue: #4285f4;
    --text-dark: #2c3e50;
    --text-medium: #666;
    --bg-light: #f5f5f5;
    --card-bg: #ffffff;
    --max-content-width: 1400px;
}

body {
    font-family: Lato, Arial, sans-serif;
    background: linear-gradient(to bottom, 
        #ddd 0%, 
        #ddd 400px,
        #999 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
}

.card {
    border-radius: 12px;
    border: none;
    background-color: var(--card-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-body {
    padding: 2.5rem;
}

.form-label {
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-group-text {
    background-color: var(--card-bg);
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #666;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
}

.btn {
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: #3367d6;
    border-color: #3367d6;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
}

/* Header Styles */
.navbar {
    background-color: transparent !important;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: rgba(221, 221, 221, 0.8) !important;
    padding: 0.5rem 0;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar .content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    font-size: 0.9em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #666 !important;
    text-decoration: none;
    font-weight: 300;
    padding: 0;
    display: inline-block;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(180deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav-link {
    font-size: 0.9em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #666 !important;
    line-height: 30px;
    transition: color 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.3px;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.debt-entry, .education-entry {
    background-color: rgba(245, 245, 245, 0.5);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.remove-entry {
    color: #dc3545;
    cursor: pointer;
    transition: color 0.2s;
}

.remove-entry:hover {
    color: #bd2130;
}

/* Loading spinner */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}

/* Tooltips */
.tooltip {
    font-size: 0.875rem;
}

/* Summary card styles */
#resultsCard {
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    background-color: var(--card-bg);
    margin-bottom: 2rem;
}

.summary-cards .card {
    background-color: rgba(245, 245, 245, 0.5) !important;
    margin-bottom: 1rem;
    transition: transform 0.2s;
}

.summary-cards .card:hover {
    transform: translateY(-2px);
}

.summary-cards .card-body {
    padding: 1.5rem;
}

.summary-cards h3 {
    margin-bottom: 0;
    font-weight: 700;
    color: var(--primary-blue) !important;
    font-size: 2rem;
    text-align: center;
}

.summary-cards .card-title {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 6rem 0 3rem;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    #resultsCard {
        position: static;
        margin-top: 2rem;
    }
    
    .calculator-wrapper {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 5rem 0 2rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 8rem 0 4rem;
    margin-bottom: 2rem;
}

.hero-section .company-name {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-section .page-title {
    font-size: 2.75rem;
    font-weight: 300;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.hero-section .btn-orange {
    font-size: .9rem;
    padding: 12px 24px;
    text-transform: uppercase;
    border-width: 0;
    border-radius: 8px;
}

.hero-section .btn-orange i {
    margin-right: 0.75rem;
}

.hero-section p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* Main Content Wrapper */
.content-wrapper {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Calculator Layout */
.calculator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-bottom: 40px;
}

/* Scroll Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mb-3 {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-blue);
}

.mb-3 i {
    font-size: 1.2em;
    color: var(--primary-blue);
} 

.card-body .mb-4 {
    padding-bottom: 1.5em;
    border-bottom: 1px solid #eee;
}

.expand-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-width: 2px;
    transition: all 0.3s ease;
}

.expand-button i {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-right: 0.5rem;
}

.expand-button[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.collapse {
    transition: all 0.3s ease;
}

.collapse:not(.show) {
    display: none;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.col-md4.debt-type-select {
    width: 25%;
}

/* Dropdown styling for long text */
.form-select {
    padding-right: 2rem !important; /* Ensure space for the dropdown arrow */
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Style for selected option text */
.form-select option {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Custom arrow positioning */
.form-select {
    background-position: right 0.5rem center;
}

.debt-entry .form-select,
.education-entry .form-select {
    min-width: 100%;
    max-width: 100%;
}

/* Contact Button and Modal Styles */
.btn-orange {
    background-color: #ff6b00;
    border-color: #ff6b00;
    color: white;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background-color: #e65c00;
    border-color: #e65c00;
    color: white;
    transform: translateY(-1px);
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
}

.modal-header .modal-title {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dark);
}

.modal-body {
    padding: 1.5rem;
}

.modal-header .btn-close {
    box-shadow: none;
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

#contactForm .form-label {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-medium);
}

#contactForm .form-control {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#contactForm .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
}   

.page-subtitle {
    font-weight: normal !important;
}

.page-subtitle a {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    text-decoration: none;
}

.page-subtitle a:hover {
    color: #3367d6;
}

.page-subtitle a i {
    margin-right: 0.25rem;
}