/* ===================================
   Hiring Calculator - Styles
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #C62E2E;
    --secondary-color: #1e1e1e;
    --accent-color: #C1E172;
    --background-color: #f8f9fa;
    --text-color: #1e1e1e;
    --text-muted: #6c757d;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a12525 100%);
    padding: 80px 0 60px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: snow;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-icon {
    margin-top: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Tool Section */
.tool-section {
    padding: 60px 0;
    background-color: var(--white);
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Input Panel */
.input-panel {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.input-panel h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
}

.input-panel h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 30px 0 20px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(198, 46, 46, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 140px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #a12525;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #000000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-tertiary {
    background-color: var(--text-muted);
    color: var(--white);
}

.btn-tertiary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Results Panel */
.results-panel {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 20px;
}

.results-panel h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
}

.comparison-cards {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.cost-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.cost-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.employee-card {
    border-left: 4px solid var(--primary-color);
}

.contractor-card {
    border-left: 4px solid var(--accent-color);
}

.cost-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.total-cost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a12525 100%);
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.contractor-card .total-cost {
    background: linear-gradient(135deg, var(--accent-color) 0%, #a8c961 100%);
}

.total-cost .label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-cost .amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.cost-details {
    margin-bottom: 20px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cost-item:last-child {
    border-bottom: none;
}

.cost-item span:first-child {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cost-item span:last-child {
    font-weight: 600;
    color: var(--text-color);
}

.hourly-rate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: rgba(198, 46, 46, 0.05);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
}

.contractor-card .hourly-rate {
    background-color: rgba(193, 225, 114, 0.15);
}

/* Savings Summary */
.savings-summary {
    margin-bottom: 30px;
}

.savings-card {
    background: linear-gradient(135deg, var(--accent-color) 0%, #a8c961 100%);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--secondary-color);
}

.savings-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.savings-amount {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.savings-percentage {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0.9;
}

.savings-message {
    font-size: 1rem;
    opacity: 0.85;
}

/* Share Section */
.share-section {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-share,
.btn-save {
    flex: 1;
    padding: 14px 28px;
    border: 2px solid var(--primary-color);
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-share:hover,
.btn-save:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.features-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* How to Use Section */
.how-to-section {
    padding: 80px 0;
    background-color: var(--white);
}

.how-to-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.step {
    position: relative;
    padding: 30px;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.step:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a12525 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 20px 0 15px;
    color: var(--text-color);
}

.step p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(193, 225, 114, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: snow;
}

.cta-section p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 35px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 16px 36px;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-cta-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-cta-primary:hover {
    background-color: #a12525;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-cta-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-cta-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.faq-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer p {
    padding: 0 30px 25px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Content Section */
.content-section {
    padding: 80px 0;
    background-color: var(--white);
}

.content-section article {
    max-width: 900px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
}

.content-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text-color);
}

.content-section p {
    margin-bottom: 20px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.0625rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }

    .results-panel {
        position: static;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .input-panel,
    .results-panel {
        padding: 25px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-tertiary {
        width: 100%;
    }

    .comparison-cards {
        grid-template-columns: 1fr;
    }

    .total-cost .amount {
        font-size: 1.5rem;
    }

    .savings-amount {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        text-align: center;
    }

    .features-section h2,
    .how-to-section h2,
    .faq-section h2,
    .content-section h2 {
        font-size: 2rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .input-panel,
    .results-panel {
        padding: 20px;
    }

    .feature-card {
        padding: 25px;
    }

    .step {
        padding: 25px 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-container,
.features-grid,
.steps-container,
.faq-container {
    animation: fadeIn 0.6s ease-out;
}

/* Print Styles */
@media print {
    .hero-section,
    .features-section,
    .how-to-section,
    .cta-section,
    .faq-section,
    .button-group,
    .share-section {
        display: none;
    }

    .results-panel {
        box-shadow: none;
        border: 1px solid #000;
    }
}