/* JNXPC Limited - Support Hub CSS */
/* =============================== */

#faq .section-header {
    left: -1.5%;
    position: relative;
}

.category-boxes {
    max-width: min(80%, var(--section-max-width)) !important;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 0;
}

/* --- Hero Section Start --- */
.hero-container {
    padding: 0;
    width: 100%;
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-section {
    width: 100%;
    background-color: #1d1d1d;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 30vh;
    transition: max-width 0.4s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.hero-video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    /* Prevent layout shifts */
    aspect-ratio: 16/9;
    background-color: #1d1d1d;
    /* Optimize rendering */
    contain: layout style paint;
}

.hero-video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    /* Prevent layout shifts */
    aspect-ratio: 16/9;
    background-color: #1d1d1d;
    /* Optimize rendering */
    contain: layout style paint;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 85%;
}

@media (max-width: 1440px) {
    .hero-title {
        font-size: 34px;
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .hero-section {
        height: 16vh;
    }

    .hero-title {
        font-size: 30px;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 20vh;
    }

    .hero-title {
        font-size: 24px;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 12px;
        font-weight: 500;
        max-width: 100%;
    }

    .video-control {
        width: 24px;
        height: 24px;
        top: 4%;
        right: 2%;
    }

    .video-control i {
        font-size: 9px;
    }
}

/* --- Hero Section End --- */

/* --- Ticket Form CTA Start --- */
.cta-container {
    max-width: min(65%, var(--section-max-width));
    margin: 0 auto;
    background-color: white;
    border-radius: 18px;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.12);
    position: relative;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.cta-label {
    position: absolute;
    top: -15px;
    left: 30px;
    z-index: 10;
}

.cta-label p {
    color: #222;
    font-size: 11px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
    color: #222;
    padding: 8px 14px;
    border-radius: 12px;
    width: fit-content;
}

.cta-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.cta-desc {
    font-size: 14px;
    color: #444;
    margin-bottom: 12px;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 16px;
}

.cta-btn,
.cta-btn-outline {
    display: inline-block;
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 10px 24px;
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(93, 75, 231, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.cta-btn {
    background: linear-gradient(270deg, #d64545, #a71c1c, #d64545, #a71c1c);
    background-size: 300% 100%;
    background-position: 0% 0%;
    color: white;
}

.cta-btn:hover,
.cta-btn-outline:hover {
    background-position: 100% 0%;
    transform: translateY(-2px);
}

.cta-btn-outline {
    background: transparent;
    color: var(--accent-color);
}

.cta-btn-outline:hover {
    background: var(--accent-color);
    color: white;
}

@media (max-width: 1440px) {
    .cta-container {
        max-width: min(90%, var(--section-max-width));
        padding: 20px 40px;
        border-radius: 16px;
    }

    .cta-label {
        left: 25px;
    }

    .cta-desc {
        margin-bottom: 20px;
    }
}

@media (max-width: 992px) {
    .cta-container {
        max-width: min(85%, var(--section-max-width));
        padding: 22px 30px;
    }
    
    .cta-label {
        left: 20px;
    }

    .cta-label p {
        font-size: 10px;
        padding: 6px 12px;
        border-radius: 10px;
    }

    .cta-title {
        font-size: 22px;
        margin-bottom: 12px;
        width: 90%;
    }

    .cta-desc {
        margin-bottom: 18px;
    }

    .cta-btn-outline, .cta-btn {
        font-size: 12px;
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    .cta-container {
        flex-direction: column;
        text-align: center;
        padding: 35px 25px;
        overflow: visible;
        max-width: min(100%, var(--section-max-width));
        border-radius: 0;
    }

    .cta-label {
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
    }

    .cta-label p {
        font-size: 12px;
        padding: 5px 10px;
    }

    .cta-content {
        max-width: 100%;
    }

    .cta-title {
        width: 100%;
        margin: 0 auto 15px;
    }

    .cta-desc {
        font-size: 13px;
        width: 80%;
        margin: 0 auto 15px;
    }

    .cta-btn-outline, .cta-btn {
        font-size: 13px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .cta-container {
        padding: 25px 15px;
    }

    .cta-label {
        top: -10px;
    }

    .cta-label p {
        font-size: 8px;
        padding: 4px 8px;
        border-radius: 8px;
    }

    .cta-title {
        font-size: 18px;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .cta-desc {
        font-size: 11px;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .cta-btn-outline, .cta-btn {
        font-size: 10px;
        padding: 8px 16px;
    }
}

/* --- Ticket Form CTA End --- */

/* --- Resources Section Start --- */
.resources-section {
    padding: 30px 0;
}

.resources-container {
    max-width: min(80%, var(--section-max-width));
    margin: 0 auto;
}

.resources-grid {
    padding-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.resource-card {
    background: white;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: left;
    border: 1px solid #e9ecef;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.resource-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.resource-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #d64545, #a71c1c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-icon i {
    font-size: 16px;
    color: white;
}

.resource-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.resource-card p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 18px;
}

.resource-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.download-btn {
    background: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    width: fit-content;
}

.download-btn.disabled {
    background: #6c757d;
    background-size: 100% 100%;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.7;
}

.download-btn:hover {
    background: #8a1616;
    transform: translateY(-1px);
}

.file-size {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

@media (max-width: 1440px) {
    .resources-container {
        max-width: min(95%, var(--section-max-width));
    }

    .resources-grid {
        gap: 12px;
    }

    .resource-card {
        padding: 14px 16px;
    }

    .resource-header {
        margin-bottom: 12px;
    }

    .resource-card h4 {
        font-size: 16px;
    }

    .resource-card p {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .resource-icon {
        width: 42px;
        height: 42px;
    }

    .resource-icon i {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .resources-grid {
        max-width: min(90%, var(--section-max-width));
        margin: 0 auto;
    }

    .resource-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .resources-section {
        padding: 15px 0;
    }

    .resources-grid {
        padding: 0;
    }

    .resource-card h4 {
        font-size: 14px;
    }

    .resource-card p {
        font-size: 12px;
    }

    .resource-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .download-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* --- Resources Section End --- */

/* --- Support Form Start --- */
.support-form-section {
    padding: 30px 0 60px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.support-form-section .section-header {
    margin-bottom: 0;
}

.support-form-section .section-label {
    background: linear-gradient(270deg, #d64545, #a71c1c);
    justify-content: center;
}

.support-form-section .section-header h2 {
    color: white;
}

.support-form-section .section-header h2::after {
    width: 25%;
}

.support-form-section .section-header p {
    color: #ccc;
}

.support-form-container {
    max-width: min(50%, var(--section-max-width));
    margin: 0 auto;
}

.form-wrapper {
    margin-top: 40px;
}

.support-ticket-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #ccc;
}

.order-number-wrapper {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 11px;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.order-number-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.1);
}

.order-prefix {
    font-size: 12px;
    color: #666;
    user-select: none;
}

.order-number-wrapper input {
    border: none !important;
    box-shadow: none !important;
    padding: 0 0 0 8px !important;
    background: transparent !important;
    flex: 1;
}

.order-number-wrapper input:focus {
    outline: none;
    box-shadow: none !important;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 12px;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.1);
}

.form-group select option {
    background: #1a1a1a;
    color: white;
}

.radio-group {
    display: flex;
    margin: 0 auto;
    gap: 12px;
}

.radio-group label {
    margin-bottom: 0;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 12px;
    transition: all 0.3s ease;
    width: 100%;
}

.radio-option:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-button {
    display: inline-block;
    align-items: center;
    width: 12px;
    height: 12px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.radio-option input[type="radio"]:checked+.radio-button {
    border-color: var(--accent-color);
}

.radio-option input[type="radio"]:checked+.radio-button::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.priority-text {
    flex: 1;
    white-space: nowrap;
    overflow: visible;
}

.priority-text strong {
    display: inline;
    color: #ccc;
}

.file-upload-area {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.file-upload-area input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-text i {
    font-size: 28px;
    color: var(--accent-color);
    margin-bottom: 12px;
    display: block;
}

.file-upload-text span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
    margin-bottom: 6px;
}

.file-upload-text small {
    color: #666;
    font-size: 11px;
}

.form-actions {
    margin-top: 22px;
    text-align: center;
}

.submit-btn {
    background: linear-gradient(270deg, #d64545, #a71c1c, #d64545, #a71c1c);
    background-size: 300% 100%;
    background-position: 0% 0%;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.submit-btn:hover {
    background-position: 100% 0%;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(var(--accent-color-rgb), 0.3);
}

.form-note {
    margin-top: 12px;
    color: #ccc;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@media (max-width: 1440px) {
    .support-form-container {
        max-width: min(80%, var(--section-max-width));
    }
}

@media (max-width: 992px) {
    .support-form-container {
        max-width: min(90%, var(--section-max-width));
    }

    .radio-option {
        padding: 8px 10px;
    }

    .radio-button {
        width: 10px;
        height: 10px;
        margin: 0 4px 0 0;
    }

    .priority-text {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .radio-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        flex-direction: column;
        gap: 4px 12px;
    }
}

@media (max-width: 480px) {
    .support-ticket-form {
        padding: 16px;
    }

    .support-ticket-form label {
        font-size: 11px;
    }

    .order-number-wrapper {
        padding: 8px 10px;
    }

    .order-number-wrapper input,
    .order-number-wrapper .order-prefix,
    .order-number-wrapper input {
        font-size: 11px;
    }

    #order-number {
        padding-left: 0 !important;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 11px;
    }

    .radio-group {
        display: flex;
        flex-direction: column;
        gap: 4px 12px;
    }

    .radio-option:last-child {
        margin-bottom: 0;
    }

    .priority-text {
        font-size: 12px;
    }

    .file-upload-area {
        padding: 20px 10px;
    }

    .file-upload-area i {
        font-size: 28px;
    }

    .file-upload-text span {
        font-size: 13px;
    }

    .file-upload-text small,
    .form-actions .form-note i {
        font-size: 10px;
    }

    .form-actions .submit-btn {
        padding: 10px 22px;
        font-size: 13px;
        border-radius: 14px;
    }

    .form-actions .submit-btn i {
        font-size: 14px;
    }

    .form-actions .form-note {
        font-size: 11px;
    }
}

/* --- Support Form End --- */