/* PSIRT Custom Premium Stylesheet */

/* Import Outfit font for premium look */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* Banner styling */
.psirt-banner {
    background: linear-gradient(135deg, #020b1e 0%, #001f3f 50%, #000c18 100%);
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
    box-shadow: inset 0 -10px 30px rgba(0,0,0,0.6);
    border-bottom: 4px solid #00e5ff;
    position: relative;
    overflow: hidden;
}

.psirt-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(0, 229, 255, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.psirt-banner-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.psirt-banner-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 64px;
    font-weight: 800;
    margin: 0 0 5px 0;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    line-height: 1.1;
}

.psirt-banner-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 25px 0;
    color: #cbd5e1;
    letter-spacing: 1px;
}

.psirt-banner-icon-container {
    margin: 20px 0;
    display: inline-block;
    animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.5)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.85)); transform: scale(1.03); }
}

.psirt-banner-team {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin: 20px 0 0 0;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Nav Links Styling */
.psirt-nav-links-container {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
    text-align: center;
    position: sticky;
    top: 85px; /* Offset for main header height when visible */
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: top 0.3s ease-in-out;
}

.gs18-Header.is-hidden ~ main .psirt-nav-links-container {
    top: 0;
}

.psirt-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.psirt-nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0088cc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.psirt-nav-link:hover {
    color: #005580;
    background-color: rgba(0, 136, 204, 0.08);
}

.psirt-nav-link i.chevron-down {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #0088cc;
    border-bottom: 2px solid #0088cc;
    transform: rotate(45deg);
    margin-bottom: 3px;
    transition: transform 0.2s ease;
}

.psirt-nav-link:hover i.chevron-down {
    transform: translateY(2px) rotate(45deg);
    border-color: #005580;
}

/* Content Sections Styling */
.psirt-section {
    padding: 70px 0;
    border-bottom: 1px solid #e2e8f0;
    scroll-margin-top: 150px; /* Offset for sticky nav + main header */
}

.psirt-section:last-of-type {
    border-bottom: none;
}

.psirt-section-body {
    margin-top: 25px;
    line-height: 1.8;
    color: #334155;
    font-size: 15px;
}

/* Tabs Styling */
.psirt-tabs-container {
    margin-top: 30px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
}

.psirt-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 5px;
}

.psirt-tab-item {
    margin-bottom: -2px;
}

.psirt-tab-item a {
    display: block;
    padding: 12px 28px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.psirt-tab-item.active a {
    color: #0088cc;
    border-bottom-color: #0088cc;
}

.psirt-tab-item a:hover {
    color: #0088cc;
}

/* Filter Styling */
.psirt-filter-container {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #475569;
}

.psirt-filter-container select {
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1e293b;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.psirt-filter-container select:focus {
    border-color: #0088cc;
}

/* Vulnerability Table styling */
.psirt-table th {
    text-align: center;
    background-color: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 2px solid #e2e8f0;
}

.psirt-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    vertical-align: top;
    color: #334155;
    line-height: 1.6;
}

.psirt-table td.text-center {
    text-align: center;
}

.psirt-table tr:hover td {
    background-color: #f1f5f9;
}

.btn_link.pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0088cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    text-align: left;
}

.btn_link.pdf:hover {
    color: #005580;
    text-decoration: underline;
}

.btn_link.pdf img {
    flex-shrink: 0;
}

/* Dialog Button Trigger styling */
.psirt-form-trigger-container {
    margin-top: 40px;
    text-align: center;
}

#open-report-form {
    background-color: #0088cc;
    color: #ffffff;
    border: none;
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 136, 204, 0.4);
    transition: all 0.2s ease;
    outline: none;
}

#open-report-form:hover {
    background-color: #0077b3;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 136, 204, 0.4);
}

#open-report-form:active {
    transform: translateY(0);
}

/* Modal / Overlay Dialog Styling - Matched to Slide 11 */
.psirt-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.psirt-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.psirt-modal {
    background-color: #ffffff;
    border: 1px solid #7f7f7f;
    border-radius: 0px; /* Sharp corners like corporate standard in slide */
    width: 90%;
    max-width: 650px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.psirt-modal-overlay.active .psirt-modal {
    transform: scale(1);
}

.psirt-modal-header {
    padding: 10px 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: #ffffff;
}

.psirt-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #8c8c8c;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.psirt-modal-close:hover {
    color: #000000;
}

.psirt-modal-body {
    padding: 10px 40px 30px 40px;
}

.psirt-form-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
}

.psirt-form-instruction {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: left;
}

