/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #ffffff;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    color: white;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-btn a:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Header */
.header {
    background: #ffffff;
    color: #2d3748;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e2e8f0;
}

.navbar {
    padding: 1.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h2 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a202c;
}

.logo span {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 3rem;
}

.nav-menu a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #2b6cb0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #2b6cb0;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.btn-call {
    background: #2b6cb0;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-call:hover {
    background: #2c5282;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #4a5568;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: #2d3748;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(45,55,72,0.03)"><polygon points="0,0 1000,100 1000,0"/></svg>');
    background-size: cover;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
    color: #1a202c;
}

.hero h2 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: #2d3748;
}

.highlight {
    color: #2b6cb0;
    position: relative;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: #4a5568;
    line-height: 1.7;
}

.hero-benefits {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    padding: 1.2rem 1.8rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.benefit i {
    font-size: 1.4rem;
    color: #2b6cb0;
}

.benefit span {
    font-weight: 600;
    color: #2d3748;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #2b6cb0;
    color: white;
    box-shadow: 0 4px 15px rgba(43, 108, 176, 0.3);
}

.btn-primary:hover {
    background: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43, 108, 176, 0.4);
}

.btn-secondary {
    background: #718096;
    color: white;
    box-shadow: 0 4px 15px rgba(113, 128, 150, 0.3);
}

.btn-secondary:hover {
    background: #4a5568;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(113, 128, 150, 0.4);
}

.btn-outline {
    background: transparent;
    color: #2d3748;
    border: 2px solid #e2e8f0;
}

.btn-outline:hover {
    background: #f7fafc;
    border-color: #2b6cb0;
    color: #2b6cb0;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: #ffffff;
}

.services h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 5rem;
    color: #1a202c;
    font-weight: 700;
    position: relative;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #2b6cb0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
}

.service-card {
    text-align: center;
    padding: 4rem 3rem;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f7fafc;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-color: #e2e8f0;
}

.service-card i {
    font-size: 4rem;
    color: #2b6cb0;
    margin-bottom: 2rem;
    display: block;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #1a202c;
    font-weight: 600;
}

.service-card p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #f7fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #1a202c;
    font-weight: 700;
}

.about p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #4a5568;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f7fafc;
}

.info-item i {
    color: #2b6cb0;
    width: 24px;
    font-size: 1.2rem;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* CTA Section */
.cta, .contact-cta {
    background: #1a202c;
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before, .contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.03)"><polygon points="0,100 1000,0 1000,100"/></svg>');
    background-size: cover;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2, .contact-cta h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta p, .contact-cta p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons, .contact-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-options .btn {
    color: white;
    border-color: white;
}

.contact-options .btn:hover {
    background: white;
    color: #1a202c;
}

/* Contact Form */
.contact-form {
    padding: 6rem 0;
    background: #ffffff;
}

.contact-form h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 5rem;
    color: #1a202c;
    font-weight: 700;
}

