/* Prefix all classes with "vent-" to avoid CSS conflicts with Joomla */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.vent-container * {
    box-sizing: border-box;
}

.vent-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.vent-heading {
    color: #0d32a1;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.vent-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vent-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.vent-form-section {
    margin-bottom: 20px;
}

.vent-form-section-title {
    margin-bottom: 24px;
    padding-bottom: 12px;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
}

.vent-subsection-title {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.vent-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.vent-form-group {
    position: relative;
}

.vent-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vent-label .required {
    color: #0d32a1;
}

.vent-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    font-family: inherit;
}

.vent-input:focus {
    outline: none;
    border-color: #ff8c00;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.vent-input:hover {
    border-color: #dee2e6;
}

.vent-button {
    background: #ff8c00;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vent-button:hover {
    background: #e67e00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.vent-print-button {
    background: #22c55e;
}

.vent-print-button:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.vent-buy-button {
    background: #0d32a1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vent-buy-button:hover {
    background: #0a2870;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.vent-results {
    margin-top: 40px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

.vent-report-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #e9ecef;
}

.vent-report-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.vent-report-date {
    font-size: 1rem;
    color: #6c757d;
}

.vent-report-section {
    margin-bottom: 40px;
}

.vent-report-section-title {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.vent-property-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.vent-property-detail {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.95rem;
}

.vent-property-detail strong {
    color: #495057;
    font-weight: 600;
}

.vent-system-info {
    margin-top: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #0d32a1;
    position: relative;
    overflow: hidden;
}

.vent-system-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #0d32a1;
}

.vent-system-info h3 {
    color: #2c3e50;
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.vent-upgrade-recommendation {
    margin-top: 30px;
    padding: 30px;
    background: #f0fdf4;
    border-radius: 12px;
    border: 2px solid #22c55e;
    position: relative;
    overflow: hidden;
}

.vent-upgrade-recommendation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #22c55e;
}

.vent-system-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.vent-spec-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.vent-spec-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.vent-spec-item strong {
    display: block;
    color: #495057;
    font-weight: 600;
    margin-bottom: 4px;
}

.vent-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    border-left: 5px solid #ff8c00;
}

.vent-error {
    background-color: #e0e7ff;
    color: #0d32a1;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    border-left: 5px solid #0d32a1;
}

.vent-contact-info {
    font-weight: bold;
}

.vent-approval-section {
    margin-top: 30px;
    padding: 20px;
    border: 1px dashed #999;
    border-radius: 4px;
}

.vent-signature-line {
    margin-top: 50px;
    border-top: 1px solid #333;
    width: 250px;
    padding-top: 5px;
    text-align: center;
    font-style: italic;
}

.vent-signature-img {
    width: 150px;
    height: 60px;
    border: 1px dashed #ccc;
    margin-top: 10px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #999;
}

.vent-logo {
    text-align: center;
    margin-bottom: 20px;
}

.vent-logo img {
    max-width: 200px;
}

.vent-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.vent-stamp {
    position: relative;
    margin-top: 30px;
    width: 300px;
}

.vent-stamp-outline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 5px solid #0d32a1;
    border-radius: 10px;
    opacity: 0.3;
    transform: rotate(-5deg);
}

.vent-stamp-text {
    position: relative;
    padding: 20px;
    color: #0d32a1;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
    z-index: 1;
}

.vent-hidden {
    display: none;
}

.vent-success-message {
    background: #f0fdf4;
    color: #15803d;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #22c55e;
    display: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.vent-email-success-message {
    background: #f0fdf4;
    color: #15803d;
    padding: 16px 24px;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #22c55e;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    animation: slideIn 0.3s ease-out;
    position: relative;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.vent-benefits-list {
    margin-top: 15px;
    padding-left: 20px;
}

.vent-benefits-list li {
    margin-bottom: 8px;
}

/* Additional styles for print optimization */
.vent-printing .vent-results {
    zoom: 0.9;
}

.vent-print-optimized {
    break-inside: avoid;
}

.vent-report-section {
    break-inside: avoid;
}

/* reCAPTCHA Styles */
.g-recaptcha {
    margin: 0 auto;
    display: table;
}

.vent-form-section .g-recaptcha {
    margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .vent-container {
        padding: 10px;
    }
    
    .vent-form-group {
        min-width: 100%;
    }
    
    .vent-property-detail {
        flex-basis: 100%;
    }
    
    .vent-system-specs {
        grid-template-columns: 1fr;
    }
    
    .vent-report-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vent-report-date {
        margin-top: 10px;
    }
    
    .vent-email-success-message {
        font-size: 14px;
        padding: 12px 16px;
        margin: 15px 5px;
    }
}

/* Email button specific styling */
.vent-email-button {
    background: #0d32a1;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vent-email-button:hover {
    background: #0a2870;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}