/* 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-size: 100% auto;
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    position: relative;
}

body.has-bg-image::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.5) 400px,
        rgba(255, 255, 255, 1) 800px
    );
    pointer-events: none;
    z-index: -1;
}

.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;
} 

.mb-3 i.bi-x {
    color: #fff;
}

.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;
}

/* Footer Styles */
.site-footer {
    background-color: #222;
    color: #999;
    padding: 60px 0;
    margin-top: 60px;
}

.site-footer h5 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 0.75rem;
}

.site-footer ul li a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.site-footer ul li a:hover {
    color: #fff;
}

.site-footer .footer-description {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.site-footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer i {
    font-size: 1.1em;
}

/* Configurator Panel Styles */
.configurator {
    position: fixed;
    top: 0;
    right: -800px;
    width: 800px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1100;
}

.configurator.open {
    right: 0;
}

.configurator-toggle {
    position: absolute;
    left: -48px;
    top: 100px;
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-blue);
    transition: color 0.2s ease;
}

.configurator-toggle:hover {
    color: #3367d6;
}

.configurator-content {
    height: 100%;
    overflow-y: auto;
    padding: 2rem;
    padding-bottom: 120px;
}

.configurator-content h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 300;
}

.config-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.config-section:last-child {
    border-bottom: none;
    margin-bottom: 60px;
    padding-bottom: 0;
}

.config-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.configurator .form-label {
    font-size: 0.9rem;
    letter-spacing: normal;
    text-transform: capitalize;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    font-weight: 500;
    display: block;
}

.configurator .mb-3 {
    margin-bottom: 1.5rem !important;
    display: block;
}

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

.configurator .form-control-color {
    padding: 0.375rem;
    height: 38px;
}

.configurator .image-upload-container {
    margin-top: 0.25rem;
}

/* Address stack styles */
.address-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.address-stack .form-control {
    margin-bottom: 0 !important;
}

/* Social media entry styles */
.social-media-entry {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.social-media-entry .form-select {
    flex: 1;
}

.social-media-entry .form-control {
    flex: 2;
}

.social-media-entry .remove-social {
    margin-top: 0.75rem;
}

@media (max-width: 991.98px) {
    .configurator {
        width: 100%;
        right: -100%;
    }
    
    .configurator-toggle {
        left: -40px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .configurator-content .row {
        flex-direction: column;
    }
    
    .configurator-content .col-6 {
        width: 100%;
    }
}

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

/* Image upload container styles */
.image-upload-container {
    position: relative;
}

.image-upload-container .remove-image {
    position: absolute;
    right: 0;
    top: 0;
    transform: translateY(-100%);
    margin-top: -0.5rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.configurator-actions {
    position: fixed;
    bottom: 0;
    width: 800px;
    background: white;
    padding: 1rem 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    z-index: 1101;
    transform: translateX(800px);
    transition: transform 0.3s ease;
}

.configurator.open .configurator-actions {
    transform: translateX(0);
}

.configurator-actions .btn {
    min-width: 120px;
    margin: 0 auto
}

@media (max-width: 991.98px) {
    .configurator-actions {
        width: 100%;
        transform: translateX(100%);
    }
}