/* contact.css - NPTech Contact Page (Refactored) */

/* --- Page Header --- */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #0663AF 100%);
    color: white;
    text-align: center;
    padding: 80px 20px 140px; /* Extra bottom padding for overlap */
    position: relative;
    overflow: hidden;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: white;
}

.header-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255,255,255,0.8);
}

/* --- Main Wrapper --- */
.contact-wrapper {
    max-width: 1100px;
    margin: -80px auto 60px; /* Negative top margin to overlap header */
    padding: 0 20px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

/* --- Contact Interface Container (Left Side) --- */
.contact-interface-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 40px;
    border: 1px solid #e2e8f0;
}

.interface-step {
    margin-bottom: 30px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.step-badge {
    background: var(--npt-blue);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--npt-black);
    margin: 0;
}

/* --- Topics Grid --- */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.topic-card {
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topic-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topic-icon {
    font-size: 1.2rem;
    color: var(--npt-blue);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.topic-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin: 0 0 2px 0;
}

.topic-text p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

.topic-arrow {
    color: #cbd5e1;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s;
}

/* Hover & Selected States */
.topic-card:hover {
    background: white;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.topic-card.selected {
    background: #eff6ff;
    border-color: var(--npt-blue);
}

.topic-card.selected .topic-icon {
    background: var(--npt-blue);
    color: white;
}

.topic-card.selected .topic-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--npt-blue);
}

/* --- Form Section --- */
.step-form {
    animation: slideDown 0.4s ease-out;
}

.step-form.hidden {
    display: none;
}

.form-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 30px 0;
}

.modern-form {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group.full-width {
    grid-column: span 2;
}

.input-group.hidden {
    display: none;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 2;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 12px 15px 12px 40px; /* Left padding for icon */
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.2s;
    background: white;
}

.textarea-wrapper textarea {
    padding-left: 15px; /* No icon for textarea usually */
    resize: vertical;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--npt-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 99, 175, 0.1);
}

.btn-submit {
    grid-column: span 2;
    background: var(--npt-blue);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--npt-dark-blue);
}

.btn-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* --- Success State --- */
.success-state {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
}

.success-state.hidden {
    display: none;
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.success-state h3 {
    color: var(--npt-black);
    margin-bottom: 10px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--npt-blue);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 15px;
}

/* --- Sidebar (Right Side) --- */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid #f1f5f9;
}

.info-card i {
    color: var(--npt-blue);
    font-size: 1.2rem;
    background: #f0f9ff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card h3 {
    font-size: 0.95rem;
    margin: 0 0 5px 0;
    color: #1e293b;
}

.info-card p, .info-card a, .info-card small {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    display: block;
    line-height: 1.4;
    text-decoration: none;
}

.info-card a {
    font-weight: 600;
    color: var(--npt-blue);
}

.highlight-card {
    background: #f0f9ff;
    border-color: #dbeafe;
}

/* Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        margin-top: -40px;
    }
    
    .contact-interface-container {
        padding: 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .input-group.full-width {
        grid-column: span 1;
    }

    .contact-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .contact-sidebar {
        grid-template-columns: 1fr;
    }
    
    .topic-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .topic-arrow {
        display: none;
    }
}