/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
}

.modal-card {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.request-modal-card {
    max-width: 700px;
}

.modal-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: 400;
    color: var(--color-text-main);
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #a0aec0;
    padding: 4px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal-btn:hover {
    color: #4a5568;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    color: #2d3748;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
    cursor: pointer;
    height: 44px;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    color: #4a5568;
}

.checkbox-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.form-actions {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}

.form-actions .btn {
    padding: 14px 32px;
    /* Increased padding for more height */
    font-size: 1rem;
}

.file-upload-wrapper {
    border: 1px dashed #cbd5e0;
    padding: 16px;
    border-radius: 6px;
    background: #f7fafc;
    position: relative;
    cursor: pointer;
}

.file-upload-text {
    font-size: 0.9rem;
    color: #718096;
}

.form-input-file {
    margin-top: 8px;
    display: block;
    width: 100%;
}

@media (max-width: 600px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* Custom File Upload Styles (Adapted from career.css) */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 128px;
    border: 1px dashed #cbd5e0;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
    padding: 8px;
}

.file-upload-wrapper:hover {
    border-color: var(--color-primary);
    background: rgba(66, 153, 225, 0.05);
}

.file-upload-wrapper.active {
    border-color: var(--color-primary);
    background: rgba(66, 153, 225, 0.1);
}

.form-input-file {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.upload-text {
    font-size: 0.9rem;
    color: var(--color-text-main);
    font-weight: 500;
}

.upload-hint {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 4px;
}

.file-name-display {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
    display: none;
    /* Hidden initially */
    align-items: center;
    gap: 8px;
}

.error-msg {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

#reportBugModal {
    display: none;
}