/* Forms and cards common styling (Privacy Policy, Terms of Service, Employment, Contact, etc.) */

/* ========================================
   UNIVERSAL INPUT ICON STYLES
   ======================================== */

/* Input wrapper with icon - ensures proper positioning */
.input-with-icon,
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Universal input icon styling - full height, centered icon */
/* For SVG elements with class .input-icon inside .input-with-icon */
.input-with-icon .input-icon,
.input-with-icon .search-input-icon,
.search-input-wrapper .input-icon,
.search-input-wrapper .search-input-icon {
    position: absolute !important;
    left: 2px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    bottom: auto !important;
    width: 50px !important;
    height: calc(100% - 4px) !important;
    background: #666666 !important;
    color: #ffffff !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px 0 0 6px !important;
    border-right: 1px solid #888888 !important;
    pointer-events: none !important;
    padding: 10px !important;
    box-sizing: border-box !important;
}

/* Icon path fill */
.input-icon path,
.search-input-icon path {
    fill: #ffffff;
}

/* Hide textarea resize handle */
textarea::-webkit-resizer {
    display: none;
}

textarea {
    resize: vertical;
}

/* Page container for form-based pages */
.page-content.privacy-policy.legal-page,
.page-content.terms-of-service.legal-page,
.page-content.account-manager.legal-page,
.page-content.instructor.legal-page {
    padding: 10px 25px 25px 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Override material title section for form pages - medium gray background */
.page-content.privacy-policy.legal-page .material-card .material-title-section,
.page-content.terms-of-service.legal-page .material-card .material-title-section,
.page-content.account-manager.legal-page .material-card .material-title-section,
.page-content.instructor.legal-page .material-card .material-title-section {
    background: #f1f3f4 !important;
    color: #212529 !important;
}

/* Override material page title for form pages - black text */
.page-content.privacy-policy.legal-page .material-card .material-page-title,
.page-content.terms-of-service.legal-page .material-card .material-page-title,
.page-content.account-manager.legal-page .material-card .material-page-title,
.page-content.instructor.legal-page .material-card .material-page-title {
    color: #212529 !important;
    text-shadow: none !important;
    margin-bottom: 1rem !important;
}

/* Override version history title for legal pages - black text */
.page-content.privacy-policy.legal-page .material-card .version-history-title,
.page-content.terms-of-service.legal-page .material-card .version-history-title {
    color: #212529 !important;
    text-shadow: none !important;
}

/* Override last updated text for form pages - darker gray */
.page-content.privacy-policy.legal-page .material-card .last-updated,
.page-content.terms-of-service.legal-page .material-card .last-updated,
.page-content.account-manager.legal-page .material-card .job-meta-info,
.page-content.instructor.legal-page .material-card .job-meta-info {
    color: #6c757d !important;
}

/* Job meta info styling for employment pages */
.job-meta-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.job-meta-item {
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.job-meta-item .icon {
    width: 24px;
    height: 24px;
    color: #6c757d;
    flex-shrink: 0;
    padding: 8px;
    box-sizing: content-box;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-meta-text {
    line-height: 1.4;
}

/* Content text styling for legal pages */
.legal-page .content-text {
    font-size: 1rem;
    color: #374151;
    line-height: 1.7;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Content list styling for legal pages with proper indentation */
.legal-page .content-list {
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
}

.legal-page .content-list li {
    margin-bottom: 0.5rem;
    color: #374151;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Section headers for legal pages */
.legal-page .section-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin: 1rem 0 1rem 0;
    text-transform: uppercase;
}

/* First section header - reduce top margin and slightly larger font */
.legal-page .section-header:first-of-type {
    margin-top: 0;
    font-size: 1.6rem;
}

.legal-page .subsection-header {
    font-size: 1.2rem;
    font-weight: bold;
    color: #374151;
    margin: 1.5rem 0 0.5rem 0;
}

/* Email and URL styling for legal pages */
.legal-page .email-address,
.legal-page .url-link {
    text-transform: lowercase !important;
}

/* Version history content */
.legal-page .version-history-content {
    margin: 0;
}

.legal-page .loading-message {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2rem 0;
}

/* Page-specific responsive design for form pages */
@media (max-width: 768px) {
    .page-content.privacy-policy.legal-page,
    .page-content.terms-of-service.legal-page,
    .page-content.account-manager.legal-page,
    .page-content.instructor.legal-page {
        padding: 20px 16px;
    }
    
    /* Stack job meta info vertically on mobile */
    .job-meta-info {
        grid-template-columns: 1fr;
        gap: 0.75rem 1rem;
    }
}