/* support.css */

/* --- Hero Section --- */
.support-hero {
    background-color: #141414;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 80px 20px 100px;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: -50px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #cbd5e1;
}

/* --- Support Contact Section --- */
.support-contact-section {
    padding: 60px 0;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: flex-start;
}

.contact-info-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    position: sticky;
    top: 120px; /* Navbar height + some padding */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.contact-info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.contact-info-card p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInContact 0.5s ease-out forwards;
}

/* Animation timing */
.contact-list li:nth-child(1) { animation-delay: 0.2s; }
.contact-list li:nth-child(2) { animation-delay: 0.3s; }
.contact-list li:nth-child(3) { animation-delay: 0.4s; }

@keyframes slideInContact {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-list i {
    font-size: 1.5rem;
    color: var(--cfn-green);
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.contact-list div span {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.contact-list div a,
.contact-list div p {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    line-height: 1.4;
    margin: 0;
}

.contact-list div a {
    transition: color 0.2s;
}

.contact-list div a:hover {
    color: var(--cfn-light-green);
}

.office-hours {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.office-hours p {
    margin: 0;
    font-size: 0.9rem;
    color: #cbd5e1;
}

/* --- Form Styles --- */
.form-container {
    max-width: none;
    margin: 0;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border-top: 5px solid var(--cfn-green);
    opacity: 1;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 1.8rem;
    color: var(--npt-black);
    margin-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background-color: white;
    color: #334155;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--cfn-green);
    box-shadow: 0 0 0 3px rgba(3, 166, 60, 0.1);
}

/* Select Wrapper for dropdown arrows */
.select-wrapper { position: relative; }
.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94a3b8;
    font-size: 0.8rem;
}
select { -webkit-appearance: none; appearance: none; }

/* Dynamic Fields */
.dynamic-field.hidden {
    display: none;
}

/* Submit Button */
.submit-button {
    background-color: var(--npt-black);
    color: white;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-button:hover {
    background-color: #333;
}

/* Success Message */
.success-container {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.success-container.hidden {
    display: none;
}

.success-icon {
    font-size: 4rem;
    color: var(--cfn-green);
    margin-bottom: 20px;
}

/* Anti-Spam Honeypot (Visually Hidden) */
.visual-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--npt-black);
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--npt-black);
    color: white;
}

/* --- Responsive Helpers --- */
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }    
    .hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 900px) {
    .support-grid { grid-template-columns: 1fr; }
    .contact-info-card { position: static; }
}

/* --- Comparison Table Section (UPDATED) --- */
.comparison-section {
    padding: 80px 20px;
    background-color: #fff;
}

.comparison-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--npt-black);
    margin-bottom: 50px;
}

.table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    /* Removed border/shadow from wrapper so the column pop-out looks clean */
    padding: 10px; /* Space for shadows/badges */
}

.comparison-table {
    width: 100%;
    /* Changed to separate to allow border-radius on columns */
    border-collapse: separate; 
    border-spacing: 0;
    font-size: 1rem;
}

.comparison-table th,
.comparison-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table thead th {
    background-color: #f8fafc;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid #e2e8f0;
}

/* First Column Styling */
.comparison-table td:first-child {
    font-weight: 700;
    color: #334155;
    border-left: 1px solid #e2e8f0;
}
.comparison-table th:first-child {
    border-left: 1px solid #e2e8f0;
    border-top-left-radius: 8px;
}
.comparison-table tr:last-child td:first-child {
    border-bottom: 1px solid #e2e8f0;
    border-bottom-left-radius: 8px;
}

/* Last Column Styling */
.comparison-table td:last-child {
    border-right: 1px solid #e2e8f0;
}
.comparison-table th:last-child {
    border-right: 1px solid #e2e8f0;
    border-top-right-radius: 8px;
}
.comparison-table tr:last-child td:last-child {
    border-bottom: 1px solid #e2e8f0;
    border-bottom-right-radius: 8px;
}

.comparison-table td {
    color: #64748b;
}

/* --- HIGHLIGHTED FIBER COLUMN (New Pop-out Style) --- */

/* 1. Header (Top) */
.comparison-table thead th.highlight-col {
    background-color: var(--cfn-green);
    color: white;
    font-size: 1.1rem;
    border-top: 2px solid var(--cfn-green);
    border-left: 2px solid var(--cfn-green);
    border-right: 2px solid var(--cfn-green);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: relative;
    box-shadow: 0 -4px 15px rgba(3, 166, 60, 0.2);
    /* Override default gray styling */
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Badge */
.comparison-table thead th.highlight-col::before {
    content: "RECOMMENDED";
    display: block;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--npt-black);
    color: white;
    font-size: 0.65rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 2. Body Cells (Middle) */
.comparison-table tbody td.highlight-col {
    background-color: #f0fdf4;
    border-left: 2px solid var(--cfn-green);
    border-right: 2px solid var(--cfn-green);
    border-bottom: 1px solid rgba(3, 166, 60, 0.1);
    color: var(--npt-black);
    font-weight: 700;
}

/* 3. Footer Cell (Bottom) */
.comparison-table tbody tr:last-child td.highlight-col {
    border-bottom: 2px solid var(--cfn-green);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 4px 15px rgba(3, 166, 60, 0.15);
}

/* Hover Effect Fix */
.comparison-table tr:hover td.highlight-col {
    background-color: #dcfce7;
}

@media (max-width: 768px) {
    .comparison-table th, .comparison-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* --- FAQ Section --- */
.faq-section {
    padding: 60px 20px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    margin-top: 60px;
}

#support-faq {
    scroll-margin-top: 120px;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--npt-black);
    margin-bottom: 50px;
}

.faq-category {
    max-width: 800px;
    margin: 0 auto 40px;
}

.faq-category h3 {
    font-size: 1.5rem;
    color: var(--cfn-green);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #334155;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--cfn-green);
}

.faq-item summary::after {
    content: '\f067'; /* FontAwesome plus */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1rem;
    color: #94a3b8;
    transition: transform 0.3s ease, color 0.2s;
    margin-left: 15px;
}

.faq-item[open] > summary {
    color: var(--cfn-green);
}

.faq-item[open] > summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 10px 20px 10px;
    color: #475569;
    line-height: 1.7;
    animation: fadeInFaq 0.4s ease;
}

@keyframes fadeInFaq {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Fade In Animation Logic --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Fallback: If JS fails or is disabled */
@media (scripting: none) {
    .fade-in-section {
        opacity: 1;
        transform: none;
    }
}
