/* Campus Help Popup Styling */

/* Scope the font to the popup to avoid globally overriding site fonts */
.campus-help-popup,
.campus-help-popup * {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Help Link */
.campus-help-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer !important;
    transition: all 0.2s;
}

.campus-help-link:hover {
    text-decoration: underline;
    color: #A30714;
    cursor: pointer !important;
}

/* Help Popup Overlay */
.campus-help-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.campus-help-popup.show {
    display: flex;
}

/* Popup Content */
.campus-help-popup-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Close Button */
button.campus-help-popup-close,
.campus-help-popup-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    background: none !important;
    border: none !important;
    font-size: 32px !important;
    font-weight: 300 !important;
    color: #666 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 4px !important;
    margin: 0 !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    border-radius: 50% !important;
    z-index: 10 !important;
    box-shadow: none !important;
}


button.campus-help-popup-close:active,
.campus-help-popup-close:active {
    transform: rotate(90deg) scale(0.9) !important;
}

button.campus-help-popup-close:focus,
.campus-help-popup-close:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Popup Title */
.campus-help-popup h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Title underline variant */
.campus-help-title {
    position: relative;
    padding-bottom: 6px;
}
.campus-help-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    background: #A30714;
    border-radius: 2px;
}

/* Help Sections */
.campus-help-section {
    margin-bottom: 16px;
}
.campus-help-line {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center; /* vertikal zentriert auf Höhe zwischen Label und Mail */
    column-gap: 12px;
    row-gap: 0;
}

.campus-help-icon-left svg {
    display: block;
    width: 18px;
    height: 18px;
    transform: translateY(4px); /* leicht nach unten schieben */
}

.campus-help-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.campus-help-text {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.campus-help-linkmail {
    color: #0066cc;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.campus-help-linkmail:hover {
    text-decoration: underline;
    color: #0052a3;
}

.campus-help-section:last-child {
    margin-bottom: 0;
}

.campus-help-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}
.campus-help-icon svg {
    display: block;
}
.campus-help-icon-technical svg path,
.campus-help-icon-content svg path {
    stroke: #5c5c5c;
}

.campus-help-email a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.campus-help-email a .campus-help-arrow {
    font-size: 14px;
    line-height: 1;
}

/* Hover effect for arrow */
.campus-help-email a:hover .campus-help-arrow {
    transform: translateY(-1px);
}

/* Email Links */
.campus-help-email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.campus-help-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.campus-help-label-text {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.campus-help-sep-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.campus-help-email svg {
    flex-shrink: 0;
}

.campus-help-email a {
    color: #0066cc;
    text-decoration: none;
}

.campus-help-email a:hover {
    text-decoration: underline;
}

.campus-help-arrow {
    color: #0066cc;
    margin-left: 4px;
}