.psirt-form-grid {
    display: flex;
    flex-direction: column; /* Vertical stacked columns exactly like Slide 11 */
    gap: 15px;
    margin-bottom: 20px;
}

.psirt-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.psirt-form-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
}

.psirt-form-label span {
    color: #f50f10; /* Mitsubishi brand red for * */
}

.psirt-form-input, .psirt-form-textarea {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #7f7f7f; /* Slate-gray borders matching slide */
    border-radius: 0px; /* Sharp inputs */
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #000000;
    outline: none;
    background-color: #ffffff;
    box-sizing: border-box;
}

.psirt-form-input:focus, .psirt-form-textarea:focus {
    border-color: #000000;
}

.psirt-form-input.is-invalid, .psirt-form-textarea.is-invalid {
    border-color: #f50f10;
    background-color: #fff6f6;
}

.psirt-form-textarea {
    height: 90px;
    resize: vertical;
}

.psirt-form-error {
    font-size: 11px;
    color: #f50f10;
    margin-top: 3px;
    display: none;
    font-weight: 500;
}

.psirt-disclaimer-box {
    background-color: #ffffff;
    border: 1px solid #7f7f7f;
    padding: 15px;
    margin-bottom: 20px;
    max-height: 140px;
    overflow-y: auto;
    box-sizing: border-box;
}

.psirt-disclaimer-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 10px 0;
}

.psirt-disclaimer-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #000000;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.psirt-disclaimer-text:last-of-type {
    margin-bottom: 0;
}

/* Red Centered submit button as in Slide 11 */
.psirt-form-actions {
    text-align: center;
    margin-top: 25px;
}

.psirt-form-btn-submit {
    background-color: #f50f10; /* Mitsubishi brand red */
    color: #ffffff;
    border: none;
    padding: 10px 45px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 0px; /* Sharp button */
    display: inline-block;
    box-shadow: none;
    outline: none;
}

.psirt-form-btn-submit:hover:not(:disabled) {
    background-color: #d80b0c;
}

.psirt-form-btn-submit:disabled {
    background-color: #cccccc;
    color: #7f7f7f;
    cursor: not-allowed;
}

/* Success Pop-up Modal styling */
.psirt-success-popup {
    background-color: #ffffff;
    border-radius: 12px;
    width: 95%;
    max-width: 550px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border-top: 6px solid #10b981; /* Green color for success */
}

.psirt-success-icon {
    width: 80px;
    height: 80px;
    background-color: #d1fae5;
    color: #059669;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 25px;
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.08);
}

.psirt-success-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 15px 0;
}

.psirt-success-message {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 30px 0;
}

.psirt-success-btn {
    background-color: #10b981;
    color: #ffffff;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
    outline: none;
}

.psirt-success-btn:hover {
    background-color: #059669;
}

/* Loading spinner */
.psirt-spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid #ffffff;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media only screen and (max-width: 980px) {
    .psirt-nav-links-container {
        top: 0 !important; /* Adjusted for mobile view header behavior */
    }
}

@media only screen and (max-width: 767px) {
    .psirt-form-grid {
        grid-template-columns: 1fr;
    }
    .psirt-form-group.full-width {
        grid-column: span 1;
    }
    .psirt-modal-body {
        padding: 20px;
    }
    .psirt-banner-title {
        font-size: 44px;
    }
    .psirt-banner-subtitle {
        font-size: 20px;
    }
    .psirt-banner-team {
        font-size: 20px;
    }
    .psirt-nav-links {
        gap: 15px;
    }
    .psirt-nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* OTP Verification Screen Styling */
.psirt-otp-container {
    display: none;
    text-align: center;
    padding: 20px 10px;
}

.psirt-otp-container.active {
    display: block;
}

.psirt-otp-icon {
    font-size: 48px;
    color: #f50f10;
    margin-bottom: 15px;
}

.psirt-otp-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 25px;
    line-height: 1.5;
}

.psirt-otp-email-highlight {
    font-weight: 700;
    color: #0f172a;
}

.psirt-otp-input-wrapper {
    margin-bottom: 25px;
}

.psirt-otp-digit-input {
    width: 200px;
    height: 48px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 12px;
    border: 1px solid #7f7f7f;
    border-radius: 0px;
    outline: none;
    padding-left: 10px;
    box-sizing: border-box;
}

.psirt-otp-digit-input:focus {
    border-color: #000000;
}

.psirt-otp-timer {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
}

.psirt-otp-resend-btn {
    background: none;
    border: none;
    color: #0088cc;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 13px;
    padding: 0;
}

.psirt-otp-resend-btn:disabled {
    color: #9ca3af;
    cursor: not-allowed;
    text-decoration: none;
}

