/* AITCOH Brand Colors */
:root {
    --trust-blue-dark: #1b487e;
    --trust-blue: #265fa1;
    --trust-blue-light: #4aebf9;
    --radiant-gold: #fcd740;
    --charcoal: #333333;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --success-green: #28a745;
    --warning-yellow: #ffc107;
    --danger-red: #dc3545;
    --page-background: #daebf9;
    --widget-background: #fffce7;
    --header-footer-text: #fffce7;
}

/* Typography */
body {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--page-background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--trust-blue-dark);
}

/* Header Styles */
.aitcoh-header {
    background-color: #255ea0;
    color: #fffce5;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 672px;
    margin: 0 auto;
}

.header-logo {
    height: 96px;
    width: auto;
    cursor: pointer;
    transition: opacity 0.3s;
}

.header-logo:hover {
    opacity: 0.9;
}

.header-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: bold;
    font-size: 24px;
    color: #fffce5;
    margin: 8px 0;
}

.header-subtitle {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-size: 16px;
    opacity: 0.9;
    max-width: 448px;
    margin: 0 auto;
    color: #fffce5;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .aitcoh-header {
        padding: 20px 12px;
    }
    
    .header-logo {
        height: 24px;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .header-subtitle {
        font-size: 14px;
    }
}

/* Main Content */
.section-title {
    color: var(--trust-blue-dark);
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 2px solid var(--trust-blue-light);
    padding-bottom: 0.5rem;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--trust-blue-dark);
    margin-bottom: 0.5rem;
}

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

.form-control:focus {
    border-color: var(--trust-blue);
    box-shadow: 0 0 0 0.2rem rgba(38, 95, 161, 0.25);
}

.input-group-text {
    background-color: var(--trust-blue-light);
    border: 2px solid var(--trust-blue-light);
    color: var(--trust-blue-dark);
    font-weight: 600;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--trust-blue) 0%, var(--trust-blue-dark) 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--trust-blue-dark) 0%, var(--trust-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(38, 95, 161, 0.3);
}

.btn-outline-secondary {
    border: 2px solid var(--trust-blue);
    color: var(--trust-blue);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--trust-blue);
    border-color: var(--trust-blue);
    color: var(--white);
}

/* Results Section */
.results-section {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recommendation-badge {
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.recommendation-badge.approve {
    background: linear-gradient(135deg, var(--success-green) 0%, #20c997 100%);
    color: var(--white);
}

.recommendation-badge.review {
    background: linear-gradient(135deg, var(--warning-yellow) 0%, #f39c12 100%);
    color: var(--charcoal);
}

.recommendation-badge.decline {
    background: linear-gradient(135deg, var(--danger-red) 0%, #c82333 100%);
    color: var(--white);
}

.recommendation-text {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.recommendation-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Result Cards */
.result-card {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.result-label {
    font-weight: 600;
    color: var(--trust-blue-dark);
    font-size: 1rem;
}

.result-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--trust-blue);
}

/* Cost Breakdown */
.cost-breakdown {
    background-color: rgba(74, 235, 249, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--trust-blue-light);
}

.cost-breakdown h5 {
    color: var(--trust-blue-dark);
    font-size: 1.1rem;
}

/* Footer */
.aitcoh-footer {
    background-color: #255ea0;
    color: #fffce5;
    padding: 24px 16px;
    margin-top: 48px;
}

.footer-content {
    max-width: 672px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-size: 14px;
    color: #fffce5;
    opacity: 0.9;
    margin: 0;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    background: var(--widget-background);
}

.card-body {
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .company-name {
        font-size: 1.2rem;
    }
    
    .calculator-title {
        font-size: 1.4rem;
        margin-top: 1rem;
        text-align: center;
        color: #fffce5;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .logo-horizontal {
        height: 80px;
        width: auto;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .recommendation-text {
        font-size: 1.5rem;
    }
    
    .result-value {
        font-size: 1.1rem;
    }
}

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

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

/* Input Validation */
.is-invalid {
    border-color: var(--danger-red);
}

.invalid-feedback {
    color: var(--danger-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Print Styles for Screenshots */
@media print {
    .aitcoh-header,
    .aitcoh-footer,
    .btn,
    .form-control,
    .input-group-text {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .card {
        box-shadow: none;
        border: 2px solid var(--trust-blue);
    }
    
    .recommendation-badge {
        border: 2px solid currentColor;
    }
}

/* Print Quote Styles */
.print-quote {
    font-family: 'Source Sans Pro', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    color: #333;
    line-height: 1.4;
}

.quote-header {
    border-bottom: 3px solid var(--trust-blue);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.quote-logo {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--trust-blue-dark);
    margin: 0;
}

.company-tagline {
    font-size: 1rem;
    color: var(--trust-blue);
    margin: 0;
}

.quote-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--trust-blue-dark);
    margin: 0;
}

.quote-date {
    font-size: 1rem;
    color: #666;
    margin: 5px 0 0 0;
}

.quote-body h3 {
    color: var(--trust-blue-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.quote-breakdown table {
    font-size: 0.95rem;
}

.quote-breakdown table td,
.quote-breakdown table th {
    padding: 12px 8px;
    vertical-align: middle;
}

.quote-breakdown .table-primary td {
    background-color: var(--trust-blue) !important;
    color: white !important;
    font-weight: 700;
}

.recommendation-box {
    background-color: #f8f9fa;
    border: 2px solid var(--trust-blue);
    border-radius: 8px;
    padding: 20px;
}

.recommendation-box h4 {
    color: var(--trust-blue-dark);
    margin-bottom: 10px;
}

.recommendation-text {
    font-weight: 600;
    margin-bottom: 10px;
}

.profit-info {
    margin: 0;
    font-size: 0.95rem;
}

.disclaimer {
    border-top: 2px solid #ddd;
    padding-top: 20px;
    margin-top: 30px;
}

.disclaimer h4 {
    color: var(--trust-blue-dark);
    margin-bottom: 10px;
}

.disclaimer p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
}

/* Print Media Styles */
@media print {
    #printSection {
        display: block !important;
    }
    
    body > *:not(#printSection) {
        display: none !important;
    }
    
    .print-quote {
        padding: 20px;
        font-size: 12px;
    }
    
    .quote-title {
        font-size: 2rem;
    }
    
    .company-name {
        font-size: 1.5rem;
    }
    
    .quote-logo {
        height: 50px;
    }
}
