/* 
 * Zen Apartment - Mortgage Calculator specific styles
 */

/* Hero Section Split Layout */
.calc-hero-split {
    padding: 100px 0 60px;
    background: #fdfdfd;
    margin-top: var(--header-height);
    border-bottom: 1px solid var(--border-color);
}

.calc-hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.calc-hero-text {
    flex: 1;
    min-width: 320px;
}

.calc-hero-text h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.calc-hero-text p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.6;
}

.calc-hero-image {
    flex: 1;
    min-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calc-hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(15, 23, 42, 0.1));
    animation: slideUp 1s ease-out;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.stat-card h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.05rem;
}

/* Calculator Wrapper */
.calc-main-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.calc-left-col {
    flex: 1;
    min-width: 320px;
}

.calc-right-col {
    flex: 0 0 350px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

/* Mortgage Card */
.mortgage-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.mortgage-card h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

/* Form Groups */
.input-group {
    margin-bottom: 25px;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.input-header label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
}

/* Input Fields */
.currency-input {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 15px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
}

.currency-input input[type="number"],
.percentage-input input[type="number"],
.mortgage-card select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--primary-color);
    font-weight: 600;
    background: #f8fafc;
    transition: var(--transition-fast);
}

.currency-input input[type="number"] {
    padding-left: 35px;
}

.percentage-input {
    position: relative;
    display: flex;
    align-items: center;
}

.percentage-symbol {
    position: absolute;
    right: 15px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
}
.percentage-input input[type="number"] {
    padding-right: 35px;
}

.currency-input input:focus,
.percentage-input input:focus,
.mortgage-card select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background: white;
}

/* Range Sliders */
.range-slider {
    width: 100%;
    margin-top: 15px;
    appearance: none;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Results Display */
.results-container {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 30px;
    margin-top: 40px;
    border: 1px solid var(--border-color);
}

.result-main {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.result-main h4 {
    color: var(--text-light);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-family: var(--font-body);
}

.result-main .monthly-figure {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--secondary-color);
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.result-item h5 {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-family: var(--font-body);
    font-weight: 500;
}

.result-item p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Animated Assistant */
.assistant-card {
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.assistant-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.assistant-avatar {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.assistant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.assistant-message {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    line-height: 1.5;
    position: relative;
    z-index: 2;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

/* Tips Card */
.tips-card {
    background: #f8fafc;
    border: 1px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.tips-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--secondary-color);
}

.tips-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-card p {
    color: var(--text-color);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Float Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Steps/How to Use Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: white;
    padding: 30px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition-fast);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 15px auto;
}

.step-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: white;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.benefit-icon {
    font-size: 2rem;
}

.benefit-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.benefit-text p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f8fafc;
    color: var(--text-light);
}

.faq-item.active .faq-question {
    border-bottom: 1px solid var(--border-color);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 300px;
}

/* Responsive */
@media (max-width: 992px) {
    .calc-right-col {
        position: static;
        flex: 100%;
    }
}

@media (max-width: 768px) {
    .mortgage-card {
        padding: 25px;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .result-main .monthly-figure {
        font-size: 2.5rem;
    }
    
    .calc-hero-split {
        padding: 60px 0 40px;
    }
    
    .calc-hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .calc-hero-text p {
        margin: 0 auto 1.5rem auto;
    }
    
    .calc-hero-image {
        margin-top: 20px;
        max-width: 80%;
    }
}
