/*
Theme Name: CarCredit.ie Car Loan Calculator Theme
Description: A modern WordPress theme with integrated car loan calculator tailored for Ireland, inspired by Canada Drives UI/UX
Version: 1.0
Author: CarCredit.ie Team
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #f8fafc;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - CarCredit.ie Branding */
.site-header {
    background: linear-gradient(135deg, #169B62 0%, #10b981 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Calculator Container - Canada Drives Inspired */
.calculator-container {
    max-width: 700px;
    margin: 2rem auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Progress Bar - Canada Drives Style */
.progress-container {
    background: #f8fafc;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #6b7280;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 400px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #169B62 0%, #10b981 100%);
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 0%;
}

/* Calculator Content - Single Column Layout */
.calculator-content {
    padding: 3rem 2.5rem;
}

.calculator-intro {
    text-align: center;
    padding: 1rem 0;
}

.calculator-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.calculator-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 3rem;
    line-height: 1.5;
}

.start-button {
    background: linear-gradient(135deg, #169B62 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(22, 155, 98, 0.3);
    width: 100%;
    max-width: 300px;
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 155, 98, 0.4);
}

/* Trust Indicators - Canada Drives Style */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.trust-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.trust-indicator-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdf4;
    border-radius: 50%;
    color: #169B62;
    font-size: 0.8rem;
}

/* Step Styles - Canada Drives Inspired */
.step-container {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-container.active {
    display: block;
}

.step-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2.5rem;
    text-align: center;
    line-height: 1.3;
}

/* Vehicle Selection - Visual Cards */
.vehicle-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.vehicle-option {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.vehicle-option:hover {
    border-color: #169B62;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 155, 98, 0.15);
}

.vehicle-option.selected {
    border-color: #169B62;
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(22, 155, 98, 0.2);
}

.vehicle-icon {
    width: 60px;
    height: 40px;
    margin: 0 auto 1rem;
    background: #169B62;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.vehicle-option.selected .vehicle-icon {
    background: #10b981;
}

.vehicle-label {
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
}

/* Budget Selection */
.budget-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.budget-option {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    position: relative;
}

.budget-option:hover {
    border-color: #169B62;
    background: #f0fdf4;
}

.budget-option.selected {
    border-color: #169B62;
    background: #169B62;
    color: white;
}

/* Form Fields */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #169B62;
    box-shadow: 0 0 0 3px rgba(22, 155, 98, 0.1);
}

.form-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #169B62;
    box-shadow: 0 0 0 3px rgba(22, 155, 98, 0.1);
}

/* Navigation Buttons - Canada Drives Style */
.calculator-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.back-button {
    background: #6b7280;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.continue-button {
    background: linear-gradient(135deg, #169B62 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.continue-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 155, 98, 0.3);
}

.continue-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Results Page - Ireland Specific */
.results-container {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.results-container.active {
    display: block;
}

.monthly-payment-display {
    margin-bottom: 3rem;
}

.monthly-payment {
    font-size: 4rem;
    font-weight: 900;
    color: #169B62;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.payment-label {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 500;
}

/* Loan Breakdown */
.loan-breakdown {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breakdown-row:last-child {
    border-bottom: none;
    font-weight: 600;
    color: #1f2937;
}

.breakdown-label {
    color: #6b7280;
    font-weight: 500;
}

.breakdown-value {
    font-weight: 600;
    color: #374151;
}

/* Recommendations */
.recommendations {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.recommendations h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 1rem;
}

.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #166534;
}

.recommendations li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #169B62;
    font-weight: bold;
}

/* Lead Capture Form */
.lead-capture {
    background: white;
    border: 2px solid #169B62;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.lead-capture h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.lead-capture p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.lead-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lead-form .form-group {
    margin-bottom: 0;
}

.lead-form .form-group.full-width {
    grid-column: 1 / -1;
}

.submit-button {
    background: linear-gradient(135deg, #169B62 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 155, 98, 0.3);
}

/* Irish Specific Elements */
.irish-disclaimer {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    color: #1e40af;
    text-align: center;
}

.lender-links {
    margin: 2rem 0;
    text-align: center;
}

.lender-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.lender-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.lender-link {
    padding: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lender-link:hover {
    border-color: #169B62;
    background: #f0fdf4;
    color: #169B62;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .calculator-container {
        margin: 1rem auto;
        border-radius: 12px;
    }
    
    .calculator-content {
        padding: 2rem 1.5rem;
    }
    
    .calculator-title {
        font-size: 2.2rem;
    }
    
    .monthly-payment {
        font-size: 3rem;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .vehicle-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lead-form {
        grid-template-columns: 1fr;
    }
    
    .calculator-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .back-button,
    .continue-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .calculator-title {
        font-size: 1.8rem;
    }
    
    .step-title {
        font-size: 1.6rem;
    }
    
    .monthly-payment {
        font-size: 2.5rem;
    }
    
    .vehicle-options {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 1rem;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #169B62;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