.contact-form form {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 4rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid #f7fafc;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 1.5rem 2rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2b6cb0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.contact-form textarea {
    width: 100%;
    margin-bottom: 2rem;
    resize: vertical;
    min-height: 120px;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.privacy-check input {
    margin-top: 0.2rem;
    transform: scale(1.2);
}

.privacy-check label {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 600;
}

.footer-section h3 {
    font-size: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-section p {
    color: #cbd5e0;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

/* Simulator Styles */
.simulator {
    max-width: 1000px;
    margin: 0 auto;
}

.simulator-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    background: #ffffff;
}

.simulator-header h1 {
    font-size: 2.8rem;
    color: #1a202c;
    margin-bottom: 1rem;
    font-weight: 700;
}

.simulator-header p {
    font-size: 1.3rem;
    color: #4a5568;
}

.calculator-section, .personal-info-section, .info-section {
    background: #ffffff;
    padding: 4rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin: 3rem 0;
    border: 1px solid #f7fafc;
}

.calculator-section h2, .personal-info-section h2, .info-section h2 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 3rem;
    font-weight: 600;
}

.slider-container {
    margin: 3rem 0;
}

.slider-container label {
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    font-size: 1.2rem;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    margin: 1.5rem 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2b6cb0;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(43, 108, 176, 0.3);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2b6cb0;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(43, 108, 176, 0.3);
}

.value-display {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.info-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f0fff4;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #38a169;
    margin: 3rem 0;
}

.info-note i {
    color: #38a169;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.info-note p {
    color: #22543d;
    margin: 0;
}

/* Form Grid Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #1a202c;
    font-size: 1.1rem;
}

.input-group input {
    padding: 1.5rem 2rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.input-group input:focus {
    outline: none;
    border-color: #2b6cb0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.input-group small {
    margin-top: 0.8rem;
    color: #718096;
    font-size: 0.9rem;
}

.calculation-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 4rem 0;
    flex-wrap: wrap;
}

/* Results Styles */
.extinction-results {
    background: #ffffff;
    padding: 4rem;
    border-radius: 12px;
    margin: 4rem 0;
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.extinction-results h3 {
    color: #1a202c;
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 600;
}

.results-summary {
    text-align: center;
    margin-bottom: 3rem;
}

.result-main {
    background: #f7fafc;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.result-main h4 {
    color: #4a5568;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.results-breakdown {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item.total {
    border-top: 2px solid #e2e8f0;
    margin-top: 1rem;
    padding-top: 2rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.breakdown-item .label {
    color: #4a5568;
    font-weight: 500;
}

.breakdown-item .value {
    color: #1a202c;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 4rem 0 0;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.info-card {
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
    border: 1px solid #f7fafc;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.info-card i {
    font-size: 3rem;
    color: #2b6cb0;
    margin-bottom: 2rem;
    display: block;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a202c;
    font-weight: 600;
}

.info-card p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    color: #4a5568;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.info-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #38a169;
    font-weight: bold;
}

/* Privacy Section */
.privacy-section {
    background: #f7fafc;
    padding: 3rem;
    border-radius: 12px;
    margin: 3rem 0;
    border: 1px solid #e2e8f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-benefits {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons, .contact-options {
        flex-direction: column;
        align-items: center;
    }
    
    .calculation-buttons, .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .result-amount {
        font-size: 2.5rem;
    }
    
    .services h2, .about h2, .cta h2, .contact-form h2 {
        font-size: 2.5rem;
    }
    
    .simulator-header h1 {
        font-size: 2.2rem;
    }
    
    .calculator-section, .personal-info-section, .info-section {
        padding: 2.5rem 2rem;
    }
    
    .services, .about, .cta, .contact-form {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .services, .about, .cta, .contact-form {
        padding: 3rem 0;
    }
    
    .contact-form form {
        padding: 2.5rem 2rem;
    }
    
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn a {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    
    .calculator-section, .personal-info-section, .info-section {
        padding: 2rem 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2b6cb0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1001;
    min-width: 300px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.message.success {
    background: #f0fff4;
    color: #22543d;
    border-left: 4px solid #38a169;
}

.message.error {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid #e53e3e;
}

.message.info {
    background: #ebf8ff;
    color: #2a4365;
    border-left: 4px solid #2b6cb0;
}

/* Enhanced hover effects */
.btn, .service-card, .info-card, .company-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.btn:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #2b6cb0;
    outline-offset: 2px;
}

/* Directory App Styles */
.directory-app {
    max-width: 1400px;
    margin: 0 auto;
}

.search-section {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin: 3rem 0;
    border: 1px solid #f7fafc;
}

.search-bar {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.search-bar input {
    flex: 1;
    padding: 1.5rem 2rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.filter-options {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-options select {
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    min-width: 200px;
}

.template-section {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin: 3rem 0;
    border: 1px solid #f7fafc;
}

.template-section textarea {
    width: 100%;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: monospace;
    margin: 1.5rem 0;
}

.companies-section {
    margin: 3rem 0;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.company-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    padding: 2rem;
    transition: transform 0.3s ease;
    border: 1px solid #f7fafc;
}

.company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.company-header h3 {
    color: #1a202c;
    font-size: 1.2rem;
    margin: 0;
    flex: 1;
    font-weight: 600;
}

.category-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.category-badge.banca {
    background: #ebf8ff;
    color: #2b6cb0;
}

.category-badge.finanziaria {
    background: #f7fafc;
    color: #4a5568;
}

.category-badge.assicurazione {
    background: #f0fff4;
    color: #38a169;
}

.category-badge.credito_cooperativo {
    background: #fffbeb;
    color: #d69e2e;
}

.category-badge.altro {
    background: #faf5ff;
    color: #805ad5;
}

.company-emails {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.email-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.email {
    flex: 1;
    font-size: 0.9rem;
    color: #2d3748;
    word-break: break-all;
}

.copy-btn, .email-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    color: #4a5568;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #2b6cb0;
    color: white;
    border-color: #2b6cb0;
}

.email-btn:hover {
    background: #38a169;
    color: white;
    border-color: #38a169;
}

/* Broadcast App Styles */
.broadcast-app {
    max-width: 1200px;
    margin: 0 auto;
}

.upload-section, .message-section, .send-section, .progress-section, .results-section {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin: 3rem 0;
    border: 1px solid #f7fafc;
}

.file-upload {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 4rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload:hover, .file-upload.dragover {
    border-color: #2b6cb0;
    background: #f7fafc;
}

.file-upload i {
    font-size: 4rem;
    color: #2b6cb0;
    margin-bottom: 1.5rem;
}

.contacts-table-container {
    max-height: 400px;
    overflow-y: auto;
    margin: 2rem 0;
}

.template-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.message-tools {
    display: flex;
    gap: 0.8rem;
    margin: 2rem 0;
    align-items: center;
    flex-wrap: wrap;
}

.emoji-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.8rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emoji-btn:hover {
    background: #f7fafc;
    border-color: #2b6cb0;
}

.preview-box {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    white-space: pre-wrap;
    font-family: monospace;
    margin: 1.5rem 0;
}

/* Protected Area Styles */
.login-form {
    max-width: 500px;
    margin: 5rem auto;
    padding: 3rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid #f7fafc;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a202c;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #1a202c;
}

.form-group input {
    width: 100%;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.quick-actions {
    display: flex;
    gap: 1.5rem;
    margin: 3rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.link-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #f7fafc;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.link-card a {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 600;
}

.stats-section {
    margin: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #f7fafc;
}

.stat-card i {
    font-size: 2.5rem;
    color: #2b6cb0;
    margin-bottom: 1.5rem;
}

.stat-card h3 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.notes-section {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin: 3rem 0;
    border: 1px solid #f7fafc;
}

.notes-section textarea {
    width: 100%;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    margin-bottom: 1.5rem;
}

/* Data Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.data-table th,
.data-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table th {
    background: #f7fafc;
    color: #1a202c;
    font-weight: 600;
}

.data-table tr:hover {
    background: #f7fafc;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.ready {
    background: #f7fafc;
    color: #4a5568;
}

.status-badge.sent {
    background: #f0fff4;
    color: #22543d;
}

.status-badge.error {
    background: #fed7d7;
    color: #742a2a;
}

.status-badge.pending {
    background: #fffbeb;
    color: #744210;
